@stevygee/master-builder
v0.8.0
Published
A reusable builder to compile es6 and scss from a source directory into a destination directory
Readme
Master Builder
A reusable SCSS / JS builder, now based on esbuild!
Requirements
- Node 20
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-devnpm 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.jsornode bin/index.js deployto 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 installto continously update the package after you've made a change.
