Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deepraining/web-lib-starter
一个用于快速创建 Web 组件库的模板脚手架. A boilerplate for creating a Web library.
https://github.com/deepraining/web-lib-starter
Last synced: about 1 month ago
JSON representation
一个用于快速创建 Web 组件库的模板脚手架. A boilerplate for creating a Web library.
- Host: GitHub
- URL: https://github.com/deepraining/web-lib-starter
- Owner: deepraining
- License: mit
- Created: 2019-07-29T08:01:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-30T02:01:48.000Z (over 5 years ago)
- Last Synced: 2024-11-15T06:42:39.147Z (3 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.en.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# web-lib-starter
[中文文档](./README.md)
A boilerplate for creating a Web library.
## Getting started
```
git clone https://github.com/senntyou/web-lib-starter.git --depth=1cd web-lib-starter
npm install # install dependencies
npm run build # build distribution files
```## Features
- [less](http://lesscss.org/), [scss](https://sass-lang.com/) style languages support.
- [Flow](https://flow.org/) syntax, [jest](https://jestjs.io/en/) test support.
- Use [lila](https://github.com/senntyou/lila) to preview and debug pages.## Project
```
- src
- index.js # js entry file
- styles
- index.{less,scss} # style entry file
```By default, styles use `less` language, if you want to use `scss` language, you should modify `package.json` by:
```
"scripts": {
- "build:styles": "npm run build:less",
+ "build:styles": "npm run build:scss",
}
```