@ionic/angular 7.6.2-dev.11702957417.1622fcc0 → 7.6.2-dev.11703182244.1165aeec
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/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/LICENSE +0 -21
- package/test/apps/ng14/node_modules/@angular/animations/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/cli/README.md +0 -5
- package/test/apps/ng14/node_modules/@angular/common/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/compiler/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/core/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/forms/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/platform-browser/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/platform-browser-dynamic/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/platform-server/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/router/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular-devkit/build-angular/README.md +0 -20
- package/test/apps/ng14/node_modules/@angular-eslint/builder/README.md +0 -1
- package/test/apps/ng14/node_modules/@angular-eslint/eslint-plugin/README.md +0 -1
- package/test/apps/ng14/node_modules/@angular-eslint/eslint-plugin-template/README.md +0 -1
- package/test/apps/ng14/node_modules/@angular-eslint/schematics/README.md +0 -1
- package/test/apps/ng14/node_modules/@angular-eslint/template-parser/README.md +0 -1
- package/test/apps/ng14/node_modules/@ionic/angular/README.md +0 -74
- package/test/apps/ng14/node_modules/@nguniversal/builders/README.md +0 -76
- package/test/apps/ng14/node_modules/@types/express/README.md +0 -15
- package/test/apps/ng14/node_modules/@types/node/README.md +0 -16
- package/test/apps/ng14/node_modules/@typescript-eslint/eslint-plugin/README.md +0 -10
- package/test/apps/ng14/node_modules/@typescript-eslint/parser/README.md +0 -10
- package/test/apps/ng14/node_modules/concurrently/README.md +0 -315
- package/test/apps/ng14/node_modules/core-js/README.md +0 -2307
- package/test/apps/ng14/node_modules/cypress/README.md +0 -25
- package/test/apps/ng14/node_modules/eslint/README.md +0 -308
- package/test/apps/ng14/node_modules/rxjs/README.md +0 -107
- package/test/apps/ng14/node_modules/ts-loader/README.md +0 -731
- package/test/apps/ng14/node_modules/ts-node/README.md +0 -302
- package/test/apps/ng14/node_modules/tslib/README.md +0 -164
- package/test/apps/ng14/node_modules/typescript/README.md +0 -104
- package/test/apps/ng14/node_modules/typescript-eslint-language-service/README.md +0 -77
- package/test/apps/ng14/node_modules/wait-on/README.md +0 -297
- package/test/apps/ng14/node_modules/webpack/README.md +0 -721
- package/test/apps/ng14/node_modules/webpack-cli/README.md +0 -147
- package/test/apps/ng14/node_modules/zone.js/README.md +0 -141
- package/test/apps/ng15/node_modules/@angular/animations/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/cli/README.md +0 -5
- package/test/apps/ng15/node_modules/@angular/common/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/compiler/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/core/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/forms/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/platform-browser/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/platform-browser-dynamic/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/platform-server/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/router/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular-devkit/build-angular/README.md +0 -20
- package/test/apps/ng15/node_modules/@angular-eslint/builder/README.md +0 -1
- package/test/apps/ng15/node_modules/@angular-eslint/eslint-plugin/README.md +0 -1
- package/test/apps/ng15/node_modules/@angular-eslint/eslint-plugin-template/README.md +0 -1
- package/test/apps/ng15/node_modules/@angular-eslint/schematics/README.md +0 -1
- package/test/apps/ng15/node_modules/@angular-eslint/template-parser/README.md +0 -1
- package/test/apps/ng15/node_modules/@ionic/angular/README.md +0 -74
- package/test/apps/ng15/node_modules/@nguniversal/builders/README.md +0 -76
- package/test/apps/ng15/node_modules/@nguniversal/express-engine/README.md +0 -118
- package/test/apps/ng15/node_modules/@types/express/README.md +0 -15
- package/test/apps/ng15/node_modules/@types/node/README.md +0 -16
- package/test/apps/ng15/node_modules/@typescript-eslint/eslint-plugin/README.md +0 -234
- package/test/apps/ng15/node_modules/@typescript-eslint/parser/README.md +0 -265
- package/test/apps/ng15/node_modules/concurrently/README.md +0 -315
- package/test/apps/ng15/node_modules/core-js/README.md +0 -2307
- package/test/apps/ng15/node_modules/cypress/README.md +0 -25
- package/test/apps/ng15/node_modules/eslint/README.md +0 -308
- package/test/apps/ng15/node_modules/rxjs/README.md +0 -107
- package/test/apps/ng15/node_modules/ts-loader/README.md +0 -731
- package/test/apps/ng15/node_modules/ts-node/README.md +0 -302
- package/test/apps/ng15/node_modules/tslib/README.md +0 -164
- package/test/apps/ng15/node_modules/typescript/README.md +0 -104
- package/test/apps/ng15/node_modules/typescript-eslint-language-service/README.md +0 -77
- package/test/apps/ng15/node_modules/wait-on/README.md +0 -297
- package/test/apps/ng15/node_modules/webpack/README.md +0 -721
- package/test/apps/ng15/node_modules/webpack-cli/README.md +0 -147
- package/test/apps/ng15/node_modules/zone.js/README.md +0 -141
- package/test/apps/ng16/node_modules/@angular/animations/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/cli/README.md +0 -5
- package/test/apps/ng16/node_modules/@angular/common/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/compiler/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/core/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/forms/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/platform-browser/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/platform-browser-dynamic/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/platform-server/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/router/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular-devkit/build-angular/README.md +0 -20
- package/test/apps/ng16/node_modules/@angular-eslint/builder/README.md +0 -1
- package/test/apps/ng16/node_modules/@angular-eslint/eslint-plugin/README.md +0 -84
- package/test/apps/ng16/node_modules/@angular-eslint/eslint-plugin-template/README.md +0 -93
- package/test/apps/ng16/node_modules/@angular-eslint/schematics/README.md +0 -1
- package/test/apps/ng16/node_modules/@angular-eslint/template-parser/README.md +0 -1
- package/test/apps/ng16/node_modules/@ionic/angular/README.md +0 -74
- package/test/apps/ng16/node_modules/@nguniversal/builders/README.md +0 -76
- package/test/apps/ng16/node_modules/@nguniversal/express-engine/README.md +0 -118
- package/test/apps/ng16/node_modules/@types/express/README.md +0 -15
- package/test/apps/ng16/node_modules/@types/node/README.md +0 -16
- package/test/apps/ng16/node_modules/@typescript-eslint/eslint-plugin/README.md +0 -234
- package/test/apps/ng16/node_modules/@typescript-eslint/parser/README.md +0 -265
- package/test/apps/ng16/node_modules/concurrently/README.md +0 -315
- package/test/apps/ng16/node_modules/core-js/README.md +0 -2307
- package/test/apps/ng16/node_modules/cypress/README.md +0 -25
- package/test/apps/ng16/node_modules/eslint/README.md +0 -308
- package/test/apps/ng16/node_modules/rxjs/README.md +0 -107
- package/test/apps/ng16/node_modules/ts-loader/README.md +0 -731
- package/test/apps/ng16/node_modules/ts-node/README.md +0 -302
- package/test/apps/ng16/node_modules/tslib/README.md +0 -164
- package/test/apps/ng16/node_modules/typescript/README.md +0 -49
- package/test/apps/ng16/node_modules/typescript-eslint-language-service/README.md +0 -77
- package/test/apps/ng16/node_modules/wait-on/README.md +0 -297
- package/test/apps/ng16/node_modules/webpack/README.md +0 -721
- package/test/apps/ng16/node_modules/webpack-cli/README.md +0 -147
- package/test/apps/ng16/node_modules/zone.js/README.md +0 -141
- package/test/apps/ng17/node_modules/@angular/animations/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/cli/README.md +0 -5
- package/test/apps/ng17/node_modules/@angular/common/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/compiler/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/core/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/forms/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/platform-browser/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/platform-browser-dynamic/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/platform-server/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/router/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular-devkit/build-angular/README.md +0 -24
- package/test/apps/ng17/node_modules/@angular-eslint/builder/README.md +0 -1
- package/test/apps/ng17/node_modules/@angular-eslint/eslint-plugin/README.md +0 -84
- package/test/apps/ng17/node_modules/@angular-eslint/eslint-plugin-template/README.md +0 -94
- package/test/apps/ng17/node_modules/@angular-eslint/schematics/README.md +0 -1
- package/test/apps/ng17/node_modules/@angular-eslint/template-parser/README.md +0 -1
- package/test/apps/ng17/node_modules/@ionic/angular/README.md +0 -74
- package/test/apps/ng17/node_modules/@types/express/README.md +0 -15
- package/test/apps/ng17/node_modules/@types/ws/README.md +0 -16
- package/test/apps/ng17/node_modules/@typescript-eslint/eslint-plugin/README.md +0 -12
- package/test/apps/ng17/node_modules/@typescript-eslint/parser/README.md +0 -12
- package/test/apps/ng17/node_modules/concurrently/README.md +0 -315
- package/test/apps/ng17/node_modules/core-js/README.md +0 -95
- package/test/apps/ng17/node_modules/cypress/README.md +0 -25
- package/test/apps/ng17/node_modules/eslint/README.md +0 -308
- package/test/apps/ng17/node_modules/rxjs/README.md +0 -107
- package/test/apps/ng17/node_modules/ts-loader/README.md +0 -731
- package/test/apps/ng17/node_modules/ts-node/README.md +0 -302
- package/test/apps/ng17/node_modules/tslib/README.md +0 -164
- package/test/apps/ng17/node_modules/typescript/README.md +0 -51
- package/test/apps/ng17/node_modules/typescript-eslint-language-service/README.md +0 -77
- package/test/apps/ng17/node_modules/wait-on/README.md +0 -297
- package/test/apps/ng17/node_modules/webpack/README.md +0 -721
- package/test/apps/ng17/node_modules/webpack-cli/README.md +0 -147
- package/test/apps/ng17/node_modules/zone.js/README.md +0 -141
|
@@ -1,74 +0,0 @@
|
|
|
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`.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Installation
|
|
2
|
-
> `npm install --save @types/express`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for express (http://expressjs.com).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express.
|
|
9
|
-
|
|
10
|
-
### Additional Details
|
|
11
|
-
* Last updated: Tue, 07 Nov 2023 03:09:36 GMT
|
|
12
|
-
* Dependencies: [@types/body-parser](https://npmjs.com/package/@types/body-parser), [@types/express-serve-static-core](https://npmjs.com/package/@types/express-serve-static-core), [@types/qs](https://npmjs.com/package/@types/qs), [@types/serve-static](https://npmjs.com/package/@types/serve-static)
|
|
13
|
-
|
|
14
|
-
# Credits
|
|
15
|
-
These definitions were written by [Boris Yankov](https://github.com/borisyankov), [China Medical University Hospital](https://github.com/CMUH), [Puneet Arora](https://github.com/puneetar), and [Dylan Frankland](https://github.com/dfrankland).
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Installation
|
|
2
|
-
> `npm install --save @types/ws`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for ws (https://github.com/websockets/ws).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ws.
|
|
9
|
-
|
|
10
|
-
### Additional Details
|
|
11
|
-
* Last updated: Fri, 11 Mar 2022 23:31:44 GMT
|
|
12
|
-
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
|
13
|
-
* Global values: none
|
|
14
|
-
|
|
15
|
-
# Credits
|
|
16
|
-
These definitions were written by [Paul Loyd](https://github.com/loyd), [Margus Lamp](https://github.com/mlamp), [Philippe D'Alva](https://github.com/TitaneBoy), [reduckted](https://github.com/reduckted), [teidesu](https://github.com/teidesu), [Bartosz Wojtkowiak](https://github.com/wojtkowiak), [Kyle Hensel](https://github.com/k-yle), and [Samuel Skeen](https://github.com/cwadrupldijjit).
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# `@typescript-eslint/eslint-plugin`
|
|
2
|
-
|
|
3
|
-
An ESLint plugin which provides lint rules for TypeScript codebases.
|
|
4
|
-
|
|
5
|
-
[](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin)
|
|
6
|
-
[](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin)
|
|
7
|
-
|
|
8
|
-
👉 See **https://typescript-eslint.io/getting-started** for our Getting Started docs.
|
|
9
|
-
|
|
10
|
-
> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code.
|
|
11
|
-
|
|
12
|
-
<!-- Local path for docs: docs/packages/ESLint_Plugin.mdx -->
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# `@typescript-eslint/parser`
|
|
2
|
-
|
|
3
|
-
> An ESLint parser which leverages <a href="https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/typescript-estree">TypeScript ESTree</a> to allow for ESLint to lint TypeScript source code.
|
|
4
|
-
|
|
5
|
-
[](https://www.npmjs.com/package/@typescript-eslint/parser)
|
|
6
|
-
[](https://www.npmjs.com/package/@typescript-eslint/parser)
|
|
7
|
-
|
|
8
|
-
👉 See **https://typescript-eslint.io/packages/parser** for documentation on this package.
|
|
9
|
-
|
|
10
|
-
> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code.
|
|
11
|
-
|
|
12
|
-
<!-- Local path for docs: docs/packages/Parser.mdx -->
|
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
# Concurrently
|
|
2
|
-
|
|
3
|
-
[](https://github.com/open-cli-tools/concurrently/actions?workflow=Tests)
|
|
4
|
-
[](https://coveralls.io/github/open-cli-tools/concurrently?branch=master)
|
|
5
|
-
|
|
6
|
-
[](https://www.npmjs.com/package/concurrently)
|
|
7
|
-
|
|
8
|
-
Run multiple commands concurrently.
|
|
9
|
-
Like `npm run watch-js & npm run watch-less` but better.
|
|
10
|
-
|
|
11
|
-

|
|
12
|
-
|
|
13
|
-
**Table of contents**
|
|
14
|
-
- [Concurrently](#concurrently)
|
|
15
|
-
- [Why](#why)
|
|
16
|
-
- [Install](#install)
|
|
17
|
-
- [Usage](#usage)
|
|
18
|
-
- [Programmatic Usage](#programmatic-usage)
|
|
19
|
-
- [`concurrently(commands[, options])`](#concurrentlycommands-options)
|
|
20
|
-
- [FAQ](#faq)
|
|
21
|
-
|
|
22
|
-
## Why
|
|
23
|
-
|
|
24
|
-
I like [task automation with npm](https://github.com/substack/blog/blob/master/npm_run.markdown)
|
|
25
|
-
but the usual way to run multiple commands concurrently is
|
|
26
|
-
`npm run watch-js & npm run watch-css`. That's fine but it's hard to keep
|
|
27
|
-
on track of different outputs. Also if one process fails, others still keep running
|
|
28
|
-
and you won't even notice the difference.
|
|
29
|
-
|
|
30
|
-
Another option would be to just run all commands in separate terminals. I got
|
|
31
|
-
tired of opening terminals and made **concurrently**.
|
|
32
|
-
|
|
33
|
-
**Features:**
|
|
34
|
-
|
|
35
|
-
* Cross platform (including Windows)
|
|
36
|
-
* Output is easy to follow with prefixes
|
|
37
|
-
* With `--kill-others` switch, all commands are killed if one dies
|
|
38
|
-
* Spawns commands with [spawn-command](https://github.com/mmalecki/spawn-command)
|
|
39
|
-
|
|
40
|
-
## Install
|
|
41
|
-
|
|
42
|
-
The tool is written in Node.js, but you can use it to run **any** commands.
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
npm install -g concurrently
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
or if you are using it from npm scripts:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
npm install concurrently --save
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## Usage
|
|
55
|
-
|
|
56
|
-
Remember to surround separate commands with quotes:
|
|
57
|
-
```bash
|
|
58
|
-
concurrently "command1 arg" "command2 arg"
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Otherwise **concurrently** would try to run 4 separate commands:
|
|
62
|
-
`command1`, `arg`, `command2`, `arg`.
|
|
63
|
-
|
|
64
|
-
In package.json, escape quotes:
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
"start": "concurrently \"command1 arg\" \"command2 arg\""
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
NPM run commands can be shortened:
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
concurrently "npm:watch-js" "npm:watch-css" "npm:watch-node"
|
|
74
|
-
|
|
75
|
-
# Equivalent to:
|
|
76
|
-
concurrently -n watch-js,watch-css,watch-node "npm run watch-js" "npm run watch-css" "npm run watch-node"
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
NPM shortened commands also support wildcards. Given the following scripts in
|
|
80
|
-
package.json:
|
|
81
|
-
|
|
82
|
-
```javascript
|
|
83
|
-
{
|
|
84
|
-
//...
|
|
85
|
-
"scripts": {
|
|
86
|
-
// ...
|
|
87
|
-
"watch-js": "...",
|
|
88
|
-
"watch-css": "...",
|
|
89
|
-
"watch-node": "...",
|
|
90
|
-
// ...
|
|
91
|
-
},
|
|
92
|
-
// ...
|
|
93
|
-
}
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
```bash
|
|
97
|
-
concurrently "npm:watch-*"
|
|
98
|
-
|
|
99
|
-
# Equivalent to:
|
|
100
|
-
concurrently -n js,css,node "npm run watch-js" "npm run watch-css" "npm run watch-node"
|
|
101
|
-
|
|
102
|
-
# Any name provided for the wildcard command will be used as a prefix to the wildcard
|
|
103
|
-
# part of the script name:
|
|
104
|
-
concurrently -n w: npm:watch-*
|
|
105
|
-
|
|
106
|
-
# Equivalent to:
|
|
107
|
-
concurrently -n w:js,w:css,w:node "npm run watch-js" "npm run watch-css" "npm run watch-node"
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
Good frontend one-liner example [here](https://github.com/kimmobrunfeldt/dont-copy-paste-this-frontend-template/blob/5cd2bde719654941bdfc0a42c6f1b8e69ae79980/package.json#L9).
|
|
111
|
-
|
|
112
|
-
Help:
|
|
113
|
-
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
concurrently [options] <command ...>
|
|
117
|
-
|
|
118
|
-
General
|
|
119
|
-
-m, --max-processes How many processes should run at once.
|
|
120
|
-
New processes only spawn after all restart tries of a
|
|
121
|
-
process. [number]
|
|
122
|
-
-n, --names List of custom names to be used in prefix template.
|
|
123
|
-
Example names: "main,browser,server" [string]
|
|
124
|
-
--name-separator The character to split <names> on. Example usage:
|
|
125
|
-
concurrently -n "styles|scripts|server" --name-separator
|
|
126
|
-
"|" [default: ","]
|
|
127
|
-
-r, --raw Output only raw output of processes, disables
|
|
128
|
-
prettifying and concurrently coloring. [boolean]
|
|
129
|
-
-s, --success Return exit code of zero or one based on the success or
|
|
130
|
-
failure of the "first" child to terminate, the "last
|
|
131
|
-
child", or succeed only if "all" child processes
|
|
132
|
-
succeed.
|
|
133
|
-
[choices: "first", "last", "all"] [default: "all"]
|
|
134
|
-
--no-color Disables colors from logging [boolean]
|
|
135
|
-
--hide Comma-separated list of processes to hide the output.
|
|
136
|
-
The processes can be identified by their name or index.
|
|
137
|
-
[string] [default: ""]
|
|
138
|
-
|
|
139
|
-
Prefix styling
|
|
140
|
-
-p, --prefix Prefix used in logging for each process.
|
|
141
|
-
Possible values: index, pid, time, command, name,
|
|
142
|
-
none, or a template. Example template: "{time}-{pid}"
|
|
143
|
-
[string] [default: index or name (when --names is set)]
|
|
144
|
-
-c, --prefix-colors Comma-separated list of chalk colors to use on
|
|
145
|
-
prefixes. If there are more commands than colors, the
|
|
146
|
-
last color will be repeated.
|
|
147
|
-
- Available modifiers: reset, bold, dim, italic,
|
|
148
|
-
underline, inverse, hidden, strikethrough
|
|
149
|
-
- Available colors: black, red, green, yellow, blue,
|
|
150
|
-
magenta, cyan, white, gray, or any hex values for
|
|
151
|
-
colors, eg #23de43
|
|
152
|
-
- Available background colors: bgBlack, bgRed,
|
|
153
|
-
bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite
|
|
154
|
-
See https://www.npmjs.com/package/chalk for more
|
|
155
|
-
information. [string] [default: "reset"]
|
|
156
|
-
-l, --prefix-length Limit how many characters of the command is displayed
|
|
157
|
-
in prefix. The option can be used to shorten the
|
|
158
|
-
prefix when it is set to "command"
|
|
159
|
-
[number] [default: 10]
|
|
160
|
-
-t, --timestamp-format Specify the timestamp in moment/date-fns format.
|
|
161
|
-
[string] [default: "yyyy-MM-dd HH:mm:ss.SSS"]
|
|
162
|
-
|
|
163
|
-
Input handling
|
|
164
|
-
-i, --handle-input Whether input should be forwarded to the child
|
|
165
|
-
processes. See examples for more information.[boolean]
|
|
166
|
-
--default-input-target Identifier for child process to which input on stdin
|
|
167
|
-
should be sent if not specified at start of input.
|
|
168
|
-
Can be either the index or the name of the process.
|
|
169
|
-
[default: 0]
|
|
170
|
-
|
|
171
|
-
Killing other processes
|
|
172
|
-
-k, --kill-others kill other processes if one exits or dies [boolean]
|
|
173
|
-
--kill-others-on-fail kill other processes if one exits with non zero status
|
|
174
|
-
code [boolean]
|
|
175
|
-
|
|
176
|
-
Restarting
|
|
177
|
-
--restart-tries How many times a process that died should restart.
|
|
178
|
-
Negative numbers will make the process restart forever.
|
|
179
|
-
[number] [default: 0]
|
|
180
|
-
--restart-after Delay time to respawn the process, in milliseconds.
|
|
181
|
-
[number] [default: 0]
|
|
182
|
-
|
|
183
|
-
Options:
|
|
184
|
-
-h, --help Show help [boolean]
|
|
185
|
-
-v, -V, --version Show version number [boolean]
|
|
186
|
-
|
|
187
|
-
Examples:
|
|
188
|
-
|
|
189
|
-
- Output nothing more than stdout+stderr of child processes
|
|
190
|
-
|
|
191
|
-
$ concurrently --raw "npm run watch-less" "npm run watch-js"
|
|
192
|
-
|
|
193
|
-
- Normal output but without colors e.g. when logging to file
|
|
194
|
-
|
|
195
|
-
$ concurrently --no-color "grunt watch" "http-server" > log
|
|
196
|
-
|
|
197
|
-
- Custom prefix
|
|
198
|
-
|
|
199
|
-
$ concurrently --prefix "{time}-{pid}" "npm run watch" "http-server"
|
|
200
|
-
|
|
201
|
-
- Custom names and colored prefixes
|
|
202
|
-
|
|
203
|
-
$ concurrently --names "HTTP,WATCH" -c "bgBlue.bold,bgMagenta.bold"
|
|
204
|
-
"http-server" "npm run watch"
|
|
205
|
-
|
|
206
|
-
- Configuring via environment variables with CONCURRENTLY_ prefix
|
|
207
|
-
|
|
208
|
-
$ CONCURRENTLY_RAW=true CONCURRENTLY_KILL_OTHERS=true concurrently "echo hello" "echo world"
|
|
209
|
-
|
|
210
|
-
- Send input to default
|
|
211
|
-
|
|
212
|
-
$ concurrently --handle-input "nodemon" "npm run watch-js"
|
|
213
|
-
rs # Sends rs command to nodemon process
|
|
214
|
-
|
|
215
|
-
- Send input to specific child identified by index
|
|
216
|
-
|
|
217
|
-
$ concurrently --handle-input "npm run watch-js" nodemon
|
|
218
|
-
1:rs
|
|
219
|
-
|
|
220
|
-
- Send input to specific child identified by name
|
|
221
|
-
|
|
222
|
-
$ concurrently --handle-input -n js,srv "npm run watch-js" nodemon
|
|
223
|
-
srv:rs
|
|
224
|
-
|
|
225
|
-
- Shortened NPM run commands
|
|
226
|
-
|
|
227
|
-
$ concurrently npm:watch-node npm:watch-js npm:watch-css
|
|
228
|
-
|
|
229
|
-
- Shortened NPM run command with wildcard (make sure to wrap it in quotes!)
|
|
230
|
-
|
|
231
|
-
$ concurrently "npm:watch-*"
|
|
232
|
-
|
|
233
|
-
For more details, visit https://github.com/open-cli-tools/concurrently
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
## Programmatic Usage
|
|
237
|
-
concurrently can be used programmatically by using the API documented below:
|
|
238
|
-
|
|
239
|
-
### `concurrently(commands[, options])`
|
|
240
|
-
|
|
241
|
-
- `commands`: an array of either strings (containing the commands to run) or objects
|
|
242
|
-
with the shape `{ command, name, prefixColor, env, cwd }`.
|
|
243
|
-
|
|
244
|
-
- `options` (optional): an object containing any of the below:
|
|
245
|
-
- `cwd`: the working directory to be used by all commands. Can be overriden per command.
|
|
246
|
-
Default: `process.cwd()`.
|
|
247
|
-
- `defaultInputTarget`: the default input target when reading from `inputStream`.
|
|
248
|
-
Default: `0`.
|
|
249
|
-
- `handleInput`: when `true`, reads input from `process.stdin`.
|
|
250
|
-
- `inputStream`: a [`Readable` stream](https://nodejs.org/dist/latest-v10.x/docs/api/stream.html#stream_readable_streams)
|
|
251
|
-
to read the input from. Should only be used in the rare instance you would like to stream anything other than `process.stdin`. Overrides `handleInput`.
|
|
252
|
-
- `pauseInputStreamOnFinish`: by default, pauses the input stream (`process.stdin` when `handleInput` is enabled, or `inputStream` if provided) when all of the processes have finished. If you need to read from the input stream after `concurrently` has finished, set this to `false`. ([#252](https://github.com/kimmobrunfeldt/concurrently/issues/252)).
|
|
253
|
-
- `killOthers`: an array of exitting conditions that will cause a process to kill others.
|
|
254
|
-
Can contain any of `success` or `failure`.
|
|
255
|
-
- `maxProcesses`: how many processes should run at once.
|
|
256
|
-
- `outputStream`: a [`Writable` stream](https://nodejs.org/dist/latest-v10.x/docs/api/stream.html#stream_writable_streams)
|
|
257
|
-
to write logs to. Default: `process.stdout`.
|
|
258
|
-
- `prefix`: the prefix type to use when logging processes output.
|
|
259
|
-
Possible values: `index`, `pid`, `time`, `command`, `name`, `none`, or a template (eg `[{time} process: {pid}]`).
|
|
260
|
-
Default: the name of the process, or its index if no name is set.
|
|
261
|
-
- `prefixColors`: a list of colors as supported by [chalk](https://www.npmjs.com/package/chalk).
|
|
262
|
-
If concurrently would run more commands than there are colors, the last color is repeated.
|
|
263
|
-
Prefix colors specified per-command take precedence over this list.
|
|
264
|
-
- `prefixLength`: how many characters to show when prefixing with `command`. Default: `10`
|
|
265
|
-
- `raw`: whether raw mode should be used, meaning strictly process output will
|
|
266
|
-
be logged, without any prefixes, colouring or extra stuff.
|
|
267
|
-
- `successCondition`: the condition to consider the run was successful.
|
|
268
|
-
If `first`, only the first process to exit will make up the success of the run; if `last`, the last process that exits will determine whether the run succeeds.
|
|
269
|
-
Anything else means all processes should exit successfully.
|
|
270
|
-
- `restartTries`: how many attempts to restart a process that dies will be made. Default: `0`.
|
|
271
|
-
- `restartDelay`: how many milliseconds to wait between process restarts. Default: `0`.
|
|
272
|
-
- `timestampFormat`: a [date-fns format](https://date-fns.org/v2.0.1/docs/format)
|
|
273
|
-
to use when prefixing with `time`. Default: `yyyy-MM-dd HH:mm:ss.ZZZ`
|
|
274
|
-
|
|
275
|
-
> Returns: a `Promise` that resolves if the run was successful (according to `successCondition` option),
|
|
276
|
-
> or rejects, containing an array of objects with information for each command that has been run, in the order
|
|
277
|
-
> that the commands terminated. The objects have the shape `{ command, index, exitCode, killed }`, where `command` is the object
|
|
278
|
-
> passed in the `commands` array, `index` its index there and `killed` indicates if the process was killed as a result of
|
|
279
|
-
> `killOthers`. Default values (empty strings or objects) are returned for the fields that were not specified.
|
|
280
|
-
|
|
281
|
-
Example:
|
|
282
|
-
|
|
283
|
-
```js
|
|
284
|
-
const concurrently = require('concurrently');
|
|
285
|
-
concurrently([
|
|
286
|
-
'npm:watch-*',
|
|
287
|
-
{ command: 'nodemon', name: 'server' },
|
|
288
|
-
{ command: 'deploy', name: 'deploy', env: { PUBLIC_KEY: '...' } },
|
|
289
|
-
{ command: 'watch', name: 'watch', cwd: path.resolve(__dirname, 'scripts/watchers')}
|
|
290
|
-
], {
|
|
291
|
-
prefix: 'name',
|
|
292
|
-
killOthers: ['failure', 'success'],
|
|
293
|
-
restartTries: 3,
|
|
294
|
-
cwd: path.resolve(__dirname, 'scripts'),
|
|
295
|
-
}).then(success, failure);
|
|
296
|
-
```
|
|
297
|
-
|
|
298
|
-
## FAQ
|
|
299
|
-
|
|
300
|
-
* Process exited with code *null*?
|
|
301
|
-
|
|
302
|
-
From [Node child_process documentation](http://nodejs.org/api/child_process.html#child_process_event_exit), `exit` event:
|
|
303
|
-
|
|
304
|
-
> This event is emitted after the child process ends. If the process
|
|
305
|
-
> terminated normally, code is the final exit code of the process,
|
|
306
|
-
> otherwise null. If the process terminated due to receipt of a signal,
|
|
307
|
-
> signal is the string name of the signal, otherwise null.
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
So *null* means the process didn't terminate normally. This will make **concurrent**
|
|
311
|
-
to return non-zero exit code too.
|
|
312
|
-
|
|
313
|
-
* Does this work with the npm-replacements [yarn](https://github.com/yarnpkg/yarn) or [pnpm](https://pnpm.js.org/)?
|
|
314
|
-
|
|
315
|
-
Yes! In all examples above, you may replace "`npm`" with "`yarn`" or "`pnpm`".
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
<div align="center">
|
|
4
|
-
|
|
5
|
-
[](https://opencollective.com/core-js) [](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md) [](https://www.npmjs.com/package/core-js) [](https://npm-stat.com/charts.html?package=core-js&package=core-js-pure&package=core-js-compat&from=2014-11-18)
|
|
6
|
-
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
**I highly recommend reading this: [So, what's next?](https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md)**
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
> Modular standard library for JavaScript. Includes polyfills for [ECMAScript up to 2023](https://github.com/zloirock/core-js#ecmascript): [promises](https://github.com/zloirock/core-js#ecmascript-promise), [symbols](https://github.com/zloirock/core-js#ecmascript-symbol), [collections](https://github.com/zloirock/core-js#ecmascript-collections), iterators, [typed arrays](https://github.com/zloirock/core-js#ecmascript-typed-arrays), many other features, [ECMAScript proposals](https://github.com/zloirock/core-js#ecmascript-proposals), [some cross-platform WHATWG / W3C features and proposals](#web-standards) like [`URL`](https://github.com/zloirock/core-js#url-and-urlsearchparams). You can load only required features or use it without global namespace pollution.
|
|
13
|
-
|
|
14
|
-
## Raising funds
|
|
15
|
-
|
|
16
|
-
`core-js` isn't backed by a company, so the future of this project depends on you. Become a sponsor or a backer if you are interested in `core-js`: [**Open Collective**](https://opencollective.com/core-js), [**Patreon**](https://patreon.com/zloirock), [**Boosty**](https://boosty.to/zloirock), **Bitcoin ( bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz )**, [**Alipay**](https://user-images.githubusercontent.com/2213682/219464783-c17ad329-17ce-4795-82a7-f609493345ed.png).
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
<a href="https://opencollective.com/core-js/sponsor/0/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/0/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/1/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/1/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/2/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/2/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/3/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/3/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/4/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/4/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/5/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/5/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/6/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/6/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/7/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/7/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/8/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/8/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/9/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/9/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/10/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/10/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/11/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/11/avatar.svg"></a>
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
<a href="https://opencollective.com/core-js#backers" target="_blank"><img src="https://opencollective.com/core-js/backers.svg?width=890"></a>
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
[*Example of usage*](https://tinyurl.com/2mknex43):
|
|
29
|
-
```js
|
|
30
|
-
import 'core-js/actual';
|
|
31
|
-
|
|
32
|
-
Promise.resolve(42).then(it => console.log(it)); // => 42
|
|
33
|
-
|
|
34
|
-
Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]
|
|
35
|
-
|
|
36
|
-
[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2]
|
|
37
|
-
|
|
38
|
-
(function * (i) { while (true) yield i++; })(1)
|
|
39
|
-
.drop(1).take(5)
|
|
40
|
-
.filter(it => it % 2)
|
|
41
|
-
.map(it => it ** 2)
|
|
42
|
-
.toArray(); // => [9, 25]
|
|
43
|
-
|
|
44
|
-
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
*You can load only required features*:
|
|
48
|
-
```js
|
|
49
|
-
import 'core-js/actual/promise';
|
|
50
|
-
import 'core-js/actual/set';
|
|
51
|
-
import 'core-js/actual/iterator';
|
|
52
|
-
import 'core-js/actual/array/from';
|
|
53
|
-
import 'core-js/actual/array/flat-map';
|
|
54
|
-
import 'core-js/actual/structured-clone';
|
|
55
|
-
|
|
56
|
-
Promise.resolve(42).then(it => console.log(it)); // => 42
|
|
57
|
-
|
|
58
|
-
Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]
|
|
59
|
-
|
|
60
|
-
[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2]
|
|
61
|
-
|
|
62
|
-
(function * (i) { while (true) yield i++; })(1)
|
|
63
|
-
.drop(1).take(5)
|
|
64
|
-
.filter(it => it % 2)
|
|
65
|
-
.map(it => it ** 2)
|
|
66
|
-
.toArray(); // => [9, 25]
|
|
67
|
-
|
|
68
|
-
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
*Or use it without global namespace pollution*:
|
|
72
|
-
```js
|
|
73
|
-
import Promise from 'core-js-pure/actual/promise';
|
|
74
|
-
import Set from 'core-js-pure/actual/set';
|
|
75
|
-
import Iterator from 'core-js-pure/actual/iterator';
|
|
76
|
-
import from from 'core-js-pure/actual/array/from';
|
|
77
|
-
import flatMap from 'core-js-pure/actual/array/flat-map';
|
|
78
|
-
import structuredClone from 'core-js-pure/actual/structured-clone';
|
|
79
|
-
|
|
80
|
-
Promise.resolve(42).then(it => console.log(it)); // => 42
|
|
81
|
-
|
|
82
|
-
from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]
|
|
83
|
-
|
|
84
|
-
flatMap([1, 2], it => [it, it]); // => [1, 1, 2, 2]
|
|
85
|
-
|
|
86
|
-
Iterator.from(function * (i) { while (true) yield i++; }(1))
|
|
87
|
-
.drop(1).take(5)
|
|
88
|
-
.filter(it => it % 2)
|
|
89
|
-
.map(it => it ** 2)
|
|
90
|
-
.toArray(); // => [9, 25]
|
|
91
|
-
|
|
92
|
-
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
**It's a global version (first 2 examples), for more info see [`core-js` documentation](https://github.com/zloirock/core-js/blob/master/README.md).**
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# Cypress
|
|
2
|
-
|
|
3
|
-
Fast, easy and reliable testing for anything that runs in a browser.
|
|
4
|
-
|
|
5
|
-
## What is this?
|
|
6
|
-
|
|
7
|
-
[Cypress](https://www.cypress.io/) comes packaged as an `npm` module, which is all you need to get started testing.
|
|
8
|
-
|
|
9
|
-
After installing you'll be able to:
|
|
10
|
-
|
|
11
|
-
- Open Cypress from the CLI
|
|
12
|
-
- Run Cypress from the CLI
|
|
13
|
-
- `require` Cypress as a module
|
|
14
|
-
|
|
15
|
-
## Install
|
|
16
|
-
|
|
17
|
-
Please check our [system requirements](https://on.cypress.io/installing-cypress).
|
|
18
|
-
|
|
19
|
-
```sh
|
|
20
|
-
npm install --save-dev cypress
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Documentation
|
|
24
|
-
|
|
25
|
-
Please [visit our documentation](https://on.cypress.io/cli) for a full list of commands and examples.
|