DEPRECATED AND NO LONGER MAINTAINED
We (I) had fun and learned a lot, but the time has come to say cheerio!
Create, Build, Test, Serve and Release. Quickly
- Build and serve static or NodeJS sites
- Automatic browser refresh when source code is changed
- Use Jade or Mustache HTML templating
- Compile Sass and CommonJS or AMD to CSS/JS and
.min
minified equivalents - Test your code and automatically retest on the fly with each code change. True TDD!
- Code coverage reporting by default with adjustable thresholds
- Continuous (or manual) Deployment to github.io, Bower and/or Amazon S3
- Customise the build process using caddy.config.js or using gulp
npm install web-caddy --save-dev
To create a new project with a build process, tdd and continuous deployment already set-up
- Run
caddy new *project-name*
(which will create a directory) - follow on-screen instructions.
- Run
npm start
within your new directory
Get the CLI (build, test, release etc) working within an existing project
- Copy the caddy.config.js into your project root
- Update the
tasks
object to match the jobs you need doing - Update the
buildPaths
object to match your directory structure
CLI and NodeJS commands
The web-caddy can be run from the command line or directly from within js files (i.e. a NodeJS script or a gulpfile).
Once required (var caddy = require('web-caddy');
), you can call the following:
CLI | Node | Sub-tasks |
---|---|---|
caddy new project-name | unavailable | none |
caddy build | caddy.build.all() |
styles, scripts, html |
caddy clean | caddy.clean.all() |
styles, scripts, html, build, copy |
caddy copy | caddy.copy() |
none |
caddy serve | caddy.serve() |
none |
karma start xxx.js | unavailable (see karma) | none |
caddy init | caddy.init.all() |
bower, gh-pages, git |
caddy bump | caddy.bump() |
none |
caddy release | caddy.release.all() |
bower, gh-pages, s3 |
hint: add -verbose
to the cli to see more logging
hint: add -dev
to the cli to prevent js/css minification
The CLI and Node will use the config set within caddy.config.js in your project root.
Setup your project to get the most out of
caddy
This project depends on collaboration between developers. Contributions of any size are actively encouraged.