This is a simple project to test a home-made build tool.
- Author: Thomas Banks
- Author URI: http://scrummable.com
- Source: https://bitbucket.org/thomasxbanks/build-tool/src
- Repo: Git
- Version: 1.0.0
- Download .zip, clone or fork from Source.
- Installing dependencies
- First time:
npm run boot && npm run install
- Subsequent uses:
npm run install
- First time:
-
npm start
to kick the whole thing off
-
npm run watch
- Watches
_dev/_style.scss
and compiles to_dev/style.min.css
- Watches
_dev/
for any changes and live-reloads the browser
- Watches
-
npm run test
- Validates JavaScript. Errors in terminal.
- Validates PHP. Errors in terminal.
-
npm run build
- Creates an empty project folder
_www/
- Compiles SCSS into CSS
- Minifies CSS, JS, and HTML/PHP^
- Copies minified CSS and JS into project folder
- Copies
assets
andvendor
folders verbatim into project folder - Copies
index.php
into project folder
- Creates an empty project folder
-
npm run $script$
- various steps of the
build
script can be run individually. Seepackage.json
for the full list.
- various steps of the
- More test suites;
- css? - csslint unknown error. Removed from build until solution found.
- html?
^ Currently minifies specific folder - _dev/assets/pages
as html-minifier throws a fit if you try to minify images.