{"id":20414288,"url":"https://github.com/deepraining/lila","last_synced_at":"2026-01-12T02:26:10.852Z","repository":{"id":57290204,"uuid":"115575648","full_name":"deepraining/lila","owner":"deepraining","description":"一个可扩展的、基于 gulp 的流式构建工具，支持多入口模式。An extensible streaming build tool of gulp, supporting multiple entries.","archived":false,"fork":false,"pushed_at":"2023-11-09T09:14:07.000Z","size":1090,"stargazers_count":16,"open_issues_count":0,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-28T06:40:15.067Z","etag":null,"topics":["babel","build","cli","gulp","stream","task","teamwork","tool","web"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deepraining.png","metadata":{"files":{"readme":"README.en.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-28T02:20:51.000Z","updated_at":"2025-02-02T04:18:07.000Z","dependencies_parsed_at":"2024-06-20T19:24:47.811Z","dependency_job_id":null,"html_url":"https://github.com/deepraining/lila","commit_stats":{"total_commits":458,"total_committers":1,"mean_commits":458.0,"dds":0.0,"last_synced_commit":"9dddd79a7f1815ae57429da188c396240b66c151"},"previous_names":["senntyou/lila"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/deepraining/lila","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraining%2Flila","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraining%2Flila/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraining%2Flila/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraining%2Flila/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepraining","download_url":"https://codeload.github.com/deepraining/lila/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraining%2Flila/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28332404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babel","build","cli","gulp","stream","task","teamwork","tool","web"],"created_at":"2024-11-15T06:08:52.059Z","updated_at":"2026-01-12T02:26:10.835Z","avatar_url":"https://github.com/deepraining.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lila\n\n[中文文档](./README.md)\n\nAn extensible streaming build tool of [gulp](https://github.com/gulpjs/gulp), supporting multiple entries.\n\n## packages\n\n- [lila-bin](./packages/lila-bin): lila command line tool\n- [lila-core](./packages/lila-core): lila core library\n- [lila-tasks](./packages/lila-tasks): lila built-in tasks\n- [lila-webpack](./packages/lila-webpack): wrapped webpack plugin\n- [lila-webpack-config](./packages/lila-webpack-config): built-in webpack config generator for lila-webpack\n- [create-lila-app](./packages/create-lila-app): tool to create a lila application\n\n## setup\n\nIt's recommended to use [create-lila-app](./packages/create-lila-app) to create a lila application, or use ready-made templates:\n\n- [react-app-starter](https://github.com/deepraining/react-app-starter): A boilerplate for creating a React application, using Webpack and Storybook.\n- [react-ts-app-starter](https://github.com/deepraining/react-ts-app-starter): A boilerplate for creating a React application, using TypeScript, Webpack and Storybook.\n- [vue-app-starter](https://github.com/deepraining/vue-app-starter): A boilerplate for creating a Vue application, using Webpack and Storybook.\n\nHowever, you can also customize it as you like, just follow these steps:\n\n#### 1. install lila-bin\n\n```\nnpm install lila-bin -g                # global\n\nnpm install lila-bin --save-dev        # local\n```\n\nIf installed globally, you can run lila commands directly in terminal, like:\n\n```\nlila \u003ccmd\u003e [options]\n```\n\nand if installed locally, you can run lila commands by [npm-scripts](https://docs.npmjs.com/misc/scripts):\n\n```\n# package.json\n\n\"scripts\": {\n  \"run\": \"lila \u003ccmd\u003e [options]\"\n}\n```\n\n#### 2. install lila-core and lila-tasks\n\n```\nnpm install lila-core lila-tasks --save-dev\n```\n\n#### 3. configure init file\n\nConfigure init file `lila.init.js`.\n\n```\n// lila-core should not be imported directly\n\nimport tasksPlugin from 'lila-tasks';\nimport otherPlugin from 'lila-other-plugin';\n\n// here should export a function\n// here lila object is lila-core package, and you can use all lila-core's api\nexport default lila =\u003e {\n\n  // do some init actions\n\n  tasksPlugin(lila);\n  otherPlugin(lila);\n\n  // here return a config generator\n  return ({ entry, argv, cmd }) =\u003e {\n\n    // make a config according to `entry, argv, cmd`\n    const config = { ... }\n\n    // return a config object\n    return config;\n  };\n}\n```\n\n## base directory structure\n\n```\n- src/\n- dev/\n- build/\n```\n\n- `src`: where to place source codes, like `html, css, less, scss, js, ts, vue, ...`\n- `dev`: a temporary directory, generated while developing\n- `build`: where to generate production bundles\n\nIf you want custom names, you can modify them by:\n\n```\nlila.setSettings({\n  src: yourSrcDir,\n  dev: yourDevDir,\n  build: yourBuildDir,\n})\n```\n\n## how to write plugins\n\n```\nexport default lila =\u003e {\n  // here lila object is lila-core package, and you can do everything you want with lila api\n};\n```\n\n## how to load plugins\n\nIn `lila.init.js`:\n\n```\nimport plugin from 'your-lila-plugin';\n\nexport default lila =\u003e {\n  plugin(lila);\n\n  ...\n};\n```\n\n## trouble shooting\n\n- In Windows, you must run `lila` command under the same directory with `node_modules`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepraining%2Flila","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepraining%2Flila","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepraining%2Flila/lists"}