Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hebertsilva/node-sass-boilerplate

Boilerplate using node-sass, webpack and es6
https://github.com/hebertsilva/node-sass-boilerplate

babel boilerplate css es6 node-sass webpack yarn

Last synced: 2 months ago
JSON representation

Boilerplate using node-sass, webpack and es6

Awesome Lists containing this project

README

        

# node-sass-boilerplate

[![Build Status](https://travis-ci.org/hebertsilva/node-sass-boilerplate.svg)](https://travis-ci.org/hebertsilva/node-sass-boilerplate)

### Installing

```shell
# Before install you need to clone the repo.
git clone [email protected]:hebertsilva/node-sass-boilerplate.git

# Enter in folder
cd node-sass-boilerplate

# Install packages
npm install
```
or install package with yarn
If you do not have yarn installed go here **[yarn](https://yarnpkg.com/docs/install)**
```shell
yarn install
```

### Watching change

**Watching css**
```shell
npm run watch:css
```

**Watching sprite**
```shell
npm run watch:sprite
```

**Watching js**
```shell
npm run watch:js
```

**Watching all**
```shell
# watch:all watching css, sprite and js
npm run watch:all
```

### Building in production

**build css**
```shell
npm run build:css
```

**build sprite**
```shell
npm run build:sprite
```

**build js**
```shell
npm run build:js
```

**build all**
```shell
# build:all building css, sprite and js
npm run build:all
```
or watch and build with **yarn**
```shell
yarn watch:** #'css', 'sprite', 'js', 'all'

# or

yarn build:** #'css', 'sprite', 'js', 'all'
```

**identifying and reporting in ECMAScript/JavaScript code**
```shell
npm run lint
```

***Note***
To monitor files in save as replace in the **watch:css** in **package.json** by that line below using *onchage*
`"watch:css": "onchange \"sass/\" -- npm run sass",`