@candlerip/shared3 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/_devops/cdk/cdk-deploy.sh +12 -0
- package/_devops/eslint/eslint.config.js +8 -2
- package/_devops/git/git-push.sh +6 -0
- package/_devops/npm/npm-patch-version.sh +4 -0
- package/_devops/npm/npm-publish.sh +9 -0
- package/_devops/typescript/tsc-compile.sh +6 -0
- package/_devops/typescript/tsc-watch.sh +5 -0
- package/package.json +8 -6
- package/_devops/cdk/cdk.sh +0 -17
- package/_devops/git/git.sh +0 -15
- package/_devops/npm/npm.sh +0 -19
- package/_devops/typescript/typescript.sh +0 -13
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/bash
|
2
|
+
set -e
|
3
|
+
|
4
|
+
cdk deploy --require-approval never --output ./temp/cdk.out
|
5
|
+
|
6
|
+
success=$?
|
7
|
+
if [ $success != 0 ]; then
|
8
|
+
exit $success
|
9
|
+
fi
|
10
|
+
if [ -f "./temp/dist/cdk/post-deploy/index.js" ]; then
|
11
|
+
node ./temp/dist/cdk/post-deploy/index.js
|
12
|
+
fi
|
@@ -1,14 +1,20 @@
|
|
1
1
|
import js from '@eslint/js';
|
2
2
|
import ts from 'typescript-eslint';
|
3
|
+
import globals from 'globals';
|
3
4
|
|
4
5
|
export default ts.config(
|
5
6
|
js.configs.recommended,
|
6
7
|
...ts.configs.recommended,
|
7
8
|
{
|
8
|
-
|
9
|
+
ignores: ['temp'],
|
9
10
|
},
|
10
11
|
{
|
11
|
-
|
12
|
+
languageOptions: {
|
13
|
+
globals: {
|
14
|
+
...globals.browser,
|
15
|
+
...globals.node,
|
16
|
+
},
|
17
|
+
},
|
12
18
|
},
|
13
19
|
{
|
14
20
|
rules: {
|
package/package.json
CHANGED
@@ -1,21 +1,23 @@
|
|
1
1
|
{
|
2
2
|
"name": "@candlerip/shared3",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.3",
|
4
4
|
"type": "module",
|
5
5
|
"main": "index.js",
|
6
6
|
"bin": {
|
7
|
-
"crs-cdk": "./_devops/cdk/cdk.sh",
|
7
|
+
"crs-cdk-deploy": "./_devops/cdk/cdk-deploy.sh",
|
8
8
|
"crs-docker": "./_devops/docker/docker.sh",
|
9
9
|
"crs-ec2": "./_devops/ec2/ec2.sh",
|
10
10
|
"crs-eslint": "./_devops/eslint/eslint.sh",
|
11
|
-
"crs-git": "./_devops/git/git.sh",
|
12
|
-
"crs-npm": "./_devops/npm/npm.sh",
|
11
|
+
"crs-git-push": "./_devops/git/git-push.sh",
|
12
|
+
"crs-npm-patch-version": "./_devops/npm/npm-patch-version.sh",
|
13
|
+
"crs-npm-publish": "./_devops/npm/npm-publish.sh",
|
13
14
|
"crs-prettier": "./_devops/prettier/prettier.sh",
|
14
|
-
"crs-
|
15
|
+
"crs-tsc-compile": "./_devops/typescript/tsc-compile.sh",
|
16
|
+
"crs-tsc-watch": "./_devops/typescript/tsc-watch.sh"
|
15
17
|
},
|
16
18
|
"scripts": {
|
17
19
|
"pub": "./devops/publish.sh",
|
18
|
-
"start": "./
|
20
|
+
"start": "sh ./_devops/typescript/typescript.sh watch"
|
19
21
|
},
|
20
22
|
"dependencies": {
|
21
23
|
"depcheck": "^1.4.7",
|
package/_devops/cdk/cdk.sh
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/bash
|
2
|
-
set -e
|
3
|
-
|
4
|
-
if [[ $1 = 'deploy' ]]; then
|
5
|
-
cdk deploy --require-approval never
|
6
|
-
|
7
|
-
success=$?
|
8
|
-
if [ $success != 0 ]; then
|
9
|
-
exit $success
|
10
|
-
fi
|
11
|
-
if [ -f "./dist/post-deploy/index.js" ]; then
|
12
|
-
node ./dist/post-deploy/index.js
|
13
|
-
fi
|
14
|
-
if [ -f "./dist/bin/post-deploy/index.js" ]; then
|
15
|
-
node ./dist/bin/post-deploy/index.js
|
16
|
-
fi
|
17
|
-
fi
|
package/_devops/git/git.sh
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/bash
|
2
|
-
set -e
|
3
|
-
|
4
|
-
CURR_DIR=$(dirname $(realpath "$0"))
|
5
|
-
|
6
|
-
if [[ $1 = 'init' ]]; then
|
7
|
-
cp $CURR_DIR/.gitignore.sample .gitignore
|
8
|
-
git init
|
9
|
-
fi
|
10
|
-
|
11
|
-
if [[ $1 = 'push' ]]; then
|
12
|
-
git add .
|
13
|
-
git commit -m "$(node -p "require('./package.json').version")"
|
14
|
-
git push
|
15
|
-
fi
|
package/_devops/npm/npm.sh
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
#!/usr/bin/bash
|
2
|
-
set -e
|
3
|
-
|
4
|
-
if [[ $1 = 'patch-version' ]]; then
|
5
|
-
npm version patch --no-git-tag-version
|
6
|
-
fi
|
7
|
-
|
8
|
-
if [[ $1 = 'publish' ]]; then
|
9
|
-
cp ./package.json temp/dist
|
10
|
-
if [ -d ./_devops ]; then
|
11
|
-
cp -r ./_devops temp/dist
|
12
|
-
fi
|
13
|
-
|
14
|
-
npm publish ./temp/dist --access=public
|
15
|
-
fi
|
16
|
-
|
17
|
-
if [[ $1 = 'update-shared' ]]; then
|
18
|
-
npm i @candlerip/shared3@latest @candlerip/shared-aws3@latest @candlerip/shared-backend3@latest
|
19
|
-
fi
|