1.0.0 • Published 10 years ago
stm-build-tool v1.0.0
STM Build Tool
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
Installation
Dependencies
Instructions
- 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 startto kick the whole thing off
Usage
Controls
npm run watch- Watches
_dev/_style.scssand 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
assetsandvendorfolders verbatim into project folder - Copies
index.phpinto project folder
- Creates an empty project folder
npm run $script$- various steps of the
buildscript can be run individually. Seepackage.jsonfor the full list.
- various steps of the
Next Steps
- More test suites;
- css? - csslint unknown error. Removed from build until solution found.
- html?
Footnotes
^ Currently minifies specific folder - _dev/assets/pages as html-minifier throws a fit if you try to minify images.
1.0.0
10 years ago