@angular/cli 18.1.0-next.2 → 18.1.0-rc.0
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/lib/cli/index.js +5 -4
- package/package.json +18 -18
- package/src/command-builder/architect-base-command-module.js +1 -1
- package/src/command-builder/architect-command-module.js +158 -124
- package/src/command-builder/command-module.js +225 -196
- package/src/command-builder/schematics-command-module.js +308 -284
- package/src/commands/add/cli.js +193 -123
- package/src/commands/new/cli.js +1 -1
- package/src/commands/update/cli.js +62 -31
- package/src/utilities/color.d.ts +2 -3
- package/src/utilities/color.js +15 -51
- package/src/utilities/memoize.d.ts +1 -1
- package/src/utilities/memoize.js +14 -19
- package/src/utilities/package-manager.js +265 -245
- package/src/utilities/tty.d.ts +1 -1
- package/src/utilities/tty.js +2 -2
- package/src/utilities/version.js +1 -1
- package/src/utilities/spinner.d.ts +0 -20
- package/src/utilities/spinner.js +0 -55
package/src/utilities/spinner.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
-
*/
|
|
9
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.Spinner = void 0;
|
|
14
|
-
const ora_1 = __importDefault(require("ora"));
|
|
15
|
-
const color_1 = require("./color");
|
|
16
|
-
class Spinner {
|
|
17
|
-
spinner;
|
|
18
|
-
/** When false, only fail messages will be displayed. */
|
|
19
|
-
enabled = true;
|
|
20
|
-
constructor(text) {
|
|
21
|
-
this.spinner = (0, ora_1.default)({
|
|
22
|
-
text,
|
|
23
|
-
// The below 2 options are needed because otherwise CTRL+C will be delayed
|
|
24
|
-
// when the underlying process is sync.
|
|
25
|
-
hideCursor: false,
|
|
26
|
-
discardStdin: false,
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
set text(text) {
|
|
30
|
-
this.spinner.text = text;
|
|
31
|
-
}
|
|
32
|
-
succeed(text) {
|
|
33
|
-
if (this.enabled) {
|
|
34
|
-
this.spinner.succeed(text);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
info(text) {
|
|
38
|
-
this.spinner.info(text);
|
|
39
|
-
}
|
|
40
|
-
fail(text) {
|
|
41
|
-
this.spinner.fail(text && color_1.colors.redBright(text));
|
|
42
|
-
}
|
|
43
|
-
warn(text) {
|
|
44
|
-
this.spinner.warn(text && color_1.colors.yellowBright(text));
|
|
45
|
-
}
|
|
46
|
-
stop() {
|
|
47
|
-
this.spinner.stop();
|
|
48
|
-
}
|
|
49
|
-
start(text) {
|
|
50
|
-
if (this.enabled) {
|
|
51
|
-
this.spinner.start(text);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.Spinner = Spinner;
|