b-lib-boilerplate [all b- libs]
Bornfight frontend project based on gulp, es6 and scss
Change:
- package.json > "name": "c-lib-boilerplate"
- package.json > "description": "...."
- package.json > "main": "src/js/LibName.js"
- LibName.js > replace with your lib name in places where it is used
- add keywords to package.json
- install
b-lib
trough npm or pull ti from git
npm i @bornfight/b-lib
- include b-lib to your JS and SCSS after running npm install
import LibName from "@bornfight/b-lib";
@import "~b-lib/src/scss/b-lib.scss";
<p class="b-lib-class">
Lib Element
</p>
- element needs to have ...
- ...
- ...
Option | Type | Default | Example | Description |
---|---|---|---|---|
parentClass | string | element parent | 'js-parent' | Element will be wrapped and moved to that parent and not to initial parent element |
- ...
- ...
- ...
- Gulp 4 used
- browsersync for live reload
npm run dev - dev environent with browsersync
MIT © Bornfight