scooby

0.0.22 • Public • Published

scooby

rapid development environment. understands all your files

Use

scooby --port 5000 index.jade index.coffee index.styl

Features

  • Build any type of file, with zero configuration
  • Crazy fast incremental builds
  • Live reloading of every file
  • Same API to build for production

Install

npm install scooby

TODO before release

  • debug(...) everything

Using JSX, ES2015, etc.

JS files are automatically compiled using babel if there's a .babelrc in your root directory, however the plugins and presets are not included by default. You will need to define and install these plugins in your .babelrc file.

This is a simple one that includes ES2015 and JSX support:

{
  "presets": [ "es2015" ],
  "plugins": [
    [ "transform-react-jsx" ]
  ]
}

Using HTML, Jade or other template files

Important: Make sure that your assets are defined from the root.

For example, if the HTML file you're serving is located in pages/home/home.jade and your entry assets are also in that file (ex. pages/home/home.js), make sure your script/CSS/image tags in your HTML are relative to the root, in this case, <script src="/pages/home/home.js"></script>. This will make it easy to transition from development to production.

This may change in the future, the main problem is that you need to be able to parse and modify asset paths from your HTML. When you're serving the file with express or koa, your render step would need to rewrite the asset paths, which isn't set up yet.

License

MIT if you follow me on twitter @mattmueller :-P

Readme

Keywords

none

Package Sidebar

Install

npm i scooby

Weekly Downloads

24

Version

0.0.22

License

none

Last publish

Collaborators

  • mattmueller