auto-deploy-sh 1.0.0 → 1.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.
Files changed (2) hide show
  1. package/README.md +13 -8
  2. package/package.json +5 -3
package/README.md CHANGED
@@ -24,14 +24,15 @@ If the file is absent, the `CLI` will guide the addition process and update the
24
24
  beforLaunch:[ // Preparation operations before project release
25
25
  'npm run build'
26
26
  ],
27
- dockerBuildFiles: [
27
+ dockerBuildFiles: [
28
28
  // The files involved in the construction, relative to the path where the script runs (usually the root directory of the project)
29
29
  'Dockerfile',
30
30
  'dist'
31
31
  ],
32
- imageTag: '镜像标识', // Format: [Warehouse Address/] [Username/Project Name]: [Label]
33
- containerName: '容器名', // Unique identifier of Docker running instance
34
- BindPorts: '端口映射' // Format: `<Host Port>:<Container Port>`
32
+ // Format: [Warehouse Address/] [Username/Project Name]: [Label]
33
+ imageTag: 'Mirror identification',
34
+ containerName: 'Container Name', // Unique identifier of Docker running instance
35
+ BindPorts: 'Port Mapping' // Format: `<Host Port>:<Container Port>`
35
36
  }
36
37
  ```
37
38
 
@@ -42,17 +43,21 @@ If the file is absent, the `CLI` will guide the addition process and update the
42
43
  Download: `npm install auto-deploy-sh -D `
43
44
  Run:
44
45
 
46
+ - package.json configuration
47
+
45
48
  ```json
46
- // package.json configuration
47
49
  "scripts": {
48
50
  "deploy": "auto-deploy-sh"
49
51
  }
50
- // Run
52
+ ```
53
+
54
+ - Console running
55
+
56
+ ```bash
51
57
  npm run deploy
52
58
  ```
53
59
 
54
- ### 全局配置
60
+ ### Global Configuration
55
61
 
56
62
  Download: `npm install auto-deploy-sh -g`
57
63
  Run in the root directory of the project that needs to be deployed: `auto-deploy-sh`
58
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auto-deploy-sh",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Automated Docker deployment tool",
5
5
  "bin": {
6
6
  "auto-deploy-sh": "./dist/bin/index.js"
@@ -16,6 +16,8 @@
16
16
  "build": "npm run clean && tsc -p tsconfig.bulid.json",
17
17
  "clean": "rimraf dist build",
18
18
  "deploy": "node ./ts-node bin/index.ts",
19
+ "lint:doc": "prettier **/*.md --check",
20
+ "lint:doc:fix": "prettier **/*.md --write",
19
21
  "lint:eslint": "eslint --cache --ext .ts,.vue,.js,.jsx,.tsx,.json",
20
22
  "lint:eslint:fix": "eslint --cache --ext .ts,.vue,.js,.jsx,.tsx,.json --fix",
21
23
  "prepare": "husky",
@@ -36,10 +38,10 @@
36
38
  "license": "ISC",
37
39
  "lint-staged": {
38
40
  "*.{js,ts,jsx,tsx,vue,css,json}": [
39
- "eslint"
41
+ "eslint --no-warn-ignored"
40
42
  ],
41
43
  "*.md": [
42
- "prettier --check"
44
+ "prettier --check --no-warn-ignored"
43
45
  ]
44
46
  },
45
47
  "dependencies": {