@stevygee/master-builder
v0.7.1
Published
A reusable builder to compile es6 and scss from a source directory into a destination directory
Downloads
13
Readme
Master Builder
A reusable SCSS / JS builder, now based on esbuild!
Requirements
- Node 12
Features
- Super fast!
- JSX
- Sass / SCSS
- PostCSS
- Autoprefixer
- Browserslist support
- Copy additional files
- Compress all files into a ZIP
- etc.
Getting started
- Add scripts to your project's package.json:
"scripts": {
"start": "master-builder",
"build": "master-builder build",
"deploy": "master-builder deploy"
},
npm install @stevygee/master-builder --save-dev
npm start
Optional: Copy .master-builder
, .browserslistrc
config files to your project and configure to your needs!
Building for production
npm run build
Building for production and create a zip file
npm run deploy
- Upload the zip file in dist/packages for use in WordPress (install theme/plugin).
Development
- Checkout this repo
npm install
- Instead of
npm start
, usenode bin/index.js
ornode bin/index.js deploy
to build the example files
Development using your project
How to add as a local dependency:
- Checkout this repository in a sibling directory next to your project
- Change the dependency path in your project's package.json:
"devDependencies": {
...
"@stevygee/master-builder": "../master-builder"
}
- Use
npm install
to continously update the package after you've made a change.