underpost 2.7.3 → 2.7.5
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.
|
@@ -21,6 +21,33 @@ jobs:
|
|
|
21
21
|
run: npm install
|
|
22
22
|
|
|
23
23
|
- run: npm ci
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
# Publish to npm
|
|
26
|
+
- uses: actions/setup-node@v4
|
|
27
|
+
with:
|
|
28
|
+
node-version: '21.x'
|
|
29
|
+
registry-url: 'https://registry.npmjs.org'
|
|
30
|
+
# Defaults to the user or organization that owns the workflow file
|
|
31
|
+
# scope: '@underpostnet'
|
|
32
|
+
- env:
|
|
33
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
34
|
+
name: Publish to npm
|
|
35
|
+
run: npm publish --provenance --access public
|
|
36
|
+
|
|
37
|
+
# Publish to GitHub Packages
|
|
38
|
+
- name: Setup node to publish to GitHub Packages
|
|
39
|
+
uses: actions/setup-node@v4
|
|
40
|
+
with:
|
|
41
|
+
node-version: 21.x
|
|
42
|
+
registry-url: 'https://npm.pkg.github.com'
|
|
43
|
+
# Defaults to the user or organization that owns the workflow file
|
|
44
|
+
scope: '@underpostnet'
|
|
45
|
+
|
|
46
|
+
- run: |
|
|
47
|
+
node ./bin/deploy rename-package @underpostnet/underpost
|
|
48
|
+
npm config set //npm.pkg.github.com/:_authToken=${{ secrets.GIT_AUTH_TOKEN }}
|
|
49
|
+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GIT_AUTH_TOKEN }}" > ~/.npmrc
|
|
50
|
+
echo "@underposnet:registry=https://npm.pkg.github.com" >> ~/.npmrc
|
|
51
|
+
npm publish
|
|
25
52
|
env:
|
|
26
53
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/bin/deploy.js
CHANGED
|
@@ -490,6 +490,21 @@ try {
|
|
|
490
490
|
case 'build-macro-replica':
|
|
491
491
|
getDataDeploy({ deployGroupId: process.argv[3], buildSingleReplica: true });
|
|
492
492
|
break;
|
|
493
|
+
|
|
494
|
+
case 'rename-package': {
|
|
495
|
+
const name = process.argv[3];
|
|
496
|
+
const originPackage = JSON.parse(fs.readFileSync(`./package.json`, 'utf8'));
|
|
497
|
+
originPackage.name = name;
|
|
498
|
+
fs.writeFileSync(`./package.json`, JSON.stringify(originPackage, null, 4), 'utf8');
|
|
499
|
+
|
|
500
|
+
const originPackageLockJson = JSON.parse(fs.readFileSync(`./package-lock.json`, 'utf8'));
|
|
501
|
+
originPackageLockJson.name = name;
|
|
502
|
+
originPackageLockJson.packages[''].name = name;
|
|
503
|
+
fs.writeFileSync(`./package-lock.json`, JSON.stringify(originPackageLockJson, null, 4), 'utf8');
|
|
504
|
+
|
|
505
|
+
break;
|
|
506
|
+
}
|
|
507
|
+
|
|
493
508
|
case 'update-version':
|
|
494
509
|
{
|
|
495
510
|
const newVersion = process.argv[3];
|
package/bin/index.js
CHANGED
|
@@ -19,7 +19,7 @@ const globalBinFolder = `${shellExec(`npm root -g`, {
|
|
|
19
19
|
|
|
20
20
|
const program = new Command();
|
|
21
21
|
|
|
22
|
-
const version = '2.7.
|
|
22
|
+
const version = '2.7.5';
|
|
23
23
|
|
|
24
24
|
program.name('underpost').description(`underpost.net ci/cd cli ${version}`).version(version);
|
|
25
25
|
|
|
@@ -62,6 +62,12 @@ program
|
|
|
62
62
|
.command('test')
|
|
63
63
|
.description('Run tests')
|
|
64
64
|
.action(() => {
|
|
65
|
+
console.log(
|
|
66
|
+
underpostASCI() +
|
|
67
|
+
`
|
|
68
|
+
v${version} https://www.nexodev.org/docs
|
|
69
|
+
`,
|
|
70
|
+
);
|
|
65
71
|
shellCd(`${globalBinFolder}`);
|
|
66
72
|
shellExec(`npm run test`);
|
|
67
73
|
});
|
package/docker-compose.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,138 +1,139 @@
|
|
|
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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
2
|
+
"type": "module",
|
|
3
|
+
"main": "src/index.js",
|
|
4
|
+
"name": "underpost",
|
|
5
|
+
"version": "2.7.5",
|
|
6
|
+
"description": "pwa api rest template",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"start": "env-cmd -f .env.production node --max-old-space-size=8192 src/server",
|
|
9
|
+
"pm2": "env-cmd -f .env.production pm2 start src/server.js --node-args=\"--max-old-space-size=8192\" --name engine && pm2 logs",
|
|
10
|
+
"ssl": "env-cmd -f .env.production node bin/ssl",
|
|
11
|
+
"pm2-delete": "pm2 delete engine",
|
|
12
|
+
"build": "node bin/deploy build-full-client --no-warnings",
|
|
13
|
+
"dev": "env-cmd -f .env.development node src/client.dev --no-warnings",
|
|
14
|
+
"dev-api": "env-cmd -f .env.development nodemon --watch src --ignore src/client src/api",
|
|
15
|
+
"docs": "jsdoc -c jsdoc.json",
|
|
16
|
+
"backup": "node bin/db default.net/ export",
|
|
17
|
+
"install-template": "npm install && npm run build",
|
|
18
|
+
"install-global": "npm install -g pm2 && npm install -g jsdoc && npm install -g prettier && npm install -g env-cmd && npm install -g yarn && npm install -g auto-changelog",
|
|
19
|
+
"install-test": "npm install -g mocha && npm install -g c8 && npm install -g nyc && npm install -g coveralls",
|
|
20
|
+
"install-vs-extensions": "node bin/vs import",
|
|
21
|
+
"preinstall": "npm config set audit false && npm config set loglevel error",
|
|
22
|
+
"restore-preinstall": "npm config set audit true && npm config set loglevel notice",
|
|
23
|
+
"install": "npm run install-global && npm run install-test && npm run restore-preinstall --no-audit --no-warnings",
|
|
24
|
+
"docker:start": "docker-compose up",
|
|
25
|
+
"prettier": "prettier --write .",
|
|
26
|
+
"coveralls": "nyc npm run test --reporter=text-lcov | coveralls -v",
|
|
27
|
+
"test": "env-cmd -f .env.test c8 mocha",
|
|
28
|
+
"update": "npm update -g && npm update && npm audit fix --force && npm audit fix --force",
|
|
29
|
+
"underpost-publish": "npm publish --provenance --access public",
|
|
30
|
+
"underpost-unpublish": "npm unpublish underpost@2.5.x",
|
|
31
|
+
"login": "npm adduser",
|
|
32
|
+
"bin": "npm link --force"
|
|
33
|
+
},
|
|
34
|
+
"bin": {
|
|
35
|
+
"underpost": "bin/index.js"
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/underpostnet/pwa-microservices-template.git"
|
|
40
|
+
},
|
|
41
|
+
"keywords": [
|
|
42
|
+
"pwa",
|
|
43
|
+
"template",
|
|
44
|
+
"microservices",
|
|
45
|
+
"api",
|
|
46
|
+
"server",
|
|
47
|
+
"proxy",
|
|
48
|
+
"client"
|
|
49
|
+
],
|
|
50
|
+
"author": "https://github.com/underpostnet",
|
|
51
|
+
"license": "MIT",
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/underpostnet/pwa-microservices-template/issues"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://github.com/underpostnet/pwa-microservices-template#readme",
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@fortawesome/fontawesome-free": "^6.4.2",
|
|
58
|
+
"@loadingio/css-spinner": "^2.0.2",
|
|
59
|
+
"@neodrag/vanilla": "^2.0.3",
|
|
60
|
+
"@pinata/sdk": "^2.1.0",
|
|
61
|
+
"@xenova/transformers": "^2.17.2",
|
|
62
|
+
"adm-zip": "^0.5.10",
|
|
63
|
+
"ag-grid-community": "31.0.0",
|
|
64
|
+
"axios": "^1.5.1",
|
|
65
|
+
"chai": "^5.1.0",
|
|
66
|
+
"cli-progress": "^3.12.0",
|
|
67
|
+
"cli-spinners": "^3.0.0",
|
|
68
|
+
"color": "^4.2.3",
|
|
69
|
+
"colors": "^1.4.0",
|
|
70
|
+
"commander": "^12.1.0",
|
|
71
|
+
"compression": "^1.7.4",
|
|
72
|
+
"copy-paste": "^1.5.3",
|
|
73
|
+
"cors": "^2.8.5",
|
|
74
|
+
"d3": "^7.9.0",
|
|
75
|
+
"deepmerge": "^4.3.1",
|
|
76
|
+
"detect-port": "^1.5.1",
|
|
77
|
+
"dotenv": "^16.3.1",
|
|
78
|
+
"easymde": "^2.18.0",
|
|
79
|
+
"env-cmd": "^10.1.0",
|
|
80
|
+
"eventemitter3": "^5.0.1",
|
|
81
|
+
"express": "^4.18.2",
|
|
82
|
+
"express-fileupload": "^1.4.3",
|
|
83
|
+
"favicons": "^7.2.0",
|
|
84
|
+
"font-awesome-assets": "^0.0.9",
|
|
85
|
+
"fs-extra": "^11.1.1",
|
|
86
|
+
"fullcalendar": "^6.1.15",
|
|
87
|
+
"html-minifier-terser": "^7.2.0",
|
|
88
|
+
"http-proxy-middleware": "^2.0.6",
|
|
89
|
+
"ignore-walk": "^6.0.4",
|
|
90
|
+
"is-admin": "^4.0.0",
|
|
91
|
+
"is-ip": "^5.0.1",
|
|
92
|
+
"jimp": "^0.22.12",
|
|
93
|
+
"joystick-controller": "^1.0.15",
|
|
94
|
+
"json-colorizer": "^2.2.2",
|
|
95
|
+
"jsonwebtoken": "^9.0.2",
|
|
96
|
+
"kill-port-process": "^3.2.0",
|
|
97
|
+
"log-update": "^6.0.0",
|
|
98
|
+
"mariadb": "^3.2.2",
|
|
99
|
+
"marked": "^12.0.2",
|
|
100
|
+
"mongoose": "^8.0.1",
|
|
101
|
+
"morgan": "^1.10.0",
|
|
102
|
+
"node-cron": "^3.0.3",
|
|
103
|
+
"nodemailer": "^6.9.9",
|
|
104
|
+
"nodemon": "^3.0.1",
|
|
105
|
+
"pathfinding": "^0.4.18",
|
|
106
|
+
"peer": "^1.0.2",
|
|
107
|
+
"peerjs": "^1.5.2",
|
|
108
|
+
"pixi.js": "7.4.0",
|
|
109
|
+
"prom-client": "^15.1.2",
|
|
110
|
+
"public-ip": "^6.0.1",
|
|
111
|
+
"read": "^2.1.0",
|
|
112
|
+
"sharp": "^0.32.5",
|
|
113
|
+
"shelljs": "^0.8.5",
|
|
114
|
+
"simple-git": "^3.26.0",
|
|
115
|
+
"simple-icons": "^13.9.0",
|
|
116
|
+
"sitemap": "^7.1.1",
|
|
117
|
+
"socket.io": "^4.7.2",
|
|
118
|
+
"sortablejs": "^1.15.0",
|
|
119
|
+
"split-file": "^2.3.0",
|
|
120
|
+
"swagger-ui-express": "^5.0.0",
|
|
121
|
+
"systeminformation": "^5.21.17",
|
|
122
|
+
"text-to-image": "^5.2.0",
|
|
123
|
+
"uglify-js": "^3.17.4",
|
|
124
|
+
"validator": "^13.11.0",
|
|
125
|
+
"winston": "^3.11.0"
|
|
126
|
+
},
|
|
127
|
+
"devDependencies": {
|
|
128
|
+
"clean-jsdoc-theme": "^4.3.0",
|
|
129
|
+
"mocha": "^10.4.0",
|
|
130
|
+
"plantuml": "^0.0.2",
|
|
131
|
+
"swagger-autogen": "^2.23.7",
|
|
132
|
+
"to-json-schema": "^0.2.5"
|
|
133
|
+
},
|
|
134
|
+
"publishConfig": {
|
|
135
|
+
"provenance": true,
|
|
136
|
+
"access": "public",
|
|
137
|
+
"registry": "https://registry.npmjs.org/"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -109,6 +109,6 @@ SrrComponent = ({ ttiLoadTimeLimit }) => {
|
|
|
109
109
|
const CacheControl = ${CacheControl};
|
|
110
110
|
CacheControl({ ttiLoadTimeLimit: ${ttiLoadTimeLimit ? ttiLoadTimeLimit : 1000 * 70 * 1} });
|
|
111
111
|
</script>
|
|
112
|
-
<div class="clean-cache-container">v2.7.
|
|
112
|
+
<div class="clean-cache-container">v2.7.5</div>
|
|
113
113
|
`;
|
|
114
114
|
};
|