@ionic/angular 7.6.2-dev.11702926577.1a448647 → 7.6.2-dev.11702957417.1622fcc0
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/LICENSE +21 -0
- package/directives/proxies.d.ts +1 -1
- package/esm2020/common/directives/control-value-accessors/value-accessor.mjs +4 -4
- package/esm2020/common/directives/navigation/back-button.mjs +4 -4
- package/esm2020/common/directives/navigation/nav.mjs +4 -4
- package/esm2020/common/directives/navigation/router-link-delegate.mjs +7 -7
- package/esm2020/common/directives/navigation/router-outlet.mjs +7 -7
- package/esm2020/common/directives/navigation/tabs.mjs +4 -4
- package/esm2020/common/overlays/modal.mjs +4 -4
- package/esm2020/common/overlays/popover.mjs +4 -4
- package/esm2020/common/providers/angular-delegate.mjs +4 -4
- package/esm2020/common/providers/config.mjs +4 -4
- package/esm2020/common/providers/dom-controller.mjs +4 -4
- package/esm2020/common/providers/nav-controller.mjs +4 -4
- package/esm2020/common/providers/platform.mjs +4 -4
- package/esm2020/directives/control-value-accessors/boolean-value-accessor.mjs +4 -4
- package/esm2020/directives/control-value-accessors/numeric-value-accessor.mjs +4 -4
- package/esm2020/directives/control-value-accessors/radio-value-accessor.mjs +4 -4
- package/esm2020/directives/control-value-accessors/select-value-accessor.mjs +4 -4
- package/esm2020/directives/control-value-accessors/text-value-accessor.mjs +4 -4
- package/esm2020/directives/navigation/ion-back-button.mjs +4 -4
- package/esm2020/directives/navigation/ion-nav.mjs +4 -4
- package/esm2020/directives/navigation/ion-router-outlet.mjs +4 -4
- package/esm2020/directives/navigation/ion-tabs.mjs +4 -4
- package/esm2020/directives/navigation/router-link-delegate.mjs +7 -7
- package/esm2020/directives/overlays/modal.mjs +4 -4
- package/esm2020/directives/overlays/popover.mjs +4 -4
- package/esm2020/directives/proxies.mjs +234 -234
- package/esm2020/directives/validators/max-validator.mjs +4 -4
- package/esm2020/directives/validators/min-validator.mjs +4 -4
- package/esm2020/ionic-module.mjs +5 -5
- package/esm2020/providers/action-sheet-controller.mjs +4 -4
- package/esm2020/providers/alert-controller.mjs +4 -4
- package/esm2020/providers/animation-controller.mjs +4 -4
- package/esm2020/providers/gesture-controller.mjs +4 -4
- package/esm2020/providers/loading-controller.mjs +4 -4
- package/esm2020/providers/menu-controller.mjs +4 -4
- package/esm2020/providers/modal-controller.mjs +4 -4
- package/esm2020/providers/picker-controller.mjs +4 -4
- package/esm2020/providers/toast-controller.mjs +4 -4
- package/esm2020/standalone/directives/checkbox.mjs +4 -4
- package/esm2020/standalone/directives/datetime.mjs +4 -4
- package/esm2020/standalone/directives/icon.mjs +4 -4
- package/esm2020/standalone/directives/input.mjs +4 -4
- package/esm2020/standalone/directives/proxies.mjs +198 -198
- package/esm2020/standalone/directives/radio-group.mjs +4 -4
- package/esm2020/standalone/directives/radio.mjs +4 -4
- package/esm2020/standalone/directives/range.mjs +4 -4
- package/esm2020/standalone/directives/searchbar.mjs +4 -4
- package/esm2020/standalone/directives/segment.mjs +4 -4
- package/esm2020/standalone/directives/select.mjs +4 -4
- package/esm2020/standalone/directives/textarea.mjs +4 -4
- package/esm2020/standalone/directives/toggle.mjs +4 -4
- package/esm2020/standalone/navigation/back-button.mjs +4 -4
- package/esm2020/standalone/navigation/nav.mjs +4 -4
- package/esm2020/standalone/navigation/router-link-delegate.mjs +7 -7
- package/esm2020/standalone/navigation/router-outlet.mjs +4 -4
- package/esm2020/standalone/navigation/tabs.mjs +4 -4
- package/esm2020/standalone/overlays/modal.mjs +4 -4
- package/esm2020/standalone/overlays/popover.mjs +4 -4
- package/esm2020/standalone/providers/action-sheet-controller.mjs +4 -4
- package/esm2020/standalone/providers/alert-controller.mjs +4 -4
- package/esm2020/standalone/providers/animation-controller.mjs +4 -4
- package/esm2020/standalone/providers/gesture-controller.mjs +4 -4
- package/esm2020/standalone/providers/loading-controller.mjs +4 -4
- package/esm2020/standalone/providers/menu-controller.mjs +4 -4
- package/esm2020/standalone/providers/modal-controller.mjs +4 -4
- package/esm2020/standalone/providers/picker-controller.mjs +4 -4
- package/esm2020/standalone/providers/toast-controller.mjs +4 -4
- package/fesm2015/ionic-angular-common.mjs +45 -45
- package/fesm2015/ionic-angular-common.mjs.map +1 -1
- package/fesm2015/ionic-angular-standalone.mjs +284 -284
- package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2015/ionic-angular.mjs +309 -309
- package/fesm2015/ionic-angular.mjs.map +1 -1
- package/fesm2020/ionic-angular-common.mjs +45 -45
- package/fesm2020/ionic-angular-common.mjs.map +1 -1
- package/fesm2020/ionic-angular-standalone.mjs +284 -284
- package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2020/ionic-angular.mjs +309 -309
- package/fesm2020/ionic-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/standalone/directives/proxies.d.ts +1 -1
- package/test/apps/ng14/node_modules/@angular/animations/README.md +8 -0
- package/test/apps/ng14/node_modules/@angular/cli/README.md +5 -0
- package/test/apps/ng14/node_modules/@angular/common/README.md +8 -0
- package/test/apps/ng14/node_modules/@angular/compiler/README.md +8 -0
- package/test/apps/ng14/node_modules/@angular/core/README.md +8 -0
- package/test/apps/ng14/node_modules/@angular/forms/README.md +8 -0
- package/test/apps/ng14/node_modules/@angular/platform-browser/README.md +8 -0
- package/test/apps/ng14/node_modules/@angular/platform-browser-dynamic/README.md +8 -0
- package/test/apps/ng14/node_modules/@angular/platform-server/README.md +8 -0
- package/test/apps/ng14/node_modules/@angular/router/README.md +8 -0
- package/test/apps/ng14/node_modules/@angular-devkit/build-angular/README.md +20 -0
- package/test/apps/ng14/node_modules/@angular-eslint/builder/README.md +1 -0
- package/test/apps/ng14/node_modules/@angular-eslint/eslint-plugin/README.md +1 -0
- package/test/apps/ng14/node_modules/@angular-eslint/eslint-plugin-template/README.md +1 -0
- package/test/apps/ng14/node_modules/@angular-eslint/schematics/README.md +1 -0
- package/test/apps/ng14/node_modules/@angular-eslint/template-parser/README.md +1 -0
- package/test/apps/ng14/node_modules/@ionic/angular/README.md +74 -0
- package/test/apps/ng14/node_modules/@nguniversal/builders/README.md +76 -0
- package/test/apps/ng14/node_modules/@types/express/README.md +15 -0
- package/test/apps/ng14/node_modules/@types/node/README.md +16 -0
- package/test/apps/ng14/node_modules/@typescript-eslint/eslint-plugin/README.md +10 -0
- package/test/apps/ng14/node_modules/@typescript-eslint/parser/README.md +10 -0
- package/test/apps/ng14/node_modules/concurrently/README.md +315 -0
- package/test/apps/ng14/node_modules/core-js/README.md +2307 -0
- package/test/apps/ng14/node_modules/cypress/README.md +25 -0
- package/test/apps/ng14/node_modules/eslint/README.md +308 -0
- package/test/apps/ng14/node_modules/rxjs/README.md +107 -0
- package/test/apps/ng14/node_modules/ts-loader/README.md +731 -0
- package/test/apps/ng14/node_modules/ts-node/README.md +302 -0
- package/test/apps/ng14/node_modules/tslib/README.md +164 -0
- package/test/apps/ng14/node_modules/typescript/README.md +104 -0
- package/test/apps/ng14/node_modules/typescript-eslint-language-service/README.md +77 -0
- package/test/apps/ng14/node_modules/wait-on/README.md +297 -0
- package/test/apps/ng14/node_modules/webpack/README.md +721 -0
- package/test/apps/ng14/node_modules/webpack-cli/README.md +147 -0
- package/test/apps/ng14/node_modules/zone.js/README.md +141 -0
- package/test/apps/ng15/node_modules/@angular/animations/README.md +8 -0
- package/test/apps/ng15/node_modules/@angular/cli/README.md +5 -0
- package/test/apps/ng15/node_modules/@angular/common/README.md +8 -0
- package/test/apps/ng15/node_modules/@angular/compiler/README.md +8 -0
- package/test/apps/ng15/node_modules/@angular/core/README.md +8 -0
- package/test/apps/ng15/node_modules/@angular/forms/README.md +8 -0
- package/test/apps/ng15/node_modules/@angular/platform-browser/README.md +8 -0
- package/test/apps/ng15/node_modules/@angular/platform-browser-dynamic/README.md +8 -0
- package/test/apps/ng15/node_modules/@angular/platform-server/README.md +8 -0
- package/test/apps/ng15/node_modules/@angular/router/README.md +8 -0
- package/test/apps/ng15/node_modules/@angular-devkit/build-angular/README.md +20 -0
- package/test/apps/ng15/node_modules/@angular-eslint/builder/README.md +1 -0
- package/test/apps/ng15/node_modules/@angular-eslint/eslint-plugin/README.md +1 -0
- package/test/apps/ng15/node_modules/@angular-eslint/eslint-plugin-template/README.md +1 -0
- package/test/apps/ng15/node_modules/@angular-eslint/schematics/README.md +1 -0
- package/test/apps/ng15/node_modules/@angular-eslint/template-parser/README.md +1 -0
- package/test/apps/ng15/node_modules/@ionic/angular/README.md +74 -0
- package/test/apps/ng15/node_modules/@nguniversal/builders/README.md +76 -0
- package/test/apps/ng15/node_modules/@nguniversal/express-engine/README.md +118 -0
- package/test/apps/ng15/node_modules/@types/express/README.md +15 -0
- package/test/apps/ng15/node_modules/@types/node/README.md +16 -0
- package/test/apps/ng15/node_modules/@typescript-eslint/eslint-plugin/README.md +234 -0
- package/test/apps/ng15/node_modules/@typescript-eslint/parser/README.md +265 -0
- package/test/apps/ng15/node_modules/concurrently/README.md +315 -0
- package/test/apps/ng15/node_modules/core-js/README.md +2307 -0
- package/test/apps/ng15/node_modules/cypress/README.md +25 -0
- package/test/apps/ng15/node_modules/eslint/README.md +308 -0
- package/test/apps/ng15/node_modules/rxjs/README.md +107 -0
- package/test/apps/ng15/node_modules/ts-loader/README.md +731 -0
- package/test/apps/ng15/node_modules/ts-node/README.md +302 -0
- package/test/apps/ng15/node_modules/tslib/README.md +164 -0
- package/test/apps/ng15/node_modules/typescript/README.md +104 -0
- package/test/apps/ng15/node_modules/typescript-eslint-language-service/README.md +77 -0
- package/test/apps/ng15/node_modules/wait-on/README.md +297 -0
- package/test/apps/ng15/node_modules/webpack/README.md +721 -0
- package/test/apps/ng15/node_modules/webpack-cli/README.md +147 -0
- package/test/apps/ng15/node_modules/zone.js/README.md +141 -0
- package/test/apps/ng16/node_modules/@angular/animations/README.md +8 -0
- package/test/apps/ng16/node_modules/@angular/cli/README.md +5 -0
- package/test/apps/ng16/node_modules/@angular/common/README.md +8 -0
- package/test/apps/ng16/node_modules/@angular/compiler/README.md +8 -0
- package/test/apps/ng16/node_modules/@angular/core/README.md +8 -0
- package/test/apps/ng16/node_modules/@angular/forms/README.md +8 -0
- package/test/apps/ng16/node_modules/@angular/platform-browser/README.md +8 -0
- package/test/apps/ng16/node_modules/@angular/platform-browser-dynamic/README.md +8 -0
- package/test/apps/ng16/node_modules/@angular/platform-server/README.md +8 -0
- package/test/apps/ng16/node_modules/@angular/router/README.md +8 -0
- package/test/apps/ng16/node_modules/@angular-devkit/build-angular/README.md +20 -0
- package/test/apps/ng16/node_modules/@angular-eslint/builder/README.md +1 -0
- package/test/apps/ng16/node_modules/@angular-eslint/eslint-plugin/README.md +84 -0
- package/test/apps/ng16/node_modules/@angular-eslint/eslint-plugin-template/README.md +93 -0
- package/test/apps/ng16/node_modules/@angular-eslint/schematics/README.md +1 -0
- package/test/apps/ng16/node_modules/@angular-eslint/template-parser/README.md +1 -0
- package/test/apps/ng16/node_modules/@ionic/angular/README.md +74 -0
- package/test/apps/ng16/node_modules/@nguniversal/builders/README.md +76 -0
- package/test/apps/ng16/node_modules/@nguniversal/express-engine/README.md +118 -0
- package/test/apps/ng16/node_modules/@types/express/README.md +15 -0
- package/test/apps/ng16/node_modules/@types/node/README.md +16 -0
- package/test/apps/ng16/node_modules/@typescript-eslint/eslint-plugin/README.md +234 -0
- package/test/apps/ng16/node_modules/@typescript-eslint/parser/README.md +265 -0
- package/test/apps/ng16/node_modules/concurrently/README.md +315 -0
- package/test/apps/ng16/node_modules/core-js/README.md +2307 -0
- package/test/apps/ng16/node_modules/cypress/README.md +25 -0
- package/test/apps/ng16/node_modules/eslint/README.md +308 -0
- package/test/apps/ng16/node_modules/rxjs/README.md +107 -0
- package/test/apps/ng16/node_modules/ts-loader/README.md +731 -0
- package/test/apps/ng16/node_modules/ts-node/README.md +302 -0
- package/test/apps/ng16/node_modules/tslib/README.md +164 -0
- package/test/apps/ng16/node_modules/typescript/README.md +49 -0
- package/test/apps/ng16/node_modules/typescript-eslint-language-service/README.md +77 -0
- package/test/apps/ng16/node_modules/wait-on/README.md +297 -0
- package/test/apps/ng16/node_modules/webpack/README.md +721 -0
- package/test/apps/ng16/node_modules/webpack-cli/README.md +147 -0
- package/test/apps/ng16/node_modules/zone.js/README.md +141 -0
- package/test/apps/ng17/node_modules/@angular/animations/README.md +8 -0
- package/test/apps/ng17/node_modules/@angular/cli/README.md +5 -0
- package/test/apps/ng17/node_modules/@angular/common/README.md +8 -0
- package/test/apps/ng17/node_modules/@angular/compiler/README.md +8 -0
- package/test/apps/ng17/node_modules/@angular/core/README.md +8 -0
- package/test/apps/ng17/node_modules/@angular/forms/README.md +8 -0
- package/test/apps/ng17/node_modules/@angular/platform-browser/README.md +8 -0
- package/test/apps/ng17/node_modules/@angular/platform-browser-dynamic/README.md +8 -0
- package/test/apps/ng17/node_modules/@angular/platform-server/README.md +8 -0
- package/test/apps/ng17/node_modules/@angular/router/README.md +8 -0
- package/test/apps/ng17/node_modules/@angular-devkit/build-angular/README.md +24 -0
- package/test/apps/ng17/node_modules/@angular-eslint/builder/README.md +1 -0
- package/test/apps/ng17/node_modules/@angular-eslint/eslint-plugin/README.md +84 -0
- package/test/apps/ng17/node_modules/@angular-eslint/eslint-plugin-template/README.md +94 -0
- package/test/apps/ng17/node_modules/@angular-eslint/schematics/README.md +1 -0
- package/test/apps/ng17/node_modules/@angular-eslint/template-parser/README.md +1 -0
- package/test/apps/ng17/node_modules/@ionic/angular/README.md +74 -0
- package/test/apps/ng17/node_modules/@types/express/README.md +15 -0
- package/test/apps/ng17/node_modules/@types/ws/README.md +16 -0
- package/test/apps/ng17/node_modules/@typescript-eslint/eslint-plugin/README.md +12 -0
- package/test/apps/ng17/node_modules/@typescript-eslint/parser/README.md +12 -0
- package/test/apps/ng17/node_modules/concurrently/README.md +315 -0
- package/test/apps/ng17/node_modules/core-js/README.md +95 -0
- package/test/apps/ng17/node_modules/cypress/README.md +25 -0
- package/test/apps/ng17/node_modules/eslint/README.md +308 -0
- package/test/apps/ng17/node_modules/rxjs/README.md +107 -0
- package/test/apps/ng17/node_modules/ts-loader/README.md +731 -0
- package/test/apps/ng17/node_modules/ts-node/README.md +302 -0
- package/test/apps/ng17/node_modules/tslib/README.md +164 -0
- package/test/apps/ng17/node_modules/typescript/README.md +51 -0
- package/test/apps/ng17/node_modules/typescript-eslint-language-service/README.md +77 -0
- package/test/apps/ng17/node_modules/wait-on/README.md +297 -0
- package/test/apps/ng17/node_modules/webpack/README.md +721 -0
- package/test/apps/ng17/node_modules/webpack-cli/README.md +147 -0
- package/test/apps/ng17/node_modules/zone.js/README.md +141 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<a href="https://github.com/webpack/webpack-cli">
|
|
3
|
+
<img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg">
|
|
4
|
+
</a>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
# webpack CLI
|
|
8
|
+
|
|
9
|
+
The official CLI of webpack
|
|
10
|
+
|
|
11
|
+
## About
|
|
12
|
+
|
|
13
|
+
webpack CLI provides a flexible set of commands for developers to increase speed when setting up a custom webpack project. As of webpack v4, webpack is not expecting a configuration file, but often developers want to create a more custom webpack configuration based on their use-cases and needs. webpack CLI addresses these needs by providing a set of tools to improve the setup of custom webpack configuration.
|
|
14
|
+
|
|
15
|
+
## How to install
|
|
16
|
+
|
|
17
|
+
When you have followed the [Getting Started](https://webpack.js.org/guides/getting-started/) guide of webpack then webpack CLI is already installed!
|
|
18
|
+
|
|
19
|
+
Otherwise
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install --save-dev webpack-cli
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
or
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
yarn add webpack-cli --dev
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Supported arguments and commands
|
|
32
|
+
|
|
33
|
+
### Usage
|
|
34
|
+
|
|
35
|
+
All interactions with webpack-cli are of the form
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npx webpack-cli [command] [options]
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
If no command is specified then `bundle` command is used by default
|
|
42
|
+
|
|
43
|
+
### Help Usage
|
|
44
|
+
|
|
45
|
+
To display basic commands and arguments -
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npx webpack-cli --help
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
To display all supported commands and arguments -
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
npx webpack-cli --help=verbose
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
or
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npx webpack-cli --help verbose
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Available Commands
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
build|bundle|b [entries...] [options] Run webpack (default command, can be omitted).
|
|
67
|
+
configtest|t [config-path] Validate a webpack configuration.
|
|
68
|
+
help|h [command] [option] Display help for commands and options.
|
|
69
|
+
info|i [options] Outputs information about your system.
|
|
70
|
+
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
|
|
71
|
+
loader|l [output-path] [options] Scaffold a loader.
|
|
72
|
+
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
|
|
73
|
+
plugin|p [output-path] [options] Scaffold a plugin.
|
|
74
|
+
serve|server|s [entries...] [options] Run the webpack dev server.
|
|
75
|
+
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
|
|
76
|
+
watch|w [entries...] [options] Run webpack and watch for files changes.
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### webpack 4
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
Options:
|
|
83
|
+
--analyze It invokes webpack-bundle-analyzer plugin to get bundle information
|
|
84
|
+
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
|
|
85
|
+
--config-name <value...> Name of the configuration to use.
|
|
86
|
+
-m, --merge Merge two or more configurations using 'webpack-merge'.
|
|
87
|
+
--env <value...> Environment passed to the configuration when it is a function.
|
|
88
|
+
--node-env <value> Sets process.env.NODE_ENV to the specified value.
|
|
89
|
+
--progress [value] Print compilation progress during build.
|
|
90
|
+
-j, --json [value] Prints result as JSON or store it in a file.
|
|
91
|
+
-d, --devtool <value> Determine source maps to use.
|
|
92
|
+
--no-devtool Do not generate source maps.
|
|
93
|
+
--entry <value...> The entry point(s) of your application e.g. ./src/main.js.
|
|
94
|
+
-h, --hot [value] Enables Hot Module Replacement
|
|
95
|
+
--no-hot Disables Hot Module Replacement
|
|
96
|
+
--mode <value> Defines the mode to pass to webpack.
|
|
97
|
+
--name <value> Name of the configuration. Used when loading multiple configurations.
|
|
98
|
+
-o, --output-path <value> Output location of the file generated by webpack e.g. ./dist/.
|
|
99
|
+
--prefetch <value> Prefetch this request
|
|
100
|
+
--stats [value] It instructs webpack on how to treat the stats e.g. verbose.
|
|
101
|
+
--no-stats Disable stats output.
|
|
102
|
+
-t, --target <value...> Sets the build target e.g. node.
|
|
103
|
+
-w, --watch Watch for files changes.
|
|
104
|
+
--no-watch Do not watch for file changes.
|
|
105
|
+
--watch-options-stdin Stop watching when stdin stream has ended.
|
|
106
|
+
--no-watch-options-stdin Do not stop watching when stdin stream has ended.
|
|
107
|
+
|
|
108
|
+
Global options:
|
|
109
|
+
--color Enable colors on console.
|
|
110
|
+
--no-color Disable colors on console.
|
|
111
|
+
-v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
|
|
112
|
+
-h, --help [verbose] Display help for commands and options.
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### webpack 5
|
|
116
|
+
|
|
117
|
+
Checkout [`OPTIONS.md`](https://github.com/webpack/webpack-cli/blob/master/OPTIONS.md) to see list of all available options.
|
|
118
|
+
|
|
119
|
+
## Exit codes and their meanings
|
|
120
|
+
|
|
121
|
+
| Exit Code | Description |
|
|
122
|
+
| --------- | -------------------------------------------------- |
|
|
123
|
+
| `0` | Success |
|
|
124
|
+
| `1` | Errors from webpack |
|
|
125
|
+
| `2` | Configuration/options problem or an internal error |
|
|
126
|
+
|
|
127
|
+
## CLI Environment Variables
|
|
128
|
+
|
|
129
|
+
| Environment Variable | Description |
|
|
130
|
+
| ----------------------------------- | ------------------------------------------------------------------- |
|
|
131
|
+
| `WEBPACK_CLI_SKIP_IMPORT_LOCAL` | when `true` it will skip using the local instance of `webpack-cli`. |
|
|
132
|
+
| `WEBPACK_CLI_FORCE_LOAD_ESM_CONFIG` | when `true` it will force load the ESM config. |
|
|
133
|
+
| `WEBPACK_PACKAGE` | Use a custom webpack version in CLI. |
|
|
134
|
+
| `WEBPACK_DEV_SERVER_PACKAGE` | Use a custom webpack-dev-server version in CLI. |
|
|
135
|
+
| `WEBPACK_CLI_HELP_WIDTH` | Use custom width for help output. |
|
|
136
|
+
|
|
137
|
+
## Configuration Environment Variables
|
|
138
|
+
|
|
139
|
+
You can use the following environment variables inside your webpack configuration:
|
|
140
|
+
|
|
141
|
+
| Environment Variable | Description |
|
|
142
|
+
| -------------------- | -------------------------------------------- |
|
|
143
|
+
| `WEBPACK_SERVE` | `true` if `serve\|s` is being used. |
|
|
144
|
+
| `WEBPACK_BUILD` | `true` if `build\|bundle\|b` is being used. |
|
|
145
|
+
| `WEBPACK_WATCH` | `true` if `--watch\|watch\|w` is being used. |
|
|
146
|
+
|
|
147
|
+
Checkout [webpack.js.org](https://webpack.js.org/api/cli/) for more detailed documentation of `webpack-cli`.
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# Zone.js
|
|
2
|
+
|
|
3
|
+
[](https://cdnjs.com/libraries/zone.js)
|
|
4
|
+
|
|
5
|
+
Implements _Zones_ for JavaScript, inspired by [Dart](https://dart.dev/articles/archive/zones).
|
|
6
|
+
|
|
7
|
+
> If you're using zone.js via unpkg (i.e. using `https://unpkg.com/zone.js`)
|
|
8
|
+
> and you're using any of the following libraries, make sure you import them first
|
|
9
|
+
|
|
10
|
+
> * 'newrelic' as it patches global.Promise before zone.js does
|
|
11
|
+
> * 'async-listener' as it patches global.setTimeout, global.setInterval before zone.js does
|
|
12
|
+
> * 'continuation-local-storage' as it uses async-listener
|
|
13
|
+
|
|
14
|
+
# NEW Zone.js POST-v0.6.0
|
|
15
|
+
|
|
16
|
+
See the new API [here](./lib/zone.ts).
|
|
17
|
+
|
|
18
|
+
Read up on [Zone Primer](https://docs.google.com/document/d/1F5Ug0jcrm031vhSMJEOgp1l-Is-Vf0UCNDY-LsQtAIY).
|
|
19
|
+
|
|
20
|
+
# BREAKING CHANGES since Zone.js v0.11.1
|
|
21
|
+
|
|
22
|
+
Prior to `v0.11.1`, Zone.js provided two distribution bundle formats in the `dist` folder.
|
|
23
|
+
They were (1) `ES5` bundle distributed as `zone.js` and (2) `ES2015` bundle distributed as `zone-evergreen.js`.
|
|
24
|
+
Both of these bundles were in `UMD` format, and are used for Angular's differential-loading mechanism.
|
|
25
|
+
|
|
26
|
+
Starting with `v0.11.1`, Zone.js follows the [Angular Package Format](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs). Therefor the new Zone.js file layout is:
|
|
27
|
+
|
|
28
|
+
- `bundles`: `ES5` bundle in `UMD` format.
|
|
29
|
+
- `fesm2015`: `ES5` bundle in `ESM` format.
|
|
30
|
+
- `dist`: `ES5` bundle in `UMD` format. This directory is present to keep backward compatibility.
|
|
31
|
+
|
|
32
|
+
If you are using `Angular CLI`, the `polyfills.ts` file will contain:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
import 'zone.js/dist/zone';
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Starting with Zone.js `v0.11.1+` the import changes to:
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
import 'zone.js';
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Prior to `v0.11.1` the import would load the `ES5` bundle in `UMD` format from `dist/zone.js`.
|
|
45
|
+
Starting with `v0.11.1` the import loads the `ES2015` bundle in `ESM` format instead.
|
|
46
|
+
|
|
47
|
+
This is a breaking change for legacy browsers such as `IE11`.
|
|
48
|
+
|
|
49
|
+
For backwards compatibility `zone.js` continues to distribute the same bundles under `dist`.
|
|
50
|
+
To restore the old behavior import from the `dist` directory instead like so:
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
import 'zone.js/dist/zone';
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
For details, please refer the [changelog](./CHANGELOG.md) and the [PR](https://github.com/angular/angular/pull/36540).
|
|
57
|
+
|
|
58
|
+
## What's a Zone?
|
|
59
|
+
|
|
60
|
+
A Zone is an execution context that persists across async tasks.
|
|
61
|
+
You can think of it as [thread-local storage](https://en.wikipedia.org/wiki/Thread-local_storage) for JavaScript VMs.
|
|
62
|
+
|
|
63
|
+
See this video from ng-conf 2014 for a detailed explanation:
|
|
64
|
+
|
|
65
|
+
[](//www.youtube.com/watch?v=3IqtmUscE_U&t=150)
|
|
66
|
+
|
|
67
|
+
## See also
|
|
68
|
+
* [async-listener](https://github.com/othiym23/async-listener) - a similar library for node
|
|
69
|
+
* [Async stack traces in Chrome](https://www.html5rocks.com/en/tutorials/developertools/async-call-stack/)
|
|
70
|
+
* [strongloop/zone](https://github.com/strongloop/zone) (Deprecated)
|
|
71
|
+
* [vizone](https://github.com/gilbox/vizone) - control flow visualizer that uses zone.js
|
|
72
|
+
|
|
73
|
+
## Standard API support
|
|
74
|
+
|
|
75
|
+
zone.js patched most standard web APIs (such as DOM events, `XMLHttpRequest`, ...) and nodejs APIs
|
|
76
|
+
(`EventEmitter`, `fs`, ...), for more details, please see [STANDARD-APIS.md](STANDARD-APIS.md).
|
|
77
|
+
|
|
78
|
+
## Nonstandard API support
|
|
79
|
+
|
|
80
|
+
We are adding support to some nonstandard APIs, such as MediaQuery and
|
|
81
|
+
Notification. Please see [NON-STANDARD-APIS.md](NON-STANDARD-APIS.md) for more details.
|
|
82
|
+
|
|
83
|
+
## Examples
|
|
84
|
+
|
|
85
|
+
You can find some samples to describe how to use zone.js in [SAMPLE.md](SAMPLE.md).
|
|
86
|
+
|
|
87
|
+
## Modules
|
|
88
|
+
|
|
89
|
+
zone.js patches the async APIs described above, but those patches will have some overhead.
|
|
90
|
+
Starting from zone.js v0.8.9, you can choose which web API module you want to patch.
|
|
91
|
+
For more details, please
|
|
92
|
+
see [MODULE.md](MODULE.md).
|
|
93
|
+
|
|
94
|
+
## Bundles
|
|
95
|
+
|
|
96
|
+
Starting with `v0.11.0`, `zone.js` uses `Angular Package Format` for bundle distribution.
|
|
97
|
+
(For backwards compatibility, all bundles can still be accessed from `dist` folder.)
|
|
98
|
+
|
|
99
|
+
|Bundle|Summary|
|
|
100
|
+
|---|---|
|
|
101
|
+
|`zone.js`| The default bundle. Contains the most used APIs such as `setTimeout/Promise/EventTarget...`, it also supports differential loading by importing this bundle using `import zone.js`. In legacy browsers it includes some additional patches such as `registerElement` and `EventTarget` like APIs.|
|
|
102
|
+
|`zone-testing.js`| The bundle for zone testing support of `jasmine` / `mocha` / `jest`. Also includes test utility functions `async` / `fakeAsync` / `sync`.|
|
|
103
|
+
|`zone-node.js`|The NodeJS support bundle.|
|
|
104
|
+
|`zone-mix.js`|A mixed bundle which supports both browser and NodeJS. Useful for mixed environment such as Electron.|
|
|
105
|
+
|`zone-externs.js`|the API definitions for `closure compiler`.|
|
|
106
|
+
|
|
107
|
+
Additional optional patches not included in the `zone.js` bundles which extend functionality.
|
|
108
|
+
The additional bundles can be found under `zone.js/plugins` folder.
|
|
109
|
+
To use these bundles, add the following code after importing zone.js bundle.
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
import 'zone.js';
|
|
113
|
+
// For example, import canvas patch
|
|
114
|
+
import 'zone.js/plugins/zone-patch-canvas';
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
|Patch|Summary|
|
|
118
|
+
|---|---|
|
|
119
|
+
|`webapis-media-query.js`|patch for `MediaQuery APIs`|
|
|
120
|
+
|`webapis-notification.js`|patch for `Notification APIs`|
|
|
121
|
+
|`webapis-rtc-peer-connection.js`|patch for `RTCPeerConnection APIs`|
|
|
122
|
+
|`webapis-shadydom.js`|patch for `Shady DOM APIs`|
|
|
123
|
+
|`zone-bluebird.js`|patch for `Bluebird APIs`|
|
|
124
|
+
|`zone-error.js`|patch for `Error Global Object`, supports adding zone information to stack frame, and also removing unrelated stack frames from `zone.js` internally|
|
|
125
|
+
|`zone-patch-canvas.js`|patch for `Canvas API`|
|
|
126
|
+
|`zone-patch-cordova.js`|patch for `Cordova API`|
|
|
127
|
+
|`zone-patch-electron.js`|patch for `Electron API`|
|
|
128
|
+
|`zone-patch-fetch.js`|patch for `Fetch API`|
|
|
129
|
+
|`zone-patch-jsonp.js`|helper utility for `jsonp API`|
|
|
130
|
+
|`zone-patch-resize-observer.js`|patch for `ResizeObserver API`|
|
|
131
|
+
|`zone-patch-rxjs.js`|patch for `rxjs API`|
|
|
132
|
+
|`zone-patch-rxjs-fake-async.js`|patch for `rxjs fakeasync test`|
|
|
133
|
+
|`zone-patch-socket-io.js`|patch for `socket-io`|
|
|
134
|
+
|`zone-patch-user-media.js`|patch for `UserMedia API`|
|
|
135
|
+
|`zone-patch-message-port.js`|patch for `MessagePort API`|
|
|
136
|
+
|
|
137
|
+
## Promise A+ test passed
|
|
138
|
+
[](https://promisesaplus.com/)
|
|
139
|
+
|
|
140
|
+
## License
|
|
141
|
+
MIT
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Angular
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
The sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.
|
|
5
|
+
|
|
6
|
+
Usage information and reference details can be found in [Angular documentation](https://angular.io/docs).
|
|
7
|
+
|
|
8
|
+
License: MIT
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Angular CLI - The CLI tool for Angular.
|
|
2
|
+
|
|
3
|
+
The sources for this package are in the [Angular CLI](https://github.com/angular/angular-cli) repository. Please file issues and pull requests against that repository.
|
|
4
|
+
|
|
5
|
+
Usage information and reference details can be found in repository [README](../../../README.md) file.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Angular
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
The sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.
|
|
5
|
+
|
|
6
|
+
Usage information and reference details can be found in [Angular documentation](https://angular.io/docs).
|
|
7
|
+
|
|
8
|
+
License: MIT
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Angular
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
The sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.
|
|
5
|
+
|
|
6
|
+
Usage information and reference details can be found in [Angular documentation](https://angular.io/docs).
|
|
7
|
+
|
|
8
|
+
License: MIT
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Angular
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
The sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.
|
|
5
|
+
|
|
6
|
+
Usage information and reference details can be found in [Angular documentation](https://angular.io/docs).
|
|
7
|
+
|
|
8
|
+
License: MIT
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Angular
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
The sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.
|
|
5
|
+
|
|
6
|
+
Usage information and reference details can be found in [Angular documentation](https://angular.io/docs).
|
|
7
|
+
|
|
8
|
+
License: MIT
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Angular
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
The sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.
|
|
5
|
+
|
|
6
|
+
Usage information and reference details can be found in [Angular documentation](https://angular.io/docs).
|
|
7
|
+
|
|
8
|
+
License: MIT
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Angular
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
The sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.
|
|
5
|
+
|
|
6
|
+
Usage information and reference details can be found in [Angular documentation](https://angular.io/docs).
|
|
7
|
+
|
|
8
|
+
License: MIT
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Angular
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
The sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.
|
|
5
|
+
|
|
6
|
+
Usage information and reference details can be found in [Angular documentation](https://angular.io/docs).
|
|
7
|
+
|
|
8
|
+
License: MIT
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Angular
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
The sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.
|
|
5
|
+
|
|
6
|
+
Usage information and reference details can be found in [Angular documentation](https://angular.io/docs).
|
|
7
|
+
|
|
8
|
+
License: MIT
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# @angular-devkit/build-angular
|
|
2
|
+
|
|
3
|
+
This package contains [Architect builders](/packages/angular_devkit/architect/README.md) used to build and test Angular applications and libraries.
|
|
4
|
+
|
|
5
|
+
## Builders
|
|
6
|
+
|
|
7
|
+
| Name | Description |
|
|
8
|
+
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
9
|
+
| app-shell | Build an Angular [App shell](https://angular.io/guide/app-shell). |
|
|
10
|
+
| browser | Build an Angular application targeting a browser environment. |
|
|
11
|
+
| dev-server | A development server that provides live reloading. |
|
|
12
|
+
| extract-i18n | Extract i18n messages from an Angular application. |
|
|
13
|
+
| karma | Execute unit tests using [Karma](https://github.com/karma-runner/karma) test runner. |
|
|
14
|
+
| ng-packagr | Build and package an Angular library in [Angular Package Format (APF)](https://angular.io/guide/angular-package-format) format using [ng-packagr](https://github.com/ng-packagr/ng-packagr). |
|
|
15
|
+
| server | Build an Angular application targeting a [Node.js](https://nodejs.org) environment. |
|
|
16
|
+
| protractor | **Deprecated** - Run end-to-end tests using [Protractor](https://www.protractortest.org/) framework. |
|
|
17
|
+
|
|
18
|
+
## Disclaimer
|
|
19
|
+
|
|
20
|
+
While the builders when executed via the Angular CLI and their associated options are considered stable, the programmatic APIs are not considered officially supported and are not subject to the breaking change guarantees of SemVer.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @angular-eslint/builder
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @angular-eslint/eslint-plugin
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @angular-eslint/eslint-plugin-template
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @angular-eslint/schematics
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @angular-eslint/template-parser
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# @ionic/angular
|
|
2
|
+
|
|
3
|
+
Ionic Angular specific building blocks on top of [@ionic/core](https://www.npmjs.com/package/@ionic/core) components.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Related
|
|
7
|
+
|
|
8
|
+
* [Ionic Core Components](https://www.npmjs.com/package/@ionic/core)
|
|
9
|
+
* [Ionic Documentation](https://ionicframework.com/docs/)
|
|
10
|
+
* [Ionic Discord](https://ionic.link/discord)
|
|
11
|
+
* [Ionic Forum](https://forum.ionicframework.com/)
|
|
12
|
+
* [Ionicons](http://ionicons.com/)
|
|
13
|
+
* [Stencil](https://stenciljs.com/)
|
|
14
|
+
* [Capacitor](https://capacitor.ionicframework.com/)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## License
|
|
18
|
+
|
|
19
|
+
* [MIT](https://raw.githubusercontent.com/ionic-team/ionic/main/LICENSE)
|
|
20
|
+
|
|
21
|
+
## Testing ng-add in ionic
|
|
22
|
+
|
|
23
|
+
1. Pull the latest from `main`
|
|
24
|
+
2. Build ionic/angular: `npm run build`
|
|
25
|
+
3. Run `npm link` from `ionic/angular/dist` directory
|
|
26
|
+
4. Create a blank angular project
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
ng new add-test
|
|
30
|
+
// Say yes to including the router, we need it
|
|
31
|
+
cd add-test
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
5. To run schematics locally, we need the schematics-cli (once published, this will not be needed)
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
npm install @angular-devkit/schematics-cli
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
6. Link `@ionic/angular`
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
npm link @ionic/angular
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
7. Run the local copy of the ng-add schematic
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
$ npx schematics @ionic/angular:ng-add
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
You'll now be able to add ionic components to a vanilla Angular app setup.
|
|
55
|
+
|
|
56
|
+
## Project Structure
|
|
57
|
+
|
|
58
|
+
**common**
|
|
59
|
+
|
|
60
|
+
This is where logic that is shared between lazy loaded and standalone components live. For example, the lazy loaded IonPopover and standalone IonPopover components extend from a base IonPopover implementation that exists in this directory.
|
|
61
|
+
|
|
62
|
+
**Note:** This directory exposes internal APIs and is only accessed in the `standalone` and `src` submodules. Ionic developers should never import directly from `@ionic/angular/common`. Instead, they should import from `@ionic/angular` or `@ionic/angular/standalone`.
|
|
63
|
+
|
|
64
|
+
**standalone**
|
|
65
|
+
|
|
66
|
+
This is where the standalone component implementations live. It was added as a separate entry point to avoid any lazy loaded logic from accidentally being pulled in to the final build. Having a separate directory allows the lazy loaded implementation to remain accessible from `@ionic/angular` for backwards compatibility.
|
|
67
|
+
|
|
68
|
+
Ionic developers can access this by importing from `@ionic/angular/standalone`.
|
|
69
|
+
|
|
70
|
+
**src**
|
|
71
|
+
|
|
72
|
+
This is where the lazy loaded component implementations live.
|
|
73
|
+
|
|
74
|
+
Ionic developers can access this by importing from `@ionic/angular`.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Angular Universal Builders
|
|
2
|
+
|
|
3
|
+
Angular Universal comes with some custom Builders. All Parameters are also specified in their schema.json file.
|
|
4
|
+
|
|
5
|
+
# Builders
|
|
6
|
+
|
|
7
|
+
- prerender
|
|
8
|
+
- ssr-dev-server
|
|
9
|
+
- static-generator
|
|
10
|
+
|
|
11
|
+
## Prerender
|
|
12
|
+
|
|
13
|
+
### Description
|
|
14
|
+
|
|
15
|
+
This builder is used to prerender pages of your application. Prerendering is the process where a dynamic page is processed at build time generating static HTML.
|
|
16
|
+
|
|
17
|
+
For more information about this see: https://angular.io/guide/prerendering
|
|
18
|
+
|
|
19
|
+
Use this if you want to serve fast Pages, where you don't have changing Content on _each request_.
|
|
20
|
+
|
|
21
|
+
### Options
|
|
22
|
+
|
|
23
|
+
| Name | Type of Value | Description | Required |
|
|
24
|
+
| ------------- | -------------------------------------------- | --------------------------------------------------------------------------------- | -------- |
|
|
25
|
+
| browserTarget | Pattern: `^[^:\s]+:[^:\s]+(:[^\s]+)?$` | Target to build. | ✔️ |
|
|
26
|
+
| serverTarget | Pattern: `^[^:\s]+:[^:\s]+(:[^\s]+)?$` | Server target to use for prerendering the app. | ✔️ |
|
|
27
|
+
| routesFile | A Filename - Attention no schema validation! | The path to a file containing routes separated by newlines. | |
|
|
28
|
+
| routes | Unique Strings | The routes to render. | |
|
|
29
|
+
| guessRoutes | Bolean (default: true) | Whether or not the builder should extract routes and guess which paths to render. | |
|
|
30
|
+
| numProcesses | Number (min: 1, default: 1) | The number of cpus to use. Defaults to all but one. | |
|
|
31
|
+
|
|
32
|
+
## SSR Dev Server
|
|
33
|
+
|
|
34
|
+
### Summary
|
|
35
|
+
|
|
36
|
+
This command is similar to ng serve, which offers live reload during development, but uses server-side rendering.
|
|
37
|
+
The application runs in watch mode and refreshes the browser after every change. This command is slower than the actual ng serve command.
|
|
38
|
+
|
|
39
|
+
Attention: This builder is _only for local development_.
|
|
40
|
+
|
|
41
|
+
### Options
|
|
42
|
+
|
|
43
|
+
| Name | Type of Value | Description | Required |
|
|
44
|
+
| ------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- |
|
|
45
|
+
| browserTarget | Pattern: `.+:.+(:.+)?` | Target to build. | ✔️ |
|
|
46
|
+
| serverTarget | Pattern: `.+:.+(:.+)?` | Server target to build. | ✔️ |
|
|
47
|
+
| host | string (default: localhost) | Host to listen on. | |
|
|
48
|
+
| port | number (default: 4200) | Port to start the development server at. Default is 4200. Pass 0 to get a dynamically assigned port. | |
|
|
49
|
+
| publicHost | string | The URL that the browser client should use to connect to the development server. Use for a complex dev server setup, such as one with reverse proxies. | |
|
|
50
|
+
| open | boolean (default: false) | Opens the url in default browser. | |
|
|
51
|
+
| progress | boolean (default: true) | Log progress to the console while building. | |
|
|
52
|
+
| inspect | boolean (default: false) | Launch the development server in inspector mode and listen on address and port '127.0.0.1:9229'. | |
|
|
53
|
+
| ssl | boolean (default: false) | Serve using HTTPS. | |
|
|
54
|
+
| sslKey | string | SSL key to use for serving HTTPS. | |
|
|
55
|
+
| sslCert | string | SSL certificate to use for serving HTTPS. | |
|
|
56
|
+
| proxyConfig | string | Proxy configuration file. | |
|
|
57
|
+
|
|
58
|
+
## Static Generator
|
|
59
|
+
|
|
60
|
+
### Description
|
|
61
|
+
|
|
62
|
+
This builder is used to prerender pages of your application using the experimental [Clover](../common/clover/README.md) implementation.
|
|
63
|
+
Prerendering is the process where a dynamic page is processed at build time generating static HTML.
|
|
64
|
+
|
|
65
|
+
Attention:
|
|
66
|
+
Use this if you don't have any server side Code - as "serverTarget" is not configurable.
|
|
67
|
+
|
|
68
|
+
### Option
|
|
69
|
+
|
|
70
|
+
| Name | Type of Value | Description | Required |
|
|
71
|
+
| ------------- | -------------------------------------- | --------------------------------------------------------------------------------- | -------- |
|
|
72
|
+
| browserTarget | Pattern: `^[^:\s]+:[^:\s]+(:[^\s]+)?$` | Target to build. | ✔️ |
|
|
73
|
+
| routesFile | string | The path to a file containing routes separated by newlines. | |
|
|
74
|
+
| routes | array of Unique Strings | The routes to render. | |
|
|
75
|
+
| guessRoutes | boolean (default: true) | Whether or not the builder should extract routes and guess which paths to render. | |
|
|
76
|
+
| numProcesses | number (min: 1, default: 1) | The number of cpus to use. Defaults to all but one. | |
|