capacitor-standard-version 1.0.1 → 1.0.2
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/.eslintignore +2 -0
- package/.eslintrc +53 -0
- package/.prettierignore +6 -0
- package/.vscode/launch.json +23 -0
- package/.vscode/settings.json +4 -0
- package/.vscode/tasks.json +42 -0
- package/package.json +31 -3
- package/pnpm-lock.yaml +4880 -0
- package/src/bin/android.ts +11 -0
- package/src/bin/index.ts +49 -0
- package/src/bin/ios.ts +11 -0
- package/tsconfig.json +14 -0
- package/webpack.config.js +30 -0
package/.eslintignore
ADDED
package/.eslintrc
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": ["airbnb-base", "plugin:@typescript-eslint/recommended", "eslint-config-prettier"],
|
|
3
|
+
"parser": "@typescript-eslint/parser",
|
|
4
|
+
"plugins": ["@typescript-eslint", "prettier"],
|
|
5
|
+
"settings": {
|
|
6
|
+
"import/parsers": {
|
|
7
|
+
"@typescript-eslint/parser": [".ts", ".tsx"]
|
|
8
|
+
},
|
|
9
|
+
"import/resolver": {
|
|
10
|
+
"typescript": {}
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"rules": {
|
|
14
|
+
"import/prefer-default-export": 0,
|
|
15
|
+
"no-param-reassign": 0,
|
|
16
|
+
"import/no-extraneous-dependencies": [
|
|
17
|
+
2,
|
|
18
|
+
{
|
|
19
|
+
"devDependencies": ["**/spec.tsx", "**/spec.ts", "__tests__/**/*"]
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"import/extensions": 0,
|
|
23
|
+
"indent": "off",
|
|
24
|
+
"@typescript-eslint/indent": ["error", 2],
|
|
25
|
+
"eofline": 0,
|
|
26
|
+
"arrow-parens": 0,
|
|
27
|
+
"ordered-imports": 0,
|
|
28
|
+
"object-literal-sort-keys": 0,
|
|
29
|
+
"no-empty": 2,
|
|
30
|
+
"no-unused-expression": 0,
|
|
31
|
+
"linebreak-style": 0,
|
|
32
|
+
"@typescript-eslint/explicit-function-return-type": 0,
|
|
33
|
+
"max-len": [
|
|
34
|
+
"error",
|
|
35
|
+
{
|
|
36
|
+
"code": 140
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"@typescript-eslint/no-use-before-define": 0,
|
|
40
|
+
"@typescript-eslint/no-empty-function": 0,
|
|
41
|
+
"no-unused-expressions": 0,
|
|
42
|
+
"operator-linebreak": 0,
|
|
43
|
+
"implicit-arrow-linebreak": 0,
|
|
44
|
+
"no-implicit-dependencies": 0,
|
|
45
|
+
"no-use-before-define": 0,
|
|
46
|
+
"class-methods-use-this": 0,
|
|
47
|
+
"no-restricted-syntax": 0,
|
|
48
|
+
"no-await-in-loop": 0,
|
|
49
|
+
"no-continue": 0,
|
|
50
|
+
"no-underscore-dangle": 0,
|
|
51
|
+
"no-console": 0
|
|
52
|
+
}
|
|
53
|
+
}
|
package/.prettierignore
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
|
|
7
|
+
"configurations": [
|
|
8
|
+
{
|
|
9
|
+
"type": "node",
|
|
10
|
+
"request": "launch",
|
|
11
|
+
"name": "Launch",
|
|
12
|
+
"program": "${workspaceFolder}/dist/index.js",
|
|
13
|
+
"args": ["-u", "Edwin Hubble", "-w", "y"]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "node",
|
|
17
|
+
"request": "launch",
|
|
18
|
+
"name": "Launch with other params",
|
|
19
|
+
"program": "${workspaceFolder}/dist/index.js",
|
|
20
|
+
"args": ["-u", "Enrico Fermi", "-w", "y"]
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
+
// for the documentation about the tasks.json format
|
|
4
|
+
"version": "2.0.0",
|
|
5
|
+
"tasks": [
|
|
6
|
+
{
|
|
7
|
+
"type": "typescript",
|
|
8
|
+
"tsconfig": "tsconfig.json",
|
|
9
|
+
"problemMatcher": ["$tsc"],
|
|
10
|
+
"group": "build"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "shell",
|
|
14
|
+
"label": "webpack dev",
|
|
15
|
+
"command": "npx",
|
|
16
|
+
"options": {
|
|
17
|
+
"env": {
|
|
18
|
+
"NODE_ENV": "development"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"isBackground": true,
|
|
22
|
+
"args": ["webpack", "--config webpack.config.js"],
|
|
23
|
+
"problemMatcher": [
|
|
24
|
+
{
|
|
25
|
+
"pattern": [
|
|
26
|
+
{
|
|
27
|
+
"regexp": ".",
|
|
28
|
+
"file": 1,
|
|
29
|
+
"location": 2,
|
|
30
|
+
"message": 3
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"background": {
|
|
34
|
+
"activeOnStart": true,
|
|
35
|
+
"beginsPattern": ".",
|
|
36
|
+
"endsPattern": ".",
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-standard-version",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Default standard-version config for capacitor app",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"capacitor-standard-version": "index.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"
|
|
10
|
+
"dev": "set NODE_ENV=development&& npx webpack --config webpack.config.js",
|
|
11
|
+
"no-debug": "node dist/index.js",
|
|
12
|
+
"build": "set NODE_ENV=production&& npx webpack --config webpack.config.js",
|
|
13
|
+
"pack": "pkg",
|
|
14
|
+
"lint": "eslint . --ext .ts --fix"
|
|
11
15
|
},
|
|
12
16
|
"repository": {
|
|
13
17
|
"type": "git",
|
|
@@ -28,5 +32,29 @@
|
|
|
28
32
|
"dependencies": {
|
|
29
33
|
"merge-deep": "^3.0.3",
|
|
30
34
|
"standard-version": "^9.3.2"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/adm-zip": "^0.4.34",
|
|
38
|
+
"@types/fs-extra": "^9.0.13",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "5.14.0",
|
|
40
|
+
"@typescript-eslint/parser": "^5.14.0",
|
|
41
|
+
"awesome-typescript-loader": "^5.2.1",
|
|
42
|
+
"eslint": "^8.11.0",
|
|
43
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
44
|
+
"eslint-config-prettier": "^8.5.0",
|
|
45
|
+
"eslint-import-resolver-typescript": "^2.5.0",
|
|
46
|
+
"eslint-plugin-import": "^2.25.4",
|
|
47
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
48
|
+
"git-format-staged": "^2.1.3",
|
|
49
|
+
"husky": "^7.0.4",
|
|
50
|
+
"nodemon": "^2.0.15",
|
|
51
|
+
"pkg": "^5.5.2",
|
|
52
|
+
"prettier": "^2.5.1",
|
|
53
|
+
"ts-node": "^10.7.0",
|
|
54
|
+
"tsconfig-paths": "^3.14.0",
|
|
55
|
+
"typescript": "^4.6.2",
|
|
56
|
+
"webpack": "^5.70.0",
|
|
57
|
+
"webpack-cli": "^4.9.2",
|
|
58
|
+
"webpack-node-externals": "^3.0.0"
|
|
31
59
|
}
|
|
32
|
-
}
|
|
60
|
+
}
|