Extensible, multiple entries supporting, tasks based wrapper of gulp, webpack, rollup, etc.
Clone or download
Latest commit 4528918 Dec 11, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
packages v0.5.5 Dec 11, 2018
test lila-cli -> lila-bin Nov 12, 2018
util add @babel/register Dec 4, 2018
.codecov.yml add .codecov.yml Jul 14, 2018
.editorconfig add old directory Sep 25, 2018
.eslintignore update config Nov 10, 2018
.eslintrc.js webpack + vue Dec 1, 2018
.gitignore add commander Sep 27, 2018
.npmrc add old directory Sep 25, 2018
.prettierignore update config Nov 10, 2018
.prettierrc.js update Sep 25, 2018
.travis.yml add .travis.yml Jul 14, 2018
CHANGELOG.md Add lila.init.js for windows. Dec 11, 2018
LICENSE copy codes from lilacs Dec 28, 2017
README.md Add lila.init.js for windows. Dec 11, 2018
jest.config.js 0.4.1 Aug 10, 2018
lerna.json v0.5.5 Dec 11, 2018
package.json add @babel/register Dec 4, 2018
rollup.config.js add lila-rollup-config Oct 20, 2018

README.md

lila

Extensible, multiple entries supporting, tasks based wrapper of gulp, webpack, rollup, etc.

packages

setup

You can install create-lila-app to create a lila application.

However, you can customize your own project:

  1. 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.
  2. Install lila-core and lila-tasks locally. You should not import lila-core directly, like import lila from 'lila-core', but export default lila => { ... } in lila.js(lila.init.js in windows) or plugin.
  3. Choose appropriate plugins.
  4. Configure init file lila.js(lila.init.js in windows).

base directory structure

|-- /
    |-- src/
    |-- dev/
    |-- build/
  • src: where to place source codes, like html, css, less, js, ts, ...
  • dev: a temporary directory generated while developing
  • build: where production bundles will be placed

If you want custom names, you can modify them by lila.setSettings({src, dev, build}).

how to write plugins

export default lila => {
  // do everything you want with lila api
};

how to load plugins

In lila.js(lila.init.js in windows):

import plugin from 'your-lila-plugin';

export default lila => {
  plugin(lila);

  ...
};

trouble shooting

  • In windows, you have to use lila.init.js instead, and lila.js will not work.
  • In windows, you must run lila command under the same directory with node_modules.