Extensible, multiple entries supporting, tasks based wrapper of gulp, webpack, rollup, etc.
- create-lila-app: create a lila application
- lila-bin: lila command line
- lila-core: lila core library
- lila-tasks: lila built-in tasks
- lila-webpack: webpack plugin for lila
- lila-webpack-config: built-in webpack config generator for webpack plugin
- lila-webpack-lib: webpack plugin for building a library
- lila-webpack-lib-config: built-in webpack config generator for webpack-lib plugin
- lila-rollup: rollup plugin for building a library
- lila-rollup-config: built-in rollup config generator for rollup plugin
You can install create-lila-app to create a lila application.
However, you can customize your own project:
- Install lila-bin. If installed globally, you can run lila commands directly in terminal, and if installed locally, you can run lila commands directly by
npm run
. - Install lila-core and lila-tasks locally. You should not import
lila-core
directly, likeimport lila from 'lila-core'
, butexport default lila => { ... }
inlila.js
(lila.init.js
in windows) or plugin. - Choose appropriate plugins.
- If build a project, it's recommended to choose lila-webpack and lila-webpack-config.
- If build a library, it's recommended to choose lila-rollup and lila-rollup-config. Alternatively, you can also choose lila-webpack-lib and lila-webpack-lib-config.
- Configure init file
lila.js
(lila.init.js
in windows).
|-- /
|-- src/
|-- dev/
|-- build/
src
: where to place source codes, likehtml, css, less, js, ts, ...
dev
: a temporary directory generated while developingbuild
: where production bundles will be placed
If you want custom names, you can modify them by lila.setSettings({src, dev, build})
.
export default lila => {
// do everything you want with lila api
};
In lila.js
(lila.init.js
in windows):
import plugin from 'your-lila-plugin';
export default lila => {
plugin(lila);
...
};
- In windows, you have to use
lila.init.js
instead, andlila.js
will not work. - In windows, you must run
lila
command under the same directory withnode_modules
.