lincd-cli 0.2.71 → 0.2.73
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.
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
"NODE_ENV": "development",
|
|
10
10
|
"SITE_ROOT": "http://localhost:4000"
|
|
11
11
|
},
|
|
12
|
+
"staging": {
|
|
13
|
+
"NODE_ENV": "staging",
|
|
14
|
+
"SITE_ROOT": "https://next.${hyphen_name}.com"
|
|
15
|
+
},
|
|
12
16
|
"production": {
|
|
13
17
|
"NODE_ENV": "production",
|
|
14
18
|
"SITE_ROOT": "https://app.${hyphen_name}.com"
|
|
@@ -18,11 +18,15 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"start": "npm run server:dev",
|
|
20
20
|
"build": "env-cmd -e _main,production node scripts/build.js",
|
|
21
|
+
"build:staging": "env-cmd -e _main,staging node scripts/build.js",
|
|
22
|
+
"deploy": "git stash && git pull && yarn mrgit exec \"git stash\" && env-cmd --use-shell \"yarn checkout && yarn dedupe && semantu build-workspace -ug && yarn build && pm2 restart ${hyphen_name}\"",
|
|
23
|
+
"deploy:staging": "git stash && git pull && yarn mrgit exec \"git stash\" && env-cmd --use-shell \"yarn checkout && yarn dedupe && semantu build-workspace -ug && yarn build-staging && pm2 restart ${hyphen_name}-staging\"",
|
|
21
24
|
"postinstall": "husky install",
|
|
22
25
|
"prepack": "pinst --disable",
|
|
23
26
|
"postpack": "pinst --enable",
|
|
24
27
|
"server:dev": "env-cmd -e _main,development nodemon --quiet --watch ./src/index.tsx ./scripts/start-server.js",
|
|
25
28
|
"server:prod": "env-cmd -e _main,production node ./scripts/start-server.js",
|
|
29
|
+
"server:staging": "env-cmd -e _main,staging node ./scripts/start-server.js",
|
|
26
30
|
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
27
31
|
"lint:fix": "yarn lint --fix",
|
|
28
32
|
"prettier": "prettier \"src/**/*.{js,jsx,ts,tsx,css,scss}\" --check",
|
package/lib/cli-methods.js
CHANGED
|
@@ -401,6 +401,9 @@ function buildAll(options) {
|
|
|
401
401
|
process.stdout.write(packagesLeft + ' packages left\r');
|
|
402
402
|
if (packagesLeft == 0) {
|
|
403
403
|
printBuildResults(failedModules, done);
|
|
404
|
+
if (failedModules.length > 0) {
|
|
405
|
+
process.exit(1);
|
|
406
|
+
}
|
|
404
407
|
}
|
|
405
408
|
return res;
|
|
406
409
|
});
|
|
@@ -1296,17 +1299,19 @@ var buildUpdated = function (back, target, target2, useGitForLastModified = fals
|
|
|
1296
1299
|
return chalk_1.default.green(pkg.packageName + ' built');
|
|
1297
1300
|
})
|
|
1298
1301
|
.catch(({ error, stdout, stderr }) => {
|
|
1299
|
-
warn('Failed to build ' + pkg.packageName);
|
|
1302
|
+
warn(chalk_1.default.red('Failed to build ' + pkg.packageName));
|
|
1300
1303
|
console.log(stdout);
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1304
|
+
process.exit(1);
|
|
1305
|
+
// let dependentModules = getDependentPackages(dependencies, pkg);
|
|
1306
|
+
// if (dependentModules.length > 0) {
|
|
1307
|
+
// // printBuildResults(failedModules, done);
|
|
1308
|
+
// warn(chalk.red(pkg.packageName + ' build failed'));
|
|
1309
|
+
// warn(
|
|
1310
|
+
// 'Stopping build-updated process because ' +
|
|
1311
|
+
// dependentModules.length +
|
|
1312
|
+
// ' other packages depend on this package.\n',
|
|
1313
|
+
// ); //"+dependentModules.map(d => d.packageName).join(", ")));
|
|
1314
|
+
// }
|
|
1310
1315
|
});
|
|
1311
1316
|
}
|
|
1312
1317
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lincd-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.73",
|
|
4
4
|
"description": "Command line tools for the lincd.js library",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -93,7 +93,6 @@
|
|
|
93
93
|
"tailwindcss": "^3.2.7",
|
|
94
94
|
"terser-webpack-plugin": "^5.3.6",
|
|
95
95
|
"ts-loader": "^9.4.1",
|
|
96
|
-
"tsc-hooks": "^1.1.1",
|
|
97
96
|
"tsconfig-paths-webpack-plugin": "^4.0.0",
|
|
98
97
|
"typescript": "4.8.4",
|
|
99
98
|
"webpack": "^5.76.3",
|