]>
git.ipfire.org Git - thirdparty/vuejs/create-vue.git/log
Haoqun Jiang [Sun, 26 Dec 2021 05:03:29 +0000 (13:03 +0800)]
ci: fix testing failures caused by node_module
Haoqun Jiang [Sat, 25 Dec 2021 14:45:12 +0000 (22:45 +0800)]
fix: fix type & eslint issues in the cypress plugin file
Haoqun Jiang [Sat, 25 Dec 2021 14:11:53 +0000 (22:11 +0800)]
feat: add eslint prompts
It's a work-in-progress feature, though.
I haven't thought about how to test it yet.
Haoqun Jiang [Fri, 24 Dec 2021 08:38:44 +0000 (16:38 +0800)]
chore: update all dependencies
Haoqun Jiang [Fri, 24 Dec 2021 08:24:17 +0000 (16:24 +0800)]
workflow: include template package.jsons in the workspace
So that the deps are managed by pnpm and can be updated automatically
with either `pnpm up` or renovate
Haoqun Jiang [Fri, 24 Dec 2021 08:17:24 +0000 (16:17 +0800)]
chore: add eslint comments to avoid errors in the future
Haoqun Jiang [Fri, 24 Dec 2021 06:02:06 +0000 (14:02 +0800)]
chore: update playground
Haoqun Jiang [Fri, 24 Dec 2021 06:01:19 +0000 (14:01 +0800)]
3.0.3
Haoqun Jiang [Wed, 22 Dec 2021 08:52:18 +0000 (16:52 +0800)]
docs: replace vuex link with pinia
btea [Wed, 22 Dec 2021 08:41:14 +0000 (02:41 -0600)]
fix: remove default router ts (#20)
Haoqun Jiang [Mon, 13 Dec 2021 05:25:33 +0000 (13:25 +0800)]
3.0.2
btea [Sun, 12 Dec 2021 13:25:08 +0000 (07:25 -0600)]
chore: remove unnecessary style (#16)
Haoqun Jiang [Sun, 12 Dec 2021 12:08:42 +0000 (20:08 +0800)]
chore: bump dependencies
Notablly, `@vitejs/plugin-vue` is updated to 2.0.0
Haoqun Jiang [Sat, 4 Dec 2021 13:54:16 +0000 (21:54 +0800)]
chore: dependency maintenance and snapshot updates
JD [Sat, 4 Dec 2021 05:19:39 +0000 (21:19 -0800)]
fix(template): update gitignore to avoid excluding extensions.json (#17)
Haoqun Jiang [Fri, 3 Dec 2021 15:02:08 +0000 (23:02 +0800)]
3.0.1
Haoqun Jiang [Fri, 3 Dec 2021 15:01:20 +0000 (23:01 +0800)]
fix: update typescript version
Fixes #18
Haoqun Jiang [Fri, 3 Dec 2021 06:22:32 +0000 (14:22 +0800)]
ci: tolerant CI failure on windows platform
It is a known issue in Cypress Component Testing with Vite:
https://docs.cypress.io/guides/component-testing/introduction#Experimental
> May flake in resource-constrained CI machines
Haoqun Jiang [Fri, 3 Dec 2021 05:37:40 +0000 (13:37 +0800)]
docs: mention the Vue 2 version for IE11 support
Haoqun Jiang [Fri, 3 Dec 2021 05:29:56 +0000 (13:29 +0800)]
3.0.0
Haoqun Jiang [Tue, 30 Nov 2021 13:31:54 +0000 (21:31 +0800)]
3.0.0-beta.10
btea [Wed, 1 Dec 2021 11:54:51 +0000 (05:54 -0600)]
fix: typo in comment (#14)
Haoqun Jiang [Tue, 30 Nov 2021 12:41:57 +0000 (20:41 +0800)]
ci: reenable windows test, now that we've disabled fail-fast
Haoqun Jiang [Tue, 30 Nov 2021 12:41:07 +0000 (20:41 +0800)]
ci: use node 16 as the main version, as it's the active LTS
Haoqun Jiang [Tue, 30 Nov 2021 10:32:10 +0000 (18:32 +0800)]
ci: turn off fail-fast strategy
The failing unit tests can not be reproduced consistently.
So I think we'd better continue running tests in all other environments
and see if it is a universal issue.
If not, we'd better go on with the new Cypress version and try to
resolve the flaky test issue on the Cypress side.
Otherwise we may have to roll back to the previous version.
Haoqun Jiang [Tue, 30 Nov 2021 07:05:22 +0000 (15:05 +0800)]
chore: bump cypress version
It seems to have fixed a lot of issues, including Apple Silicon, Windows compatibility.
Haoqun Jiang [Tue, 30 Nov 2021 06:40:18 +0000 (14:40 +0800)]
chore: remove redundant files
Haoqun Jiang [Mon, 29 Nov 2021 09:59:31 +0000 (17:59 +0800)]
3.0.0-beta.9
Haoqun Jiang [Mon, 29 Nov 2021 08:57:29 +0000 (16:57 +0800)]
chore: update playground
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