create-packer 1.25.20 → 1.25.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.25.20",
3
+ "version": "1.25.21",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npx --no -- commitlint --edit
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npm run lint
@@ -0,0 +1,6 @@
1
+ **/*.md
2
+ **/*.svg
3
+ **/*.ejs
4
+ **/*.html
5
+ .history
6
+ dist
@@ -0,0 +1,8 @@
1
+ {
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "stylelint.vscode-stylelint",
5
+ "esbenp.prettier-vscode",
6
+ "svelte.svelte-vscode"
7
+ ]
8
+ }
@@ -0,0 +1 @@
1
+ module.exports = { extends: ['@commitlint/config-conventional'] }
@@ -4,6 +4,7 @@
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
7
+ "prepare": "husky install",
7
8
  "dev": "vite",
8
9
  "build": "npm run check && npm run lint && vite build",
9
10
  "build:analyse": "npm run check && npm run lint && vite build --mode analyse",
@@ -11,19 +12,30 @@
11
12
  "up:vite": "pnpm up vite @vitejs/* -L",
12
13
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
13
14
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
14
- "lint": "eslint .",
15
- "format": "prettier --plugin-search-dir . --write ."
15
+ "lint": "pnpm run check && eslint .",
16
+ "format": "prettier --plugin-search-dir . --write .",
17
+ "cz": "cz",
18
+ "push": "npm run commit && git push",
19
+ "commit": "git add . && npm run cz"
16
20
  },
17
21
  "devDependencies": {
22
+ "@commitlint/cli": "17.7.1",
23
+ "@commitlint/config-conventional": "17.7.0",
24
+ "@commitlint/cz-commitlint": "17.7.1",
18
25
  "@sveltejs/adapter-auto": "2.1.0",
19
26
  "@sveltejs/kit": "1.25.0",
20
- "@types/lodash-es": "^4.17.9",
27
+ "@types/lodash-es": "4.17.9",
21
28
  "@typescript-eslint/eslint-plugin": "6.7.2",
22
29
  "@typescript-eslint/parser": "6.7.2",
30
+ "commitizen": "4.3.0",
31
+ "cssnano": "6.0.1",
23
32
  "eslint": "8.50.0",
24
33
  "eslint-config-prettier": "9.0.0",
25
34
  "eslint-plugin-import": "2.27.5",
26
35
  "eslint-plugin-svelte": "2.33.2",
36
+ "postcss": "8.4.30",
37
+ "postcss-import": "15.1.0",
38
+ "postcss-nesting": "12.0.1",
27
39
  "prettier": "3.0.3",
28
40
  "prettier-plugin-svelte": "3.0.3",
29
41
  "rollup-plugin-visualizer": "5.9.2",