Skip to content

chore(playground): save tsconfig.json to the root directory; update Node.js version requirement #9086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 12, 2024

Conversation

Alfred-Skyblue
Copy link
Member

@Alfred-Skyblue Alfred-Skyblue commented Aug 30, 2023

When using download to download a project in the sfc-playground, the tsconfig.json file is being downloaded into the src directory. Since the downloaded project is a JavaScript project, I overlooked the tsconfig.json file in this PR. [email protected] requires Node.js version 14.18+, 16+ updated README.md for this.

@github-actions
Copy link

github-actions bot commented Aug 30, 2023

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 90.5 kB 34.4 kB 31 kB
vue.global.prod.js 148 kB 53.7 kB 47.9 kB

Usages

Name Size Gzip Brotli
createApp 50.7 kB 19.8 kB 18.1 kB
createSSRApp 54.1 kB 21.1 kB 19.3 kB
defineCustomElement 53 kB 20.6 kB 18.7 kB
overall 64.4 kB 24.8 kB 22.5 kB

@Alfred-Skyblue Alfred-Skyblue changed the title chore(sfc-playground): ignore the tsconfig.json file when downloading chore(sfc-playground): ignore downloading tsconfig.json update Node.js version requirement Aug 30, 2023
@sxzz
Copy link
Member

sxzz commented Aug 31, 2023

Why do you think it's a JavaScript project? TypeScript files can be saved as well.

@Alfred-Skyblue
Copy link
Member Author

Why do you think it's a JavaScript project? TypeScript files can be saved as well.

Because the package.json does not include dependencies for TypeScript, we can certainly download the tsconfig.json file to the root directory; perhaps this would be a better choice?

@sxzz
Copy link
Member

sxzz commented Aug 31, 2023

Actually a JavaScript project can also use tsconfig.json once allowJs is enabled.

@sxzz sxzz added need more info Further information is requested scope: playground labels Aug 31, 2023
@Alfred-Skyblue
Copy link
Member Author

Yes, if that's the case, we should place the tsconfig.json in the root directory. It will be stored in the project, similar to the import-map.json file. Do you think this approach is viable?

@sxzz
Copy link
Member

sxzz commented Aug 31, 2023

Sure we can move it outside of src

@sxzz sxzz added wait changes and removed need more info Further information is requested labels Aug 31, 2023
@Alfred-Skyblue
Copy link
Member Author

I have modified tsconfig.json to save to root directory.

@Alfred-Skyblue Alfred-Skyblue changed the title chore(sfc-playground): ignore downloading tsconfig.json update Node.js version requirement chore(sfc-playground): save tsconfig.json to the root directory update Node.js version requirement Aug 31, 2023
@sxzz sxzz added ready to merge The PR is ready to be merged. and removed wait changes labels Aug 31, 2023
@haoqunjiang haoqunjiang merged commit 9e8ac0c into vuejs:main Mar 12, 2024
@haoqunjiang haoqunjiang changed the title chore(sfc-playground): save tsconfig.json to the root directory update Node.js version requirement chore(playground): save tsconfig.json to the root directory; update Node.js version requirement Mar 12, 2024
@Alfred-Skyblue Alfred-Skyblue deleted the fix-sfc-playground-download branch March 13, 2024 06:03
lynxlangya pushed a commit to lynxlangya/core that referenced this pull request May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge The PR is ready to be merged. scope: playground
Projects
Development

Successfully merging this pull request may close these issues.

3 participants