stm-build-tool
v1.0.0
Published
This is my attempt at building a very basic task-runner to clean up my workflow. The idea is to minimise dependencies. I'm avoiding Grunt/Gulp/Brunch/Yeoman/etc.
Downloads
3
Maintainers
Readme
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 start
to kick the whole thing off
Usage
Controls
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
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.