@mschauer5/spfx-toolkit 1.0.9 → 1.0.11
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/README.md +13 -1
- package/lib/commands/build.command.js +41 -60
- package/lib/commands/build.command.js.map +1 -1
- package/lib/commands/bundle.command.js +50 -69
- package/lib/commands/bundle.command.js.map +1 -1
- package/lib/commands/index.js +5 -7
- package/lib/commands/index.js.map +1 -1
- package/lib/commands/open-solution.command.js +30 -0
- package/lib/commands/open-solution.command.js.map +1 -0
- package/lib/commands/scripts.command.js +153 -0
- package/lib/commands/scripts.command.js.map +1 -0
- package/lib/commands/settings.js +68 -0
- package/lib/commands/settings.js.map +1 -0
- package/lib/common/index.js.map +1 -1
- package/lib/common/util.js +84 -32
- package/lib/common/util.js.map +1 -1
- package/lib/index.js +55 -25
- package/lib/index.js.map +1 -1
- package/mschauer5-spfx-toolkit-1.0.10.tgz +0 -0
- package/package.json +4 -6
- package/src/commands/build.command.ts +41 -41
- package/src/commands/bundle.command.ts +60 -60
- package/src/commands/index.ts +3 -4
- package/src/commands/open-solution.command.ts +25 -0
- package/src/commands/scripts.command.ts +143 -0
- package/src/common/index.ts +1 -0
- package/src/common/util.ts +83 -27
- package/src/index.ts +61 -27
- package/src/commands/serve.command.ts +0 -13
package/README.md
CHANGED
|
@@ -27,10 +27,16 @@ spfx-toolkit --help
|
|
|
27
27
|
### Common Commands
|
|
28
28
|
|
|
29
29
|
- `spfx-toolkit build` — Build the project (auto-detects Gulp or Heft)
|
|
30
|
-
- `spfx-toolkit bundle` — Bundle the project (auto-detects Gulp or Heft)
|
|
30
|
+
- `spfx-toolkit bundle [--increment <part>]` — Bundle the project (auto-detects Gulp or Heft, optionally increment version)
|
|
31
31
|
- `spfx-toolkit serve` — Start the SPFx dev server
|
|
32
32
|
- `spfx-toolkit add-alias <name>` — Add a shell alias for the toolkit
|
|
33
33
|
- `spfx-toolkit clear-alias` — Remove the shell alias for the toolkit
|
|
34
|
+
- `spfx-toolkit run <name>` — Run a script from package.json by name
|
|
35
|
+
- `spfx-toolkit open-global-config` — Open the global package.json for toolkit scripts in VS Code
|
|
36
|
+
- `spfx-toolkit global-config-init [--force]` — Initialize global package.json with default scripts (use --force to overwrite)
|
|
37
|
+
- `spfx-toolkit sync-script <name> <global|local>` — Sync a script name between global and local package.json
|
|
38
|
+
- `spfx-toolkit open-solution` — Open the solution folder in VS Code
|
|
39
|
+
- `spfx-toolkit set-heft-dotenv-plugin` — Installs and configures dotenv plugin for Heft
|
|
34
40
|
- `spfx-toolkit eslint --backup|--restore` — Backup or restore ESLint config
|
|
35
41
|
- `spfx-toolkit version --list|--sync|--increment <part>` — Version management
|
|
36
42
|
|
|
@@ -56,4 +62,10 @@ MIT
|
|
|
56
62
|
|
|
57
63
|
---
|
|
58
64
|
|
|
65
|
+
**Disclaimer:**
|
|
66
|
+
|
|
67
|
+
This software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
59
71
|
Developed by Matt Schauer
|
|
@@ -1,61 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
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
|
-
yield common_1.util.addScriptNameRunType('build', buildLocation);
|
|
43
|
-
}
|
|
44
|
-
if (buildLocation === 'package') {
|
|
45
|
-
yield packageRun();
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
const isGulp = yield common_1.util.isUsingGulp();
|
|
49
|
-
let args = ['heft', 'build'];
|
|
50
|
-
if (isGulp) {
|
|
51
|
-
args = ['gulp', 'build'];
|
|
52
|
-
}
|
|
53
|
-
cross_spawn_1.default.sync('npx', args, { stdio: 'inherit' });
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
catch (error) {
|
|
57
|
-
common_1.logger.error(error);
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
exports.run = run;
|
|
1
|
+
// import spawn from 'cross-spawn';
|
|
2
|
+
// import { logger, util } from '../common';
|
|
3
|
+
// import { detect } from 'detect-package-manager';
|
|
4
|
+
// const packageRun = async (): Promise<void> => {
|
|
5
|
+
// try {
|
|
6
|
+
// const usercommand = await detect();
|
|
7
|
+
// try {
|
|
8
|
+
// const args = ['run', 'build'];
|
|
9
|
+
// spawn.sync(usercommand, args, { stdio: 'inherit' });
|
|
10
|
+
// } catch (error) {
|
|
11
|
+
// logger.log(error);
|
|
12
|
+
// }
|
|
13
|
+
// } catch (error) {
|
|
14
|
+
// logger.error(error);
|
|
15
|
+
// }
|
|
16
|
+
// };
|
|
17
|
+
// export const run = async (usePackage: boolean, useDefault: boolean) => {
|
|
18
|
+
// try {
|
|
19
|
+
// let buildLocation = usePackage ? 'package' : await util.getScriptNameRunType('build');
|
|
20
|
+
// if (buildLocation === undefined) {
|
|
21
|
+
// buildLocation = 'default';
|
|
22
|
+
// }
|
|
23
|
+
// if (useDefault) {
|
|
24
|
+
// buildLocation = usePackage ? 'package' : 'default';
|
|
25
|
+
// await util.addScriptNameRunType('build', buildLocation);
|
|
26
|
+
// }
|
|
27
|
+
// if (buildLocation === 'package') {
|
|
28
|
+
// await packageRun();
|
|
29
|
+
// return;
|
|
30
|
+
// }
|
|
31
|
+
// const isGulp = await util.isUsingGulp();
|
|
32
|
+
// let args = ['heft', 'build'];
|
|
33
|
+
// if (isGulp) {
|
|
34
|
+
// args = ['gulp', 'build'];
|
|
35
|
+
// }
|
|
36
|
+
// spawn.sync('npx', args, { stdio: 'inherit' });
|
|
37
|
+
// return;
|
|
38
|
+
// } catch (error) {
|
|
39
|
+
// logger.error(error);
|
|
40
|
+
// }
|
|
41
|
+
// };
|
|
61
42
|
//# sourceMappingURL=build.command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.command.js","sourceRoot":"","sources":["../../src/commands/build.command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build.command.js","sourceRoot":"","sources":["../../src/commands/build.command.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,4CAA4C;AAC5C,mDAAmD;AAEnD,kDAAkD;AAClD,UAAU;AACV,0CAA0C;AAE1C,YAAY;AACZ,uCAAuC;AACvC,6DAA6D;AAC7D,wBAAwB;AACxB,2BAA2B;AAC3B,QAAQ;AACR,sBAAsB;AACtB,2BAA2B;AAC3B,MAAM;AACN,KAAK;AAEL,2EAA2E;AAC3E,UAAU;AACV,6FAA6F;AAC7F,yCAAyC;AACzC,mCAAmC;AACnC,QAAQ;AAER,wBAAwB;AACxB,4DAA4D;AAC5D,iEAAiE;AACjE,QAAQ;AAER,yCAAyC;AACzC,4BAA4B;AAC5B,gBAAgB;AAChB,QAAQ;AAER,+CAA+C;AAC/C,oCAAoC;AACpC,oBAAoB;AACpB,kCAAkC;AAClC,QAAQ;AAER,qDAAqD;AACrD,cAAc;AACd,sBAAsB;AACtB,2BAA2B;AAC3B,MAAM;AACN,KAAK"}
|
|
@@ -1,70 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
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
|
-
cross_spawn_1.default.sync('gulp', args, { stdio: 'inherit' });
|
|
52
|
-
args = ['bundle', '--ship'];
|
|
53
|
-
cross_spawn_1.default.sync('gulp', args, { stdio: 'inherit' });
|
|
54
|
-
args = ['package-solution', '--ship'];
|
|
55
|
-
cross_spawn_1.default.sync('gulp', args, { stdio: 'inherit' });
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
// SPFx 1.22+ (Heft): build and package using Heft
|
|
59
|
-
let args = ['heft', 'build', '--clean'];
|
|
60
|
-
cross_spawn_1.default.sync('npx', args, { stdio: 'inherit' });
|
|
61
|
-
args = ['heft', 'package'];
|
|
62
|
-
cross_spawn_1.default.sync('npx', args, { stdio: 'inherit' });
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
catch (error) {
|
|
66
|
-
common_1.logger.error(error);
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
exports.run = run;
|
|
1
|
+
// import spawn from 'cross-spawn';
|
|
2
|
+
// import { logger, settings, util } from '../common';
|
|
3
|
+
// import { detect } from 'detect-package-manager';
|
|
4
|
+
// const packageRun = async (): Promise<void> => {
|
|
5
|
+
// try {
|
|
6
|
+
// const usercommand = await detect();
|
|
7
|
+
// try {
|
|
8
|
+
// const args = ['run', 'bundle'];
|
|
9
|
+
// spawn.sync(usercommand, args, { stdio: 'inherit' });
|
|
10
|
+
// } catch (error) {
|
|
11
|
+
// logger.log(error);
|
|
12
|
+
// }
|
|
13
|
+
// } catch (error) {
|
|
14
|
+
// logger.error(error);
|
|
15
|
+
// }
|
|
16
|
+
// };
|
|
17
|
+
// export const run = async (usePackage: boolean, useDefault: boolean, global?:boolean) => {
|
|
18
|
+
// try {
|
|
19
|
+
// let bundleLocation = usePackage ? 'package' : await settings.getScriptNameRunType('bundle', global );
|
|
20
|
+
// if (bundleLocation === undefined) {
|
|
21
|
+
// bundleLocation = 'default';
|
|
22
|
+
// }
|
|
23
|
+
// if (useDefault) {
|
|
24
|
+
// bundleLocation = usePackage ? 'package' : 'default';
|
|
25
|
+
// await util.addScriptNameRunType('bundle', bundleLocation);
|
|
26
|
+
// }
|
|
27
|
+
// if (bundleLocation === 'package') {
|
|
28
|
+
// await packageRun();
|
|
29
|
+
// return;
|
|
30
|
+
// }
|
|
31
|
+
// const isGulp = await util.isUsingGulp();
|
|
32
|
+
// if (isGulp) {
|
|
33
|
+
// let args = ['clean'];
|
|
34
|
+
// spawn.sync('gulp', args, { stdio: 'inherit' });
|
|
35
|
+
// args = ['bundle', '--ship'];
|
|
36
|
+
// spawn.sync('gulp', args, { stdio: 'inherit' });
|
|
37
|
+
// args = ['package-solution', '--ship'];
|
|
38
|
+
// spawn.sync('gulp', args, { stdio: 'inherit' });
|
|
39
|
+
// return;
|
|
40
|
+
// }
|
|
41
|
+
// // SPFx 1.22+ (Heft): build and package using Heft
|
|
42
|
+
// let args = ['heft', 'build', '--clean'];
|
|
43
|
+
// spawn.sync('npx', args, { stdio: 'inherit' });
|
|
44
|
+
// args = ['heft', 'package'];
|
|
45
|
+
// spawn.sync('npx', args, { stdio: 'inherit' });
|
|
46
|
+
// return;
|
|
47
|
+
// } catch (error) {
|
|
48
|
+
// logger.error(error);
|
|
49
|
+
// }
|
|
50
|
+
// };
|
|
70
51
|
//# sourceMappingURL=bundle.command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.command.js","sourceRoot":"","sources":["../../src/commands/bundle.command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bundle.command.js","sourceRoot":"","sources":["../../src/commands/bundle.command.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,sDAAsD;AACtD,mDAAmD;AAEnD,kDAAkD;AAClD,UAAU;AACV,0CAA0C;AAE1C,YAAY;AACZ,wCAAwC;AACxC,6DAA6D;AAC7D,wBAAwB;AACxB,2BAA2B;AAC3B,QAAQ;AACR,sBAAsB;AACtB,2BAA2B;AAC3B,MAAM;AACN,KAAK;AAEL,4FAA4F;AAC5F,UAAU;AACV,4GAA4G;AAC5G,0CAA0C;AAC1C,oCAAoC;AACpC,QAAQ;AAER,wBAAwB;AACxB,6DAA6D;AAC7D,mEAAmE;AACnE,QAAQ;AAER,0CAA0C;AAC1C,4BAA4B;AAC5B,gBAAgB;AAChB,QAAQ;AAER,+CAA+C;AAC/C,oBAAoB;AACpB,8BAA8B;AAC9B,wDAAwD;AAExD,qCAAqC;AACrC,wDAAwD;AAExD,+CAA+C;AAC/C,wDAAwD;AACxD,gBAAgB;AAChB,QAAQ;AAER,yDAAyD;AACzD,+CAA+C;AAC/C,qDAAqD;AAErD,kCAAkC;AAClC,qDAAqD;AACrD,cAAc;AACd,sBAAsB;AACtB,2BAA2B;AAC3B,MAAM;AACN,KAAK"}
|
package/lib/commands/index.js
CHANGED
|
@@ -33,17 +33,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
36
|
+
exports.openSolution = exports.scripts = exports.version = exports.eslint = exports.alias = void 0;
|
|
37
37
|
const alias = __importStar(require("./alias.command"));
|
|
38
38
|
exports.alias = alias;
|
|
39
39
|
const eslint = __importStar(require("./eslint.command"));
|
|
40
40
|
exports.eslint = eslint;
|
|
41
41
|
const version = __importStar(require("./version.command"));
|
|
42
42
|
exports.version = version;
|
|
43
|
-
const
|
|
44
|
-
exports.
|
|
45
|
-
const
|
|
46
|
-
exports.
|
|
47
|
-
const bundle = __importStar(require("./bundle.command"));
|
|
48
|
-
exports.bundle = bundle;
|
|
43
|
+
const scripts = __importStar(require("./scripts.command"));
|
|
44
|
+
exports.scripts = scripts;
|
|
45
|
+
const open_solution_command_1 = require("./open-solution.command");
|
|
46
|
+
Object.defineProperty(exports, "openSolution", { enumerable: true, get: function () { return open_solution_command_1.openSolution; } });
|
|
49
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAyC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAyC;AAKhC,sBAAK;AAJd,yDAA2C;AAI3B,wBAAM;AAHtB,2DAA6C;AAGrB,0BAAO;AAF/B,2DAA6C;AAEZ,0BAAO;AADxC,mEAAuD;AACb,6FADjC,oCAAY,OACiC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.openSolution = void 0;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const child_process_1 = __importDefault(require("child_process"));
|
|
9
|
+
const common_1 = require("../common");
|
|
10
|
+
const openSolution = () => {
|
|
11
|
+
let solutionPath = path_1.default.resolve(common_1.constants.WORKING_DIRECTORY, 'sharepoint', 'solution');
|
|
12
|
+
var cmd = ``;
|
|
13
|
+
switch (require(`os`).platform().toLowerCase().replace(/[0-9]/g, ``).replace(`darwin`, `macos`)) {
|
|
14
|
+
case `win`:
|
|
15
|
+
solutionPath = solutionPath || '=';
|
|
16
|
+
cmd = `explorer`;
|
|
17
|
+
break;
|
|
18
|
+
case `linux`:
|
|
19
|
+
solutionPath = solutionPath || '/';
|
|
20
|
+
cmd = `xdg-open`;
|
|
21
|
+
break;
|
|
22
|
+
case `macos`:
|
|
23
|
+
solutionPath = solutionPath || '/';
|
|
24
|
+
cmd = `open`;
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
child_process_1.default.spawn(cmd, [solutionPath]);
|
|
28
|
+
};
|
|
29
|
+
exports.openSolution = openSolution;
|
|
30
|
+
//# sourceMappingURL=open-solution.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-solution.command.js","sourceRoot":"","sources":["../../src/commands/open-solution.command.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,kEAAuC;AACvC,sCAAsC;AAE/B,MAAM,YAAY,GAAG,GAAG,EAAE;IAC/B,IAAI,YAAY,GAAG,cAAI,CAAC,OAAO,CAAC,kBAAS,CAAC,iBAAiB,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;IAEvF,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,QAAQ,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC;QAChG,KAAK,KAAK;YACR,YAAY,GAAG,YAAY,IAAI,GAAG,CAAC;YACnC,GAAG,GAAG,UAAU,CAAC;YACjB,MAAM;QACR,KAAK,OAAO;YACV,YAAY,GAAG,YAAY,IAAI,GAAG,CAAC;YACnC,GAAG,GAAG,UAAU,CAAC;YACjB,MAAM;QACR,KAAK,OAAO;YACV,YAAY,GAAG,YAAY,IAAI,GAAG,CAAC;YACnC,GAAG,GAAG,MAAM,CAAC;YACb,MAAM;IACV,CAAC;IAED,uBAAU,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;AACxC,CAAC,CAAC;AApBW,QAAA,YAAY,gBAoBvB"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.sync = exports.run = void 0;
|
|
16
|
+
const common_1 = require("../common");
|
|
17
|
+
const cross_spawn_1 = __importDefault(require("cross-spawn"));
|
|
18
|
+
const fs_1 = require("fs");
|
|
19
|
+
const path_1 = __importDefault(require("path"));
|
|
20
|
+
const version_command_1 = require("./version.command");
|
|
21
|
+
function getProjectConfigPaths() {
|
|
22
|
+
const configDir = path_1.default.join(process.cwd());
|
|
23
|
+
const configPath = path_1.default.join(configDir, 'package.json');
|
|
24
|
+
return { configDir, configPath };
|
|
25
|
+
}
|
|
26
|
+
function getScriptValue(scriptName, configPath) {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
try {
|
|
29
|
+
const fileExists = yield common_1.util.checkIfFileExistsAsync(configPath, false);
|
|
30
|
+
if (!fileExists) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
const isGulp = yield common_1.util.isUsingGulp();
|
|
34
|
+
let suffix = ':heft';
|
|
35
|
+
if (isGulp) {
|
|
36
|
+
suffix = ':gulp';
|
|
37
|
+
}
|
|
38
|
+
const data = yield fs_1.promises.readFile(configPath, 'utf-8');
|
|
39
|
+
const config = JSON.parse(data);
|
|
40
|
+
if (config && typeof config === 'object' && config.scripts) {
|
|
41
|
+
const scriptWithSuffix = scriptName + suffix;
|
|
42
|
+
const hasBase = scriptName in config.scripts;
|
|
43
|
+
const hasSuffix = scriptWithSuffix in config.scripts;
|
|
44
|
+
if (hasBase && hasSuffix) {
|
|
45
|
+
return config.scripts[scriptWithSuffix];
|
|
46
|
+
}
|
|
47
|
+
else if (hasSuffix) {
|
|
48
|
+
return config.scripts[scriptWithSuffix];
|
|
49
|
+
}
|
|
50
|
+
else if (hasBase) {
|
|
51
|
+
return config.scripts[scriptName];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
catch (err) {
|
|
57
|
+
// File does not exist or cannot be read
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function getScriptByName(scriptName) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const globalPath = common_1.util.getGlobalConfigPaths();
|
|
65
|
+
const localPath = getProjectConfigPaths();
|
|
66
|
+
let value = undefined;
|
|
67
|
+
value = yield getScriptValue(scriptName, globalPath.configPath);
|
|
68
|
+
const localValue = yield getScriptValue(scriptName, localPath.configPath);
|
|
69
|
+
if (localValue !== undefined) {
|
|
70
|
+
value = localValue;
|
|
71
|
+
}
|
|
72
|
+
return value;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
const run = (scriptName, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
76
|
+
if (scriptName === 'bundle' && options && typeof options === 'string') {
|
|
77
|
+
if (options) {
|
|
78
|
+
(0, version_command_1.incrementVersion)(options);
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
(0, version_command_1.syncVersion)();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if (scriptName === 'serve') {
|
|
85
|
+
const isGulp = yield common_1.util.isUsingGulp();
|
|
86
|
+
if (isGulp) {
|
|
87
|
+
const envFilePath = path_1.default.join(process.cwd(), '.env');
|
|
88
|
+
const envFileExists = yield common_1.util.checkIfFileExistsAsync(envFilePath, false);
|
|
89
|
+
if (envFileExists) {
|
|
90
|
+
const envContent = yield fs_1.promises.readFile(envFilePath, 'utf-8');
|
|
91
|
+
const lines = envContent.split(/\r?\n/);
|
|
92
|
+
const envVars = {};
|
|
93
|
+
for (const line of lines) {
|
|
94
|
+
const [key, value] = line.split('=');
|
|
95
|
+
if (key && value) {
|
|
96
|
+
envVars[key.trim()] = value.trim();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (envVars['tenantDomain']) {
|
|
100
|
+
process.env['SPFX_SERVE_TENANT_DOMAIN'] = envVars['tenantDomain'];
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
const value = yield getScriptByName(scriptName);
|
|
106
|
+
if (!value) {
|
|
107
|
+
common_1.logger.error(`Script name '${scriptName}' not found in either local or global package.json!`);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
try {
|
|
111
|
+
cross_spawn_1.default.sync(value, { stdio: 'inherit', shell: true, cwd: process.cwd() });
|
|
112
|
+
}
|
|
113
|
+
catch (error) {
|
|
114
|
+
common_1.logger.error(error);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
exports.run = run;
|
|
119
|
+
const sync = (scriptName, to) => __awaiter(void 0, void 0, void 0, function* () {
|
|
120
|
+
const { configPath: globalConfigPath } = common_1.util.getGlobalConfigPaths();
|
|
121
|
+
const { configPath: localConfigPath } = getProjectConfigPaths();
|
|
122
|
+
let sourcePath = to === 'local' ? globalConfigPath : localConfigPath;
|
|
123
|
+
const scriptValue = yield getScriptValue(scriptName, sourcePath);
|
|
124
|
+
if (!scriptValue) {
|
|
125
|
+
common_1.logger.error(`Source script name '${scriptName}' not found in the ${sourcePath}!`);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const targetPath = to === 'local' ? localConfigPath : globalConfigPath;
|
|
129
|
+
const targetExists = yield common_1.util.checkIfFileExistsAsync(targetPath, false);
|
|
130
|
+
if (!targetExists) {
|
|
131
|
+
common_1.logger.error(`Target package.json does not exist at path: ${targetPath}`);
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const data = yield fs_1.promises.readFile(targetPath, 'utf-8');
|
|
135
|
+
const targetConfig = JSON.parse(data);
|
|
136
|
+
if (!targetConfig.scripts) {
|
|
137
|
+
targetConfig.scripts = {};
|
|
138
|
+
}
|
|
139
|
+
const isGulp = yield common_1.util.isUsingGulp();
|
|
140
|
+
let suffix = ':heft';
|
|
141
|
+
const orgScriptName = scriptName;
|
|
142
|
+
if (isGulp) {
|
|
143
|
+
suffix = ':gulp';
|
|
144
|
+
}
|
|
145
|
+
if (to === 'global') {
|
|
146
|
+
scriptName = scriptName + suffix;
|
|
147
|
+
}
|
|
148
|
+
targetConfig.scripts[scriptName] = scriptValue;
|
|
149
|
+
yield fs_1.promises.writeFile(targetPath, JSON.stringify(targetConfig, null, 2), 'utf-8');
|
|
150
|
+
common_1.logger.log(`Synchronized script '${orgScriptName}' to ${targetPath}`);
|
|
151
|
+
});
|
|
152
|
+
exports.sync = sync;
|
|
153
|
+
//# sourceMappingURL=scripts.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scripts.command.js","sourceRoot":"","sources":["../../src/commands/scripts.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAAyC;AACzC,8DAAgC;AAChC,2BAA4C;AAE5C,gDAAwB;AACxB,uDAAkE;AAElE,SAAS,qBAAqB;IAC5B,MAAM,SAAS,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3C,MAAM,UAAU,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;IACxD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;AACnC,CAAC;AAED,SAAe,cAAc,CAAC,UAAkB,EAAE,UAAkB;;QAClE,IAAI,CAAC;YACH,MAAM,UAAU,GAAG,MAAM,aAAI,CAAC,sBAAsB,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;YACxE,IAAI,CAAC,UAAU,EAAE,CAAC;gBAChB,OAAO,SAAS,CAAC;YACnB,CAAC;YAED,MAAM,MAAM,GAAG,MAAM,aAAI,CAAC,WAAW,EAAE,CAAC;YACxC,IAAI,MAAM,GAAG,OAAO,CAAC;YACrB,IAAI,MAAM,EAAE,CAAC;gBACX,MAAM,GAAG,OAAO,CAAC;YACnB,CAAC;YAED,MAAM,IAAI,GAAG,MAAM,aAAU,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;YAC5D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAChC,IAAI,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;gBAC3D,MAAM,gBAAgB,GAAG,UAAU,GAAG,MAAM,CAAC;gBAC7C,MAAM,OAAO,GAAG,UAAU,IAAI,MAAM,CAAC,OAAO,CAAC;gBAC7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,EAAE,OAAO,CAAC,CAAC;IAC5D,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;QAC1B,YAAY,CAAC,OAAO,GAAG,EAAE,CAAC;IAC5B,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,aAAI,CAAC,WAAW,EAAE,CAAC;IACxC,IAAI,MAAM,GAAG,OAAO,CAAC;IACrB,MAAM,aAAa,GAAG,UAAU,CAAC;IACjC,IAAI,MAAM,EAAE,CAAC;QACX,MAAM,GAAG,OAAO,CAAC;IACnB,CAAC;IACD,IAAI,EAAE,KAAK,QAAQ,EAAE,CAAC;QACpB,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;IACnC,CAAC;IAED,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,WAAW,CAAC;IAE/C,MAAM,aAAU,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IAEvF,eAAM,CAAC,GAAG,CAAC,wBAAwB,aAAa,QAAQ,UAAU,EAAE,CAAC,CAAC;AACxE,CAAC,CAAA,CAAC;AAtCW,QAAA,IAAI,QAsCf"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// import { promises as fsPromises } from 'fs';
|
|
2
|
+
// import os from 'os';
|
|
3
|
+
// import path from 'path';
|
|
4
|
+
// import * as util from '../common/util';
|
|
5
|
+
// function getGlobalConfigPaths() {
|
|
6
|
+
// const configDir = path.join(os.homedir(), '.spfx-toolkit');
|
|
7
|
+
// const configPath = path.join(configDir, 'config.json');
|
|
8
|
+
// return { configDir, configPath };
|
|
9
|
+
// }
|
|
10
|
+
// function getProjectConfigPaths() {
|
|
11
|
+
// const configDir = path.join(process.cwd());
|
|
12
|
+
// const configPath = path.join(configDir, 'package.json');
|
|
13
|
+
// return { configDir, configPath };
|
|
14
|
+
// }
|
|
15
|
+
// async function getScriptNameRunType(scriptName: string, configPath: string): Promise<any> {
|
|
16
|
+
// try {
|
|
17
|
+
// const data = await fsPromises.readFile(configPath, 'utf-8');
|
|
18
|
+
// const config = JSON.parse(data);
|
|
19
|
+
// if (config && typeof config === 'object' && scriptName in config) {
|
|
20
|
+
// return config[scriptName];
|
|
21
|
+
// }
|
|
22
|
+
// return undefined;
|
|
23
|
+
// } catch (err) {
|
|
24
|
+
// // File does not exist or cannot be read
|
|
25
|
+
// return undefined;
|
|
26
|
+
// }
|
|
27
|
+
// }
|
|
28
|
+
// export async function getConfig(scriptName: string): Promise<any> {
|
|
29
|
+
// const globalPath = getGlobalConfigPaths();
|
|
30
|
+
// const localPath = getProjectConfigPaths();
|
|
31
|
+
// const localExists = await util.checkIfFileExistsAsync(localPath.configPath, false);
|
|
32
|
+
// const globalExists = await util.checkIfFileExistsAsync(globalPath.configPath, false);
|
|
33
|
+
// let value = undefined;
|
|
34
|
+
// if (localExists) {
|
|
35
|
+
// value = await getScriptNameRunType(scriptName, localPath.configPath);
|
|
36
|
+
// }
|
|
37
|
+
// if (value === undefined && globalExists) {
|
|
38
|
+
// value = await getScriptNameRunType(scriptName, globalPath.configPath);
|
|
39
|
+
// }
|
|
40
|
+
// return value;
|
|
41
|
+
// }
|
|
42
|
+
// export async function addScriptNameRunType(scriptName: string, value: any, global?: boolean): Promise<void> {
|
|
43
|
+
// const { configDir, configPath } = global ? getGlobalConfigPaths() : getProjectConfigPaths();
|
|
44
|
+
// let config = {};
|
|
45
|
+
// try {
|
|
46
|
+
// const data = await fsPromises.readFile(configPath, 'utf-8');
|
|
47
|
+
// config = JSON.parse(data);
|
|
48
|
+
// } catch (err) {
|
|
49
|
+
// // File does not exist or is invalid, start with empty config
|
|
50
|
+
// }
|
|
51
|
+
// config[scriptName] = value;
|
|
52
|
+
// await fsPromises.mkdir(configDir, { recursive: true });
|
|
53
|
+
// await fsPromises.writeFile(configPath, JSON.stringify(config, null, 2), 'utf-8');
|
|
54
|
+
// }
|
|
55
|
+
// export async function clearScriptNameRunType(scriptName: string, global?: boolean): Promise<void> {
|
|
56
|
+
// const { configPath } = global ? getGlobalConfigPaths() : getProjectConfigPaths();
|
|
57
|
+
// try {
|
|
58
|
+
// const data = await fsPromises.readFile(configPath, 'utf-8');
|
|
59
|
+
// const config = JSON.parse(data);
|
|
60
|
+
// if (config && typeof config === 'object' && scriptName in config) {
|
|
61
|
+
// delete config[scriptName];
|
|
62
|
+
// await fsPromises.writeFile(configPath, JSON.stringify(config, null, 2), 'utf-8');
|
|
63
|
+
// }
|
|
64
|
+
// } catch (err) {
|
|
65
|
+
// // File does not exist or cannot be read
|
|
66
|
+
// }
|
|
67
|
+
// }
|
|
68
|
+
//# sourceMappingURL=settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/commands/settings.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,uBAAuB;AACvB,2BAA2B;AAC3B,0CAA0C;AAE1C,oCAAoC;AACpC,gEAAgE;AAChE,4DAA4D;AAC5D,sCAAsC;AACtC,IAAI;AAEJ,qCAAqC;AACrC,gDAAgD;AAChD,6DAA6D;AAC7D,sCAAsC;AACtC,IAAI;AAEJ,8FAA8F;AAC9F,UAAU;AACV,mEAAmE;AACnE,uCAAuC;AACvC,0EAA0E;AAC1E,mCAAmC;AACnC,QAAQ;AACR,wBAAwB;AACxB,oBAAoB;AACpB,+CAA+C;AAC/C,wBAAwB;AACxB,MAAM;AACN,IAAI;AAEJ,sEAAsE;AACtE,+CAA+C;AAC/C,+CAA+C;AAE/C,wFAAwF;AACxF,0FAA0F;AAC1F,2BAA2B;AAE3B,uBAAuB;AACvB,4EAA4E;AAC5E,MAAM;AAEN,+CAA+C;AAC/C,6EAA6E;AAC7E,MAAM;AAEN,kBAAkB;AAClB,IAAI;AAEJ,gHAAgH;AAChH,iGAAiG;AACjG,qBAAqB;AACrB,UAAU;AACV,mEAAmE;AACnE,iCAAiC;AACjC,oBAAoB;AACpB,oEAAoE;AACpE,MAAM;AACN,gCAAgC;AAChC,4DAA4D;AAC5D,sFAAsF;AACtF,IAAI;AAEJ,sGAAsG;AACtG,sFAAsF;AACtF,UAAU;AACV,mEAAmE;AACnE,uCAAuC;AACvC,0EAA0E;AAC1E,mCAAmC;AACnC,0FAA0F;AAC1F,QAAQ;AACR,oBAAoB;AACpB,+CAA+C;AAC/C,MAAM;AACN,IAAI"}
|
package/lib/common/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAkC;AAIzB,uFAJA,eAAM,OAIA;AAHf,uDAAyC;AAGxB,8BAAS;AAF1B,6CAA+B;AAEH,oBAAI"}
|