use systemJS to create bundles of the specified glob passed
- Source:
(require("tasks/javascript/bundle"))(options) → {function}
taskFactory
Parameters:
Name |
Type |
Description |
options |
Object
|
|
- Source:
Returns:
-
Type
-
function
Methods
(inner) bundle(sources) → {Promise}
Parameters:
Name |
Type |
Description |
sources |
String
|
glob |
- Source:
Returns:
-
Type
-
Promise
(inner) bundleHasName(source) → {boolean}
Parameters:
Name |
Type |
Description |
source |
String
|
|
- Source:
Returns:
-
Type
-
boolean
(inner) bundleIsSelfExecuting(source) → {boolean}
Parameters:
Name |
Type |
Description |
source |
String
|
|
- Source:
Returns:
-
Type
-
boolean
executes the system JS builder for a module of the specified format
umd, amd, cjs or es6 for consumption in different environments.
Parameters:
Name |
Type |
Description |
expression |
String
|
|
destination |
String
|
|
bundleMethod |
String
|
|
builderOptions |
Object
|
|
- Source:
Returns:
-
Type
-
Promise
(inner) createBundles(source) → {Promise}
triggers promised builds of module for each of the specified formats in the bundles in
the bundle config or just for default module type if no config exists.
Parameters:
Name |
Type |
Description |
source |
String
|
file path |
- Source:
Returns:
-
Type
-
Promise
(inner) getBuilderOptions(source, format) → {Object}
Parameters:
Name |
Type |
Description |
source |
String
|
|
format |
String
|
|
- Source:
Returns:
-
Type
-
Object
Parameters:
Name |
Type |
Description |
source |
String
|
|
- Source:
Returns:
-
Type
-
Array
(inner) getDestinationPath(destination, format) → {String}
return the path for the module depending on, if any format is specified.
Parameters:
Name |
Type |
Description |
destination |
String
|
|
format |
String
|
|
- Source:
Returns:
-
Type
-
String
(inner) logCreatedMessage(source, destination, format) → {Boolean}
get message about created bundle
Parameters:
Name |
Type |
Description |
source |
String
|
|
destination |
String
|
|
format |
String
|
|
- Source:
Returns:
-
Type
-
Boolean
(inner) setApplicationConfig(config) → {Object}
Parameters:
Name |
Type |
Description |
config |
Object
|
|
- Source:
Returns:
-
Type
-
Object
(inner) setBuilderConfig(config)
Parameters:
Name |
Type |
Description |
config |
|
|
- Source: