You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`npm run build` - cleans and compiles all targets
47
-
*`npm test` - executes tests against built targets
45
+
We use [yarn](https://yarnpkg.com/) to install dependencies and run scrips.
48
46
49
-
These npm scripts accept argument lists of targets × modules:
47
+
*`yarn clean` - cleans targets
48
+
*`yarn build` - cleans and compiles all targets
49
+
*`yarn test` - executes tests against built targets
50
+
51
+
These scripts accept argument lists of targets × modules:
50
52
51
53
* Available `targets` are `es5`, `es2015`, `esnext`, and `all` (default: `all`)
52
54
* Available `modules` are `cjs`, `esm`, `umd`, and `all` (default: `all`)
53
55
54
56
Examples:
55
57
56
-
*`npm run build` -- builds all ES targets in all module formats
57
-
*`npm run build -- -t es5 -m all` -- builds the ES5 target in all module formats
58
-
*`npm run build -- -t all -m cjs` -- builds all ES targets in the CommonJS module format
59
-
*`npm run build -- --targets es5 es2015 -m all` -- builds the ES5 and ES2015 targets in all module formats
60
-
*`npm run build -- -t es5 --modules cjs esm` -- builds the ES5 target in CommonJS and ESModules module formats
58
+
*`yarn build` -- builds all ES targets in all module formats
59
+
*`yarn build -t es5 -m all` -- builds the ES5 target in all module formats
60
+
*`yarn build -t all -m cjs` -- builds all ES targets in the CommonJS module format
61
+
*`yarn build --targets es5 es2015 -m all` -- builds the ES5 and ES2015 targets in all module formats
62
+
*`yarn build -t es5 --modules cjs esm` -- builds the ES5 target in CommonJS and ESModules module formats
61
63
62
64
This argument configuration also applies to `clean` and `test` scripts.
63
65
64
-
*`npm run deploy`
66
+
*`yarn deploy`
65
67
66
68
Uses [lerna](https://github.com/lerna/lerna) to publish each build target to npm with [conventional](https://conventionalcommits.org/)[changelogs](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-cli).
67
69
@@ -103,7 +105,7 @@ Uses [lerna](https://github.com/lerna/lerna) to publish each build target to npm
0 commit comments