This is a WIP CLI for Smashing Boxes, focusing on frontend tooling and automation. By following the conventions this tool is built on, you can instantly add front end tooling and dev ops goodness to any Smashing project. Tell smasher which asset types you want to include in your Smashfile and it will build a data model of your source code that can be manipulated and queried by other modules.
For now, the easiest way to use this tool is via
npm link. Eventually it will be installable via the public NPM registry.
First clone this repository somewhere on your machine,
cd to that directory and run
$ git clone firstname.lastname@example.org:smashingboxes/smashing-dev-tool.git$ cd smashing-dev-tool$ npm link
This will make the contents of the folder available as a globally installed NPM plugin. Running
git pull in this directory will update the tool.
smash command should now be available globally.
module.exports =# file types to be compiled/builtassets:'coffee''css''styl''jade''json'# override default directory conventionsdir:client: 'WebContent'server: 'src'
smash compile: compile the project source into unoptimized HTML, JS and CSS ready for the browser
smash serve: run a BrowserSync-based development server and re-compile on file changes
smash build: build the compiled source into a minified, otpimized set of files for deployment
smash docs: generate a static documentation site for this codebase
smash clean: remove all generated files (