Starts a webpack dev server with the config for the given widget.
Serves the samples folder, an easy to use component demo.
See build.js for implementation.
Build a package to CommonJS using babel.
Uses rollup to bundle the modules in a ES Module compatible output.
Builds a component with webpack and outputs to the dist
folder.
This command does a webpack build by first cd
into the package directory.
It then executes the following command:
webpack --config `(path to webpack.prod.babel.js)` --env.package=`(package name)`
Runs the buildES and buildCommonJS commands to build a package to ES Modules and CommonJS.
Builds all component and module packages. Components are defined as not starting with "widget", nor are they private modules.
The components are "transpiled" with babel and have commonJS and ES5 outputs.
Executes webpackBuild
command.
Builds one or all components for ES Modules.
Executes buildES
command.
Bundles the package into a single distributable "dist" subfolder.
It executes the dist.js command on the given package.
Which executes the webpackBuild
command.
Builds the dependency chain for each module by utilizing the detective-es6 tool.
Implementation in the deps.js file.
Runs a webpack build and transpile on all packages that start with '@webex/widget'.
- Executes
webpackBuild
command. - Executes
transpile
command.
Publishing the different packages to NPM.
Runs the commands necessary to publish all of the widgets and components to NPM
build:components
build:widgets
build:packagejson
publish components
Not to be confused with publish:components
, publish components
does the actual npm publishing.
It looks through all the packages, excludes demos and private packages, and issues the following command for each of them:
npm publish --access public
Implemented in scripts/utils/publish.js