Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tadatuta/bem-dist-server
Custom dist builder for BEM libraries
https://github.com/tadatuta/bem-dist-server
Last synced: 30 days ago
JSON representation
Custom dist builder for BEM libraries
- Host: GitHub
- URL: https://github.com/tadatuta/bem-dist-server
- Owner: tadatuta
- Created: 2015-02-01T22:11:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-04T00:56:56.000Z (over 9 years ago)
- Last Synced: 2024-10-05T08:41:20.573Z (about 1 month ago)
- Language: JavaScript
- Homepage: http://188.226.152.208:9000/
- Size: 246 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bem-dist-server
## Usage
```sh
git clone https://github.com/tadatuta/bem-dist-server.git
cd bem-dist-server
npm i
npm run deps
npm run build
npm start
```## Anatomy
Sources of web interface are in `static` folder. `ENB` is used to build bundles. HTML is generated with `build-page.js` which introspects all the levels from `config.js` and builds a list of found blocks.
`server.js` serves static and generate `ENB` configs in `dists` folder to build assets for selected blocks.
## Add a library
1) Add it to dists/bower.json and install:
```sh
cd dists
../node_modules/.bin/bower i library-name --save
```2) Add all provided levels to `config.js` in proper order.
3) Optionally add path to library documentation to `libs-to-docs.json`.