{"id":21486209,"url":"https://github.com/ftbjs/ftb-service","last_synced_at":"2026-04-18T17:05:09.193Z","repository":{"id":143749376,"uuid":"252193605","full_name":"ftbjs/ftb-service","owner":"ftbjs","description":"零配置开发开发基于Javascript的库和应用的脚手架","archived":false,"fork":false,"pushed_at":"2020-08-15T15:31:43.000Z","size":161,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T19:39:59.644Z","etag":null,"topics":["babel7","cli","javascript","release-package","scss","single-page-applications","typescript","webpack-server","webpack4","zero-configuration"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ftbjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-04-01T14:10:09.000Z","updated_at":"2020-08-15T15:31:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"95c85590-e82a-4276-990c-9a8f1d0d4c65","html_url":"https://github.com/ftbjs/ftb-service","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftbjs%2Fftb-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftbjs%2Fftb-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftbjs%2Fftb-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftbjs%2Fftb-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ftbjs","download_url":"https://codeload.github.com/ftbjs/ftb-service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244014132,"owners_count":20383715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["babel7","cli","javascript","release-package","scss","single-page-applications","typescript","webpack-server","webpack4","zero-configuration"],"created_at":"2024-11-23T13:19:55.102Z","updated_at":"2026-04-18T17:05:09.161Z","avatar_url":"https://github.com/ftbjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eWelcome to ftb-service 👋\u003c/h1\u003e\n\u003cp\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/npm/v/@ftbjs/service\" /\u003e\n  \u003ca href=\" \" target=\"_blank\"\u003e\n    \u003cimg alt=\"Documentation\" src=\"https://img.shields.io/badge/documentation-yes-brightgreen.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ftbjs/ftb-service/graphs/commit-activity\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Maintenance\" src=\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ftbjs/ftb-service/blob/master/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/github/license/ftbjs/ftb-service\" /\u003e\n  \u003c/a\u003e\n  \u003cimg alt=\"Last Commit\" src=\"https://img.shields.io/github/last-commit/ftbjs/ftb-service\" /\u003e\n\n\u003c/p\u003e\n\n\u003e A tool to start a server with Webpack. support hot module replacement and build.\n\n### 🏠 [Homepage](https://github.com/ftbjs/ftb-service#readme)\n\n### ✨ [Example](https://github.com/ftbjs/ftb-service/tree/master/example)\n\n## Install\n\n**Global**\n\n```sh\nnpm i @ftbjs/service -g\n```\n\n**Local**\n\n```sh\nnpm i @ftbjs/service -D\n```\n\n## Create Template Quickly\n\n```js\nftbjs create \u003cyour project name\u003e\n```\n\n## Usage\n\n**Global**\n\n```js\n// start a local serve\nftbjs serve\n\n// build project\nftbjs build\n\n// visualize size of webpack output files\nftbjs build --analyzer\n```\n\n**Local**\n\nAdd below code in your project's package.json\n\n```js\n...\n\"scripts\": {\n  \"dev\": \"ftbjs serve\",\n  \"build\": \"ftbjs build\",\n  \"analyzer\": \"ftbjs build --analyzer\"\n},\n...\n```\n\n## ftb.config.js\n\n```js\nmodule.exports = {\n  devServer: {\n    port: 2021,\n    open: true\n  },\n  packages: true, // for build library need to set it as true\n  chainWebpack: config =\u003e {\n    if (process.env.NODE_ENV === 'production') {\n      config.output.filename('my-test.min.js').library('MyTest').libraryTarget('umd')\n    }\n  }\n}\n```\n\n## Required\n\nYou need to have a src folder. and its has a index.js file. then run the `ftbjs serve` or `ftbjs build`. For more information please see [Example](https://github.com/ftbjs/ftb-service/tree/master/example)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003eFeel free to check [issues page](https://github.com/ftbjs/ftb-service/issues). You can also take a look at the [contributing guide](https://github.com/ftbjs/ftb-service/tree/master/Contribution.md).\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n## 📝 License\n\nCopyright © 2020 [biyuqiwan@163.com](https://github.com/BiYuqi).\u003cbr /\u003e This project is [MIT](https://github.com/ftbjs/ftb-service/blob/master/LICENSE) licensed.\n\n---\n\n_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fftbjs%2Fftb-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fftbjs%2Fftb-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fftbjs%2Fftb-service/lists"}