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

https://github.com/oliverfindl/html-sass-babel-boilerplate

Simple boilerplate for building web app with babel-cli and node-sass.
https://github.com/oliverfindl/html-sass-babel-boilerplate

autoprefixer babel boilerplate eslint html html-sass-babel-boilerplate javascript postcss purgecss sass stylelint

Last synced: 3 months ago
JSON representation

Simple boilerplate for building web app with babel-cli and node-sass.

Awesome Lists containing this project

README

        

# html-sass-babel-boilerplate

[![license](https://img.shields.io/github/license/oliverfindl/html-sass-babel-boilerplate.svg?style=flat)][mit]
[![paypal](https://img.shields.io/badge/donate-paypal-blue.svg?colorB=0070ba&style=flat)](https://paypal.me/oliverfindl)

Simple boilerplate for building web app with [node-sass](https://github.com/sass/node-sass) and [@babel/cli](https://github.com/babel/babel/tree/master/packages/babel-cli).

---

## Install

```bash
# Clone repository from GitHub to
$ git clone https://github.com/oliverfindl/html-sass-babel-boilerplate

# Switch to
$ cd

# Install all dependencies
$ npm install

# [optional] Check and update all dependencies
$ npm outdated
$ npm update
```

## Usage

```bash
# Build and minify both resources
$ npm run build

# Build and minify main.js file
$ npm run build:js

# Watch for changes in main.js file
$ npm run watch:js

# Build and minify main.scss file
$ npm run build:css

# Watch for changes in main.scss file
$ npm run watch:css

# Lint main.js file
$ lint:js

# Fix main.js file
$ lint:js:fix
```

## Structure

```bash
. # root
├── dist # directory for distributables
│ ├── css # directory for minified css files
│ └── js # directory for minified js files
├── src # directory for source code
│ ├── js # directory for js files
│ │ └── main.js # main js file
│ └── scss # directory for scss files
│ ├── functions.scss # scss file for functions
│ ├── main.scss # main scss file
│ └── variables.scss # scss file for variables
├── index.html # index file for web app
├── package.json # npm configuration file
└── purgecss.config.js # purgecss configuration file
```

---

## License

[MIT][mit]

[mit]: https://opensource.org/licenses/MIT