@lntvow/dev 0.0.1

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/.czrc ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "path": "cz-conventional-changelog"
3
+ }
package/.editorconfig ADDED
@@ -0,0 +1,14 @@
1
+ # https://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ indent_style = space
7
+ indent_size = 2
8
+ end_of_line = lf
9
+ insert_final_newline = true
10
+ trim_trailing_whitespace = true
11
+
12
+ [*.md]
13
+ insert_final_newline = false
14
+ trim_trailing_whitespace = false
package/.eslintignore ADDED
@@ -0,0 +1,25 @@
1
+ # Logs
2
+ logs
3
+ *.log
4
+ npm-debug.log*
5
+ yarn-debug.log*
6
+ yarn-error.log*
7
+ pnpm-debug.log*
8
+ lerna-debug.log*
9
+
10
+ node_modules
11
+ .DS_Store
12
+ dist
13
+ dist-ssr
14
+ coverage
15
+ *.local
16
+
17
+ /cypress/videos/
18
+ /cypress/screenshots/
19
+
20
+ # Editor directories and files
21
+ *.suo
22
+ *.ntvs*
23
+ *.njsproj
24
+ *.sln
25
+ *.sw?
package/.eslintrc.cjs ADDED
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ root: true,
3
+ extends: ['@lntvow/eslint-config-prettier'],
4
+ rules: {},
5
+ }
@@ -0,0 +1,44 @@
1
+ name: publish-npm
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ paths:
7
+ - 'package.json'
8
+
9
+ jobs:
10
+ publish-npm:
11
+ runs-on: ubuntu-latest
12
+ timeout-minutes: 10
13
+ steps:
14
+ - name: Checkout
15
+ uses: actions/checkout@v3
16
+
17
+ - name: Set Node
18
+ uses: actions/setup-node@v3
19
+ with:
20
+ node-version: 18
21
+ registry-url: https://registry.npmjs.org/
22
+
23
+ - name: Set pnpm
24
+ uses: pnpm/action-setup@v2
25
+ with:
26
+ version: 8
27
+
28
+ - name: Get pnpm store directory
29
+ shell: bash
30
+ run: |
31
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
32
+
33
+ - uses: actions/cache@v3
34
+ name: Setup pnpm cache
35
+ with:
36
+ path: ${{ env.STORE_PATH }}
37
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
38
+ restore-keys: |
39
+ ${{ runner.os }}-pnpm-store-
40
+
41
+ - run: pnpm install
42
+ - run: pnpm publish --access public
43
+ env:
44
+ NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH}}
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npx commitlint --edit $1
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npx lint-staged
package/.prettierrc ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "printWidth": 120,
3
+ "semi": false,
4
+ "singleQuote": true,
5
+ "arrowParens": "avoid",
6
+ "trailingComma": "es5",
7
+ "htmlWhitespaceSensitivity": "ignore"
8
+ }
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # dev
2
+
3
+ 开发环境依赖包
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ extends: ['@commitlint/config-conventional'],
3
+ rules: {},
4
+ }
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@lntvow/dev",
3
+ "version": "0.0.1",
4
+ "description": "开发环境依赖包",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "lntvow",
8
+ "dependencies": {
9
+ "@commitlint/cli": "^19.1.0",
10
+ "@commitlint/config-conventional": "^19.1.0",
11
+ "@lntvow/eslint-config": "^8.3.13",
12
+ "bumpp": "^9.4.0",
13
+ "commitizen": "^4.3.0",
14
+ "cz-conventional-changelog": "^3.3.0",
15
+ "husky": "^9.0.11",
16
+ "lint-staged": "^15.2.2"
17
+ },
18
+ "lint-staged": {
19
+ "*.{js,jsx,ts,tsx,vue}": [
20
+ "eslint --fix"
21
+ ],
22
+ "*.{json,css,scss,md}": [
23
+ "prettier --write"
24
+ ]
25
+ },
26
+ "scripts": {
27
+ "commit": "git add . && git-cz && git push",
28
+ "rimraf": "rimraf ./node_modules/",
29
+ "release": "git add . && bumpp package.json --all --commit --no-tag --push"
30
+ }
31
+ }