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
Copy file name to clipboardExpand all lines: README.md
+7-12Lines changed: 7 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,34 +4,29 @@ This package serves as the master build process for transpiling and bundling the
4
4
5
5
Individual library builds are run from the respective library packages. Combined builds are meant for CDN distribution and are run from the [CreateJS package](https://github.com/createjs/createjs).
6
6
7
-
## Installation
8
-
9
-
From the library package, install:
10
-
###### `npm install @createjs/build`
11
-
12
7
## Usage
13
8
14
9
Tasks within this package are run via npm scripts in the library packages. Here is a summary of tasks that this package can run:
15
10
16
-
###### `npm run build -- [--production] [--combined] [--format=global,module,common]`
11
+
###### `npm run build -- [--production] [--combined] [--format=cjs,iife]`
17
12
18
13
- transpile and bundle ES2015+ source to ES5 via Rollup & Babel
19
-
-`--production`minified builds
14
+
-`--production`iife build is minified
20
15
-`--combined` from CreateJS package for combined builds
21
-
-`--format` specify which bundle formats to export, defaults to all
16
+
-`--format` specify which Rollup bundle formats to export, defaults to all
22
17
23
-
###### `npm run plugins -- [--production] [--format=global,common] [--files=FileName]`
18
+
###### `npm run plugins -- [--production] [--format=cjs,iife] [--files=FileName]`
24
19
25
20
- transpile ES2015+ plugin source to ES5 via Rollup & Babel
26
-
-`--production`minified output
21
+
-`--production`iife build is minified
27
22
-`--format` specify which bundle formats to export, 'module' is disabled
28
-
-`--files` only transpile specific files (sans file extension)
23
+
-`--files` only transpile specific files (no file extension)
29
24
30
25
###### `npm run dev`
31
26
32
27
- transpile and bundle ES2015+ source to ES5 via Rollup & Babel
33
28
- non-minified, includes sourcemaps
34
-
- only bundles 'global' module as that is what is imported by examples
29
+
- only bundles iife module as that is what is imported by examples
35
30
- starts a browser-sync instance for testing examples and tutorials
36
31
- watches source files for changes, re-compiling and reloading browser
0 commit comments