inanis 0.0.2 → 0.0.3-beta.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/deploy.ts +18 -0
- package/package.json +65 -63
- package/tsconfig.json +1 -0
package/deploy.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import fsx from 'fs-extra'
|
|
2
|
+
import semver from 'semver'
|
|
3
|
+
import Package from './package.json'
|
|
4
|
+
import { buildTools } from './src/build-tools'
|
|
5
|
+
|
|
6
|
+
const main = async() => {
|
|
7
|
+
const { exec } = buildTools
|
|
8
|
+
Package.version = semver.inc(Package.version, 'prerelease', 'beta') || ''
|
|
9
|
+
fsx.writeFileSync('./package.json', JSON.stringify(Package, null, 4))
|
|
10
|
+
exec([
|
|
11
|
+
'yarn build',
|
|
12
|
+
'git add .',
|
|
13
|
+
'git commit -m \'update\'',
|
|
14
|
+
'git push'
|
|
15
|
+
])
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
main()
|
package/package.json
CHANGED
|
@@ -1,64 +1,66 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
2
|
+
"name": "inanis",
|
|
3
|
+
"version": "0.0.3-beta.1",
|
|
4
|
+
"description": "Micro Service Best Tools.",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "nyc mocha --require ts-node/register ./lib/**/*.test.ts ./lib/*.test.ts",
|
|
8
|
+
"build": "cross-env webpack --progress",
|
|
9
|
+
"prepare": "ts-patch install -s",
|
|
10
|
+
"deploy": "ts-node ./deploy.ts"
|
|
11
|
+
},
|
|
12
|
+
"author": "khczhihao",
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@babel/core": "^7.19.3",
|
|
15
|
+
"@babel/preset-env": "^7.19.3",
|
|
16
|
+
"@types/aws-lambda": "^8.10.106",
|
|
17
|
+
"@types/chai": "^4.3.3",
|
|
18
|
+
"@types/express": "^4.17.14",
|
|
19
|
+
"@types/fs-extra": "^9.0.13",
|
|
20
|
+
"@types/jsonwebtoken": "^8.5.9",
|
|
21
|
+
"@types/mocha": "^9.1.1",
|
|
22
|
+
"@types/node": "^13.13.45",
|
|
23
|
+
"@types/node-schedule": "^2.1.0",
|
|
24
|
+
"@types/semver": "^7.3.13",
|
|
25
|
+
"@types/websocket": "^1.0.5",
|
|
26
|
+
"@typescript-eslint/eslint-plugin": "^5.39.0",
|
|
27
|
+
"@typescript-eslint/parser": "^5.39.0",
|
|
28
|
+
"aws-lambda": "^1.0.7",
|
|
29
|
+
"chai": "^4.3.6",
|
|
30
|
+
"cross-env": "^7.0.3",
|
|
31
|
+
"eslint": "^8.25.0",
|
|
32
|
+
"eslint-webpack-plugin": "^3.2.0",
|
|
33
|
+
"mocha": "^9.1.3",
|
|
34
|
+
"nyc": "^15.1.0",
|
|
35
|
+
"openapi-types": "^12.0.2",
|
|
36
|
+
"semver": "^7.3.8",
|
|
37
|
+
"ts-loader": "^9.3.1",
|
|
38
|
+
"ts-node": "^10.9.1",
|
|
39
|
+
"ts-patch": "^2.0.2",
|
|
40
|
+
"tsconfig-paths-webpack-plugin": "^4.0.0",
|
|
41
|
+
"typescript": "^4.8.4",
|
|
42
|
+
"typescript-transform-paths": "^3.3.1",
|
|
43
|
+
"webpack": "^5.74.0",
|
|
44
|
+
"webpack-cli": "^4.10.0"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@sodaru/yup-to-json-schema": "^1.0.5",
|
|
48
|
+
"aws-sdk": "^2.1231.0",
|
|
49
|
+
"axios": "^1.1.3",
|
|
50
|
+
"change-case": "^4.1.2",
|
|
51
|
+
"dayjs": "^1.11.5",
|
|
52
|
+
"fs-extra": "^10.1.0",
|
|
53
|
+
"google-auth-library": "^8.6.0",
|
|
54
|
+
"js-beautify": "^1.14.7",
|
|
55
|
+
"js-yaml": "^4.1.0",
|
|
56
|
+
"json-schema-to-typescript": "^11.0.2",
|
|
57
|
+
"json-to-pretty-yaml": "^1.2.2",
|
|
58
|
+
"jsonwebtoken": "^8.5.1",
|
|
59
|
+
"mongodb": "^4.10.0",
|
|
60
|
+
"node-schedule": "^2.1.0",
|
|
61
|
+
"power-helper": "^0.4.9",
|
|
62
|
+
"websocket": "^1.0.34",
|
|
63
|
+
"yaml": "^2.1.3",
|
|
64
|
+
"yup": "^0.32.11"
|
|
65
|
+
}
|
|
66
|
+
}
|