easy-soft-develop 2.0.191 → 2.0.192
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/package.json
CHANGED
|
@@ -373,6 +373,9 @@ installDevelopDependencePackages({
|
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
+
/**
|
|
377
|
+
* Create initial environment script files
|
|
378
|
+
*/
|
|
376
379
|
function createInitialEnvironmentScriptFiles() {
|
|
377
380
|
const content = `${fileGlobalHeader}
|
|
378
381
|
const { initialEnvironment } = require('easy-soft-develop');
|
|
@@ -83,24 +83,32 @@ function adjustMainPackageJsonScript({ scripts }) {
|
|
|
83
83
|
const ignoreDeleteScript = ['z:build:all', 'z:publish:npm-all'];
|
|
84
84
|
|
|
85
85
|
Object.keys(originalScript).forEach((o) => {
|
|
86
|
-
if (
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
delete originalScript[o];
|
|
93
|
-
}
|
|
86
|
+
if (checkInCollection(ignoreDeleteScript, o)) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (o.startsWith('z:') || o.startsWith('prez:') || o.startsWith('postz:')) {
|
|
91
|
+
delete originalScript[o];
|
|
94
92
|
}
|
|
95
93
|
});
|
|
96
94
|
|
|
97
95
|
const publishPackageNameList = [];
|
|
96
|
+
|
|
97
|
+
const autoAdjustFileScript = {};
|
|
98
|
+
const autoAdjustFileAllProjects = [];
|
|
99
|
+
|
|
98
100
|
const testScript = {};
|
|
99
101
|
const testAllProjects = [];
|
|
100
102
|
|
|
101
103
|
loopPackage(({ name }) => {
|
|
102
104
|
publishPackageNameList.push(name);
|
|
103
105
|
|
|
106
|
+
autoAdjustFileScript[
|
|
107
|
+
`z:adjust:file:${name}`
|
|
108
|
+
] = `cd packages/${name} && npm run z:adjust:file`;
|
|
109
|
+
|
|
110
|
+
autoAdjustFileAllProjects.push(`npm run z:adjust:file:${name}`);
|
|
111
|
+
|
|
104
112
|
testScript[`test:${name}`] = `cd packages/${name} && npm run z:test`;
|
|
105
113
|
|
|
106
114
|
testAllProjects.push(`npm run test:${name}`);
|
|
@@ -117,7 +125,9 @@ function adjustMainPackageJsonScript({ scripts }) {
|
|
|
117
125
|
originalScript || {},
|
|
118
126
|
scripts,
|
|
119
127
|
testScript,
|
|
128
|
+
autoAdjustFileScript,
|
|
120
129
|
{
|
|
130
|
+
'z:adjust:file:all': autoAdjustFileAllProjects.join(' && '),
|
|
121
131
|
'z:test': testAllProjects.join(' && '),
|
|
122
132
|
},
|
|
123
133
|
);
|
|
@@ -138,7 +148,13 @@ function adjustChildrenPackageJsonScript({ scripts }) {
|
|
|
138
148
|
|
|
139
149
|
const originalScript = packageJson.scripts;
|
|
140
150
|
|
|
151
|
+
const ignoreDeleteScript = ['z:adjust:file'];
|
|
152
|
+
|
|
141
153
|
Object.keys(originalScript).forEach((o) => {
|
|
154
|
+
if (checkInCollection(ignoreDeleteScript, o)) {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
|
|
142
158
|
if (
|
|
143
159
|
o.startsWith('z:') ||
|
|
144
160
|
o.startsWith('prez:') ||
|
|
@@ -6,6 +6,9 @@ export function createNpmConfigFile(successMessage?: string): void;
|
|
|
6
6
|
export function createCleanScriptFile(): boolean;
|
|
7
7
|
export function createPackageCheckSpecialVersionScriptFile(): void;
|
|
8
8
|
export function createInstallGlobalDevelopDependenceScriptFile(): void;
|
|
9
|
+
/**
|
|
10
|
+
* Create initial environment script files
|
|
11
|
+
*/
|
|
9
12
|
export function createInitialEnvironmentScriptFiles(): void;
|
|
10
13
|
export function createDevelopFiles(waitMessage?: string, successMessage?: string): void;
|
|
11
14
|
export function createUpdatePackageFromPackageScriptFile(): boolean;
|