shama
Things for helping me build other things.
Have an opinion on my things? Great! Fork and publish your own thing.
quick start
npm initnpm i shama --save-dev./node_modules/.bin/shamanpm run watch
require('shama')
Create something like this or use ./node_modules/.bin/shama
:
./├── app│ ├── css│ │ └── index.styl│ └── index.js├── bin│ └── build.js└── package.json
bin/build.js
var path = path
package.json
require('shama/build')
// Compile a index.html, index.js and index.css file// using browserify and stylusvar build = build // or more simplybuildall // or more complexlybuildall js: src: 'app/index.js' dest: 'dist/index.js' css: src: 'app/index.styl' dest: 'dist/index.css' html: dest: 'dist/index.html' title: 'My website' { console}
require('shama/server')
// Starts a server using jaws on port 8080var server = // Default is index.html '/': 'index.html' // Serve up static files from cwd '/*': './' // Write your own req/res handlers { var params = reqextrasparams res }serverstart8080
require('shama/watch')
'app/**/*': buildall
license
Copyright (c) 2015 Kyle Robinson Young
Licensed under the MIT license.