]>
git.ipfire.org Git - thirdparty/vuejs/create-vue.git/log
Haoqun Jiang [Mon, 29 Nov 2021 08:55:10 +0000 (16:55 +0800)]
feat!: replace vuex with pinia
It's our latest default recommendations for Vue.js state management.
Ref:
* <https://twitter.com/VueDose/status/
1463169464451706897 >
* <https://www.reddit.com/r/vuejs/comments/r1vluc/new_default_recommendations/hm3wgbj/>
Haoqun Jiang [Fri, 26 Nov 2021 08:42:17 +0000 (16:42 +0800)]
fix: add `@types/node` to ts projects
To avoid warnings on missing type declarations for the `url` module.
Ideally the version of `@types/node` should be based on the user's
node version. But the latest is accepatble for now.
Haoqun Jiang [Thu, 25 Nov 2021 12:32:20 +0000 (20:32 +0800)]
3.0.0-beta.8
Haoqun Jiang [Thu, 25 Nov 2021 12:31:59 +0000 (20:31 +0800)]
chore: prepublish sync
Haoqun Jiang [Thu, 25 Nov 2021 12:12:00 +0000 (20:12 +0800)]
fix: trailing slash is not required in Vite 2
See https://vitejs.dev/guide/migration.html#alias-behavior-change
Fixes #12
Cédric Exbrayat [Thu, 25 Nov 2021 11:06:41 +0000 (12:06 +0100)]
fix: use string as prop type in TS (#13)
Haoqun Jiang [Wed, 24 Nov 2021 11:43:22 +0000 (19:43 +0800)]
3.0.0-beta.7
Haoqun Jiang [Wed, 24 Nov 2021 11:19:25 +0000 (19:19 +0800)]
chore!: have to drop Node.js 12 (again)
Because vscode-jsonrpc (a transitive dependency of `vue-tsc`) contains
optional chaining syntax, which is only supported in Node.js 14+.
I expect more and more such cases will emerge in the future. So let's
just get rid of Node.js 12.
Haoqun Jiang [Wed, 24 Nov 2021 11:05:45 +0000 (19:05 +0800)]
chore: update playground
Next time, dependency maintenance commits should also regenerate the
playground packages. Otherwise the CI will fail due to lockfile
inconsistencies.
Haoqun Jiang [Wed, 24 Nov 2021 11:00:06 +0000 (19:00 +0800)]
fix: use `fileURLToPath` instead of `.pathname` to fix unicode compatibility
Fixes #5
Haoqun Jiang [Tue, 23 Nov 2021 08:58:17 +0000 (16:58 +0800)]
refactor: use `<nav>` instead of `<div id="nav">`
See https://github.com/vuejs/vue-cli/pull/6812
Haoqun Jiang [Tue, 23 Nov 2021 08:45:51 +0000 (16:45 +0800)]
chore: dependency maintenance
Haoqun Jiang [Mon, 22 Nov 2021 08:30:28 +0000 (16:30 +0800)]
chore: add the `TODOs` file to gitignore
I usually keep `TODOs` file in the repository to keep track of the
highest priority issues that I'd like to work on next.
It isn't listed in a global gitignore configuration because that won't
be picked up by npm, so the file could still be accidentally published
to the npm registry, unless in projects that have the `files` field in
`package.json`. Therefore, I choose to manually ignore the `TODOs` file
in each project.
Haoqun Jiang [Fri, 19 Nov 2021 08:20:24 +0000 (16:20 +0800)]
ci: skip windows for now
Haoqun Jiang [Fri, 19 Nov 2021 05:25:07 +0000 (13:25 +0800)]
fix: use full preview address in test scripts
Somehow in some GitHub Actions, `start-server-and-test` stuck on
localhost but works fine with 127.0.0.1
Haoqun Jiang [Fri, 19 Nov 2021 03:55:54 +0000 (11:55 +0800)]
chore: update playground
Haoqun Jiang [Fri, 19 Nov 2021 03:49:06 +0000 (11:49 +0800)]
fix: revert to cypress 8 and add Node.js 12 support back
Because 9.0.0 somehow fails the Node.js 17 CI.
Haoqun Jiang [Thu, 18 Nov 2021 11:20:17 +0000 (19:20 +0800)]
chore: regenerate playground snapshot
Haoqun Jiang [Thu, 18 Nov 2021 10:55:14 +0000 (18:55 +0800)]
ci: now that pnpm doesn't run pre-scripts, `pretest` must be run manually
Haoqun Jiang [Thu, 18 Nov 2021 10:38:51 +0000 (18:38 +0800)]
chore!: drop Node.js 12 support
1. Cypress 9.0.0 doesn't play nice with Node.js 12 https://github.com/cypress-io/cypress/issues/18973
2. This package is for creating new projects, so I expect most users are
using a more up-to-date version of Node.js
Haoqun Jiang [Thu, 18 Nov 2021 08:38:16 +0000 (16:38 +0800)]
test: run build before e2e test
Haoqun Jiang [Thu, 18 Nov 2021 06:34:18 +0000 (14:34 +0800)]
refactor: use multi-word component names
so that it won't encounter lint errors when using eslint-plugin-vue's
recommended ruleset.
Haoqun Jiang [Wed, 17 Nov 2021 07:38:52 +0000 (15:38 +0800)]
refactor!: rename `serve` to `preview` and donot depend on pre-scripts
1. `pnpm` doesn't run pre-scripts by default, the project will work
inconsistenly when run by different package managers.
2. The rename is to be consistent with Vite: https://github.com/vitejs/vite/pull/5483
Haoqun Jiang [Wed, 17 Nov 2021 07:23:04 +0000 (15:23 +0800)]
chore!: bump the minimum Node.js version requirement as a precaution
As more and more packages are switching to pure ESM, some of the
ESM-related features are only supported in Node.js 12.20 or higher,
e.g. [subpath patterns](https://nodejs.org/api/packages.html#subpath-patterns).
So we need to bump the minimum version requirement to avoid confusions.
Haoqun Jiang [Wed, 17 Nov 2021 07:18:45 +0000 (15:18 +0800)]
chore: update dependencies with breaking changes
Haoqun Jiang [Wed, 17 Nov 2021 07:14:13 +0000 (15:14 +0800)]
chore: update all no-breaking dependencies
Sneaken [Wed, 17 Nov 2021 06:58:24 +0000 (14:58 +0800)]
fix: typo in comments (#10)
Haoqun Jiang [Thu, 7 Oct 2021 17:56:50 +0000 (01:56 +0800)]
3.0.0-beta.6
Haoqun Jiang [Thu, 7 Oct 2021 17:51:46 +0000 (01:51 +0800)]
refactor: define routes in `createRouter()` for better autocompletion
After this commit, the `route` & `typescript-route` templates have more
duplication than before.
I'll investigate later to see if the code templates can be further
simplified.
Haoqun Jiang [Thu, 7 Oct 2021 07:49:58 +0000 (15:49 +0800)]
3.0.0-beta.5
Haoqun Jiang [Thu, 7 Oct 2021 07:37:58 +0000 (15:37 +0800)]
chore: dependency maintenance
Haoqun Jiang [Thu, 7 Oct 2021 07:20:07 +0000 (15:20 +0800)]
chore: it doesn't make sense to have a `main` field at the current stage
Haoqun Jiang [Thu, 7 Oct 2021 07:09:00 +0000 (15:09 +0800)]
3.0.0-beta.4
Haoqun Jiang [Thu, 7 Oct 2021 06:53:17 +0000 (14:53 +0800)]
chore: update lockfile
Haoqun Jiang [Thu, 7 Oct 2021 06:39:40 +0000 (14:39 +0800)]
feat: sort dependencies before writing to disk
So that users' subsequent `npm add` calls won't mess the `package.json`.
Haoqun Jiang [Wed, 6 Oct 2021 14:30:30 +0000 (22:30 +0800)]
test: fix leading slash issue on Windows
Haoqun Jiang [Wed, 6 Oct 2021 13:29:47 +0000 (21:29 +0800)]
chore: pin typescript to 4.3 due to the auto import issue in 4.4
See https://github.com/microsoft/TypeScript/issues/45921
Haoqun Jiang [Thu, 23 Sep 2021 13:52:27 +0000 (21:52 +0800)]
chore: regenerate playground projects
Haoqun Jiang [Thu, 23 Sep 2021 13:51:41 +0000 (21:51 +0800)]
feat: @vue/compiler-sfc is no longer a required dependency
Haoqun Jiang [Thu, 23 Sep 2021 13:50:57 +0000 (21:50 +0800)]
chore: bump dependencies
Haoqun Jiang [Thu, 23 Sep 2021 13:39:05 +0000 (21:39 +0800)]
chore: set `isolatedModules` to true
To address the limitation of esbuild that features like `const enum`
can't be supported
Haoqun Jiang [Sat, 18 Sep 2021 09:31:44 +0000 (17:31 +0800)]
test: deal with errors thrown from child processes
Haoqun Jiang [Sat, 18 Sep 2021 05:28:28 +0000 (13:28 +0800)]
3.0.0-beta.3
Haoqun Jiang [Sat, 18 Sep 2021 05:27:47 +0000 (13:27 +0800)]
fix: fix bin field
Haoqun Jiang [Sat, 18 Sep 2021 02:34:14 +0000 (10:34 +0800)]
3.0.0-beta.2
Haoqun Jiang [Fri, 17 Sep 2021 15:06:31 +0000 (23:06 +0800)]
chore: update lockfile
Haoqun Jiang [Fri, 17 Sep 2021 14:48:51 +0000 (22:48 +0800)]
chore: regenerate the playground projects with updated dependencies
Haoqun Jiang [Fri, 17 Sep 2021 14:47:49 +0000 (22:47 +0800)]
build: work around esbuild bundling issue on `import.meta.url`
Haoqun Jiang [Fri, 17 Sep 2021 14:29:54 +0000 (22:29 +0800)]
chore: bump dependencies
Haoqun Jiang [Fri, 17 Sep 2021 09:16:32 +0000 (17:16 +0800)]
build: bundle the project with esbuild
Haoqun Jiang [Fri, 17 Sep 2021 08:08:26 +0000 (16:08 +0800)]
fix: don't use template files for readme, to simplify the logic
Haoqun Jiang [Thu, 9 Sep 2021 12:46:28 +0000 (20:46 +0800)]
chore: adjust the function name and comment a little bit
Haoqun Jiang [Wed, 8 Sep 2021 09:16:21 +0000 (17:16 +0800)]
3.0.0-beta.1
Haoqun Jiang [Tue, 7 Sep 2021 08:39:12 +0000 (16:39 +0800)]
chore: regenerate the playground projects
Haoqun Jiang [Tue, 7 Sep 2021 08:38:00 +0000 (16:38 +0800)]
style: format code
Haoqun Jiang [Tue, 7 Sep 2021 08:36:09 +0000 (16:36 +0800)]
test: fix getCombination function
Haoqun Jiang [Tue, 7 Sep 2021 08:04:24 +0000 (16:04 +0800)]
chore: mention official @vuejs twitter account in the community section
Haoqun Jiang [Tue, 7 Sep 2021 07:58:48 +0000 (15:58 +0800)]
chore: make the wording the for the Documentation item more succint
Haoqun Jiang [Tue, 7 Sep 2021 07:34:05 +0000 (15:34 +0800)]
chore: update router template with simplified folder structure
Haoqun Jiang [Tue, 7 Sep 2021 07:30:06 +0000 (15:30 +0800)]
fix: update reference to env.d.ts
Haoqun Jiang [Tue, 7 Sep 2021 07:29:18 +0000 (15:29 +0800)]
chore: simplify ts-router folder structure
Haoqun Jiang [Tue, 7 Sep 2021 07:02:07 +0000 (15:02 +0800)]
chore: simplify the folder structure of default templates
Haoqun Jiang [Mon, 6 Sep 2021 08:02:20 +0000 (16:02 +0800)]
chore: rename vite-env.d.ts to env.d.ts
Most of its content is tool-agnostic
Haoqun Jiang [Mon, 6 Sep 2021 08:00:57 +0000 (16:00 +0800)]
chore: only add .d.ts and tsconfig for ts projects
Haoqun Jiang [Mon, 23 Aug 2021 12:55:15 +0000 (20:55 +0800)]
ci: fix typo
Haoqun Jiang [Mon, 23 Aug 2021 12:08:01 +0000 (20:08 +0800)]
ci: fix typo
Haoqun Jiang [Mon, 23 Aug 2021 11:57:58 +0000 (19:57 +0800)]
workflow: run snapshot before tests
Haoqun Jiang [Mon, 23 Aug 2021 11:57:17 +0000 (19:57 +0800)]
chore: note that the current combination algorithm is incorrect
Haoqun Jiang [Mon, 23 Aug 2021 11:55:08 +0000 (19:55 +0800)]
chore: no need to test `dev` & `build` separately
They're covered by the unit & e2e tests
Haoqun Jiang [Mon, 23 Aug 2021 11:54:24 +0000 (19:54 +0800)]
test: enable `shell` option, fixing pnpm ENOENT errors
Haoqun Jiang [Mon, 23 Aug 2021 08:27:45 +0000 (16:27 +0800)]
ci: shrink test matrix
Haoqun Jiang [Mon, 23 Aug 2021 08:25:13 +0000 (16:25 +0800)]
test: fix windows path compatibility
Haoqun Jiang [Mon, 23 Aug 2021 08:16:56 +0000 (16:16 +0800)]
workflow: add github actions config
Haoqun Jiang [Mon, 23 Aug 2021 07:53:07 +0000 (15:53 +0800)]
refactor: add `Icon` prefix to icon components
Following the naming convention from <https://vuejs.org/v2/cookbook/editable-svg-icons.html>
Haoqun Jiang [Mon, 23 Aug 2021 07:52:30 +0000 (15:52 +0800)]
workflow: replace `pnpx` with `pnpm exec`
As `pnpx` is deprecated
Haoqun Jiang [Thu, 19 Aug 2021 13:22:42 +0000 (21:22 +0800)]
3.0.0-beta.0
Haoqun Jiang [Thu, 19 Aug 2021 13:21:26 +0000 (21:21 +0800)]
chore: snapshot
Haoqun Jiang [Thu, 19 Aug 2021 13:20:53 +0000 (21:20 +0800)]
feat: router templates
Haoqun Jiang [Thu, 19 Aug 2021 12:40:57 +0000 (20:40 +0800)]
chore: some cleanup in the styles
Haoqun Jiang [Thu, 19 Aug 2021 12:24:39 +0000 (20:24 +0800)]
chore: text color can be a little dimmer in dark mode
Haoqun Jiang [Thu, 19 Aug 2021 11:24:30 +0000 (19:24 +0800)]
chore: use a slightly smaller font for `h3`
Haoqun Jiang [Thu, 19 Aug 2021 11:15:15 +0000 (19:15 +0800)]
chore: refine text styles
Haoqun Jiang [Thu, 19 Aug 2021 10:38:13 +0000 (18:38 +0800)]
chore: remove unused styles
Haoqun Jiang [Thu, 19 Aug 2021 08:40:03 +0000 (16:40 +0800)]
3.0.0-alpha.3
Haoqun Jiang [Thu, 19 Aug 2021 08:37:09 +0000 (16:37 +0800)]
fix: don't exclude spec files from ts check
As https://github.com/cypress-io/cypress/issues/17480 is resolved
Haoqun Jiang [Thu, 19 Aug 2021 08:35:37 +0000 (16:35 +0800)]
feat: new landing page design for default & typescript-default template
Haoqun Jiang [Thu, 19 Aug 2021 08:26:11 +0000 (16:26 +0800)]
style: printWidth 100 looks better to me
Haoqun Jiang [Mon, 16 Aug 2021 08:26:19 +0000 (16:26 +0800)]
chore: dependency maintenance
Haoqun Jiang [Wed, 11 Aug 2021 15:08:54 +0000 (23:08 +0800)]
chore: add a note that `pnpm init` cannot be distinguished at the moment
Haoqun Jiang [Wed, 11 Aug 2021 15:03:15 +0000 (23:03 +0800)]
chore: project maintenance
Haoqun Jiang [Wed, 11 Aug 2021 13:29:18 +0000 (21:29 +0800)]
style: format code
Haoqun Jiang [Wed, 11 Aug 2021 09:30:42 +0000 (17:30 +0800)]
3.0.0-alpha.2
Haoqun Jiang [Wed, 11 Aug 2021 09:26:15 +0000 (17:26 +0800)]
chore: regenerate all template snapshots with the new readme
Haoqun Jiang [Wed, 11 Aug 2021 09:25:54 +0000 (17:25 +0800)]
feat: implement readme generation
Haoqun Jiang [Wed, 11 Aug 2021 08:22:24 +0000 (16:22 +0800)]
test: implement basic testing for generated templates
Haoqun Jiang [Wed, 11 Aug 2021 08:21:52 +0000 (16:21 +0800)]
chore: ignore dist directories
Haoqun Jiang [Wed, 11 Aug 2021 08:20:47 +0000 (16:20 +0800)]
fix: fix js HelloWorld template
Haoqun Jiang [Wed, 11 Aug 2021 07:55:38 +0000 (15:55 +0800)]
fix: fix entry path in js projects
Haoqun Jiang [Wed, 11 Aug 2021 07:53:22 +0000 (15:53 +0800)]
feat: add force overwrite option
Haoqun Jiang [Wed, 11 Aug 2021 07:35:57 +0000 (15:35 +0800)]
style: format code