capacitor-standard-version 1.0.0 → 1.0.3
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/LICENSE.txt +16 -0
- package/README.md +7 -0
- package/dist/index.js +2 -0
- package/package.json +33 -5
- 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/android-version-updater.js +0 -11
- package/index.js +0 -47
- package/ios-version-updater.js +0 -11
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/LICENSE.txt
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016, Contributors
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software
|
|
6
|
+
for any purpose with or without fee is hereby granted, provided
|
|
7
|
+
that the above copyright notice and this permission notice
|
|
8
|
+
appear in all copies.
|
|
9
|
+
|
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
11
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
|
12
|
+
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
|
|
13
|
+
LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
|
|
14
|
+
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
15
|
+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
16
|
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
package/README.md
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
(()=>{"use strict";var e={805:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.writeVersion=t.readVersion=void 0,t.readVersion=e=>e.split('versionName "')[1].split('"')[0],t.writeVersion=(e,t)=>{const r=e.replace(/(.*(?:versionName[ \t]+).*)/g,` versionName "${t}"`),n=Number(t.split(".").map((e=>1===e.length?`0${e}`:e)).join(""));return r.replace(/(.*(?:versionCode[ \t]+).*)/g,` versionCode "${n}"`)}},655:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const u=s(r(322)),c=r(597),l=s(r(389)),p=o(r(861)),d={noVerify:!0,tagPrefix:"",releaseCommitMessageFormat:"chore(release): {{currentTag}} [skip ci]",packageFiles:[{filename:"./package.json",type:"json"}],bumpFiles:[{filename:"./android/app/build.gradle",updater:o(r(805))},{filename:"./package.json",type:"json"},{filename:"./package-lock.json",type:"json"},{filename:"./ios/App/App.xcodeproj/project.pbxproj",updater:p}]};!function(){a(this,void 0,void 0,(function*(){try{const e=(0,c.getConfiguration)(),t=(0,l.default)(d,e);yield(0,u.default)(t)}catch(e){throw console.error(e),e}}))}()},861:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.writeVersion=t.readVersion=void 0,t.readVersion=e=>e.match(/MARKETING_VERSION = [0-9]*.[0-9]*.[0-9]*/).toString().split("=")[1].trim(),t.writeVersion=(e,t)=>e.replace(/(.*(?:MARKETING_VERSION[ \t]+).*)/g,` MARKETING_VERSION = "${t}"`).replace(/(.*(?:CURRENT_PROJECT_VERSION[ \t]+).*)/g,` CURRENT_PROJECT_VERSION "${t}"`)},389:e=>{e.exports=require("merge-deep")},322:e=>{e.exports=require("standard-version")},597:e=>{e.exports=require("standard-version/lib/configuration")}},t={};!function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}(655)})();
|
package/package.json
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-standard-version",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Default standard-version config for capacitor app",
|
|
5
|
-
"main": "index.js",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"capacitor-standard-version": "index.js"
|
|
7
|
+
"capacitor-standard-version": "dist/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
|
+
}
|