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.
- Host: GitHub
- URL: https://github.com/oliverfindl/html-sass-babel-boilerplate
- Owner: oliverfindl
- License: mit
- Created: 2018-05-16T16:34:15.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-16T07:44:37.000Z (about 4 years ago)
- Last Synced: 2025-02-27T02:13:26.893Z (4 months ago)
- Topics: autoprefixer, babel, boilerplate, eslint, html, html-sass-babel-boilerplate, javascript, postcss, purgecss, sass, stylelint
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# html-sass-babel-boilerplate
[][mit]
[](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