cmyr-template-cli 1.17.5 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/plopfile.js CHANGED
@@ -1121,6 +1121,7 @@ module.exports = function (plop) {
1121
1121
  'vite3',
1122
1122
  'vite2-vue2',
1123
1123
  'vite2',
1124
+ 'electron-vite',
1124
1125
  'electron-vue',
1125
1126
  'nuxt',
1126
1127
  'uni',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmyr-template-cli",
3
- "version": "1.17.5",
3
+ "version": "1.18.0",
4
4
  "description": "草梅友仁自制的项目模板创建器",
5
5
  "author": "CaoMeiYouRen",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  "build:prod": "npm run build && rimraf temp && cross-env NODE_ENV=production ct create"
33
33
  },
34
34
  "devDependencies": {
35
- "@rollup/plugin-commonjs": "^24.0.0",
35
+ "@rollup/plugin-commonjs": "^25.0.0",
36
36
  "@rollup/plugin-json": "^6.0.0",
37
37
  "@rollup/plugin-node-resolve": "^15.0.0",
38
38
  "@rollup/plugin-replace": "^5.0.0",
@@ -44,7 +44,7 @@
44
44
  "@types/fs-extra": "^11.0.0",
45
45
  "@types/inquirer": "^9.0.3",
46
46
  "@types/lodash": "^4.14.165",
47
- "@types/node": "^18.0.0",
47
+ "@types/node": "^20.0.0",
48
48
  "@types/promise.any": "^2.0.0",
49
49
  "@typescript-eslint/eslint-plugin": "^4.9.0",
50
50
  "@typescript-eslint/parser": "^4.9.0",
@@ -58,7 +58,7 @@
58
58
  "eslint-config-cmyr": "^1.1.27",
59
59
  "husky": "^8.0.1",
60
60
  "lint-staged": "^13.0.0",
61
- "rimraf": "^4.0.4",
61
+ "rimraf": "^5.0.0",
62
62
  "rollup": "^2.79.0",
63
63
  "rollup-plugin-terser": "^7.0.2",
64
64
  "semantic-release": "^21.0.0",
@@ -12,19 +12,18 @@ jobs:
12
12
  with:
13
13
  persist-credentials: false
14
14
  - name: Setup Node.js environment
15
- uses: actions/setup-node@v2
15
+ uses: actions/setup-node@v3
16
16
  with:
17
17
  node-version: "lts/*"
18
- # cache: "yarn"
19
- - name: Cache multiple paths
20
- uses: actions/cache@v2
18
+ - name: Get yarn cache directory path
19
+ id: yarn-cache-dir-path
20
+ run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
21
+ - uses: actions/cache@v3
22
+ id: yarn-cache
21
23
  with:
22
- path: |
23
- ~/.npm
24
- ~/cache
25
- !~/cache/exclude
26
- **/node_modules
27
- key: npm-${{ runner.os }}-${{ hashFiles('package.json') }}
24
+ path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
25
+ key: ${{ runner.os }}-yarn-${{ hashFiles('package.json') }}
26
+ restore-keys: ${{ runner.os }}-yarn-
28
27
  - run: yarn
29
28
  - run: yarn run lint
30
29
  - run: yarn run build
@@ -5,21 +5,20 @@ jobs:
5
5
  name: Test
6
6
  runs-on: ubuntu-latest
7
7
  steps:
8
- - uses: actions/checkout@v2
8
+ - uses: actions/checkout@v3
9
9
  - name: Setup Node.js@lts environment
10
- uses: actions/setup-node@v2
10
+ uses: actions/setup-node@v3
11
11
  with:
12
12
  node-version: "lts/*"
13
- # cache: "yarn"
14
- - name: Cache multiple paths
15
- uses: actions/cache@v2
13
+ - name: Get yarn cache directory path
14
+ id: yarn-cache-dir-path
15
+ run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
16
+ - uses: actions/cache@v3
17
+ id: yarn-cache
16
18
  with:
17
- path: |
18
- ~/.npm
19
- ~/cache
20
- !~/cache/exclude
21
- **/node_modules
22
- key: npm-${{ runner.os }}-${{ hashFiles('package.json') }}
19
+ path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
20
+ key: ${{ runner.os }}-yarn-${{ hashFiles('package.json') }}
21
+ restore-keys: ${{ runner.os }}-yarn-
23
22
  - run: yarn
24
23
  - run: yarn run lint
25
24
  - run: yarn run build