adonis-es6-browser
An Ace command that starts a listener on file change compiling them into ES5 code using rollup with babel as well booting up a livereload server that updates the browser when changes occurred.
Last updated 2 years ago by andrepedroza .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install adonis-es6-browser 
SYNC missed versions from official npm registry.

adonis-es6-browser

An Ace command that starts a listener on file change compiling them into ES5 code using rollup with babel as well booting up a livereload server that updates the browser when changes occurred.

How to Install

To install adonis-es6-browser:

$ npm i -D adonis-es6-browser

Config AdonisJS to use the command at start/app.js:

/*
|------------------------------------------------------------------
| Commands
|------------------------------------------------------------------
|
| Here you store ace commands for your package
|
*/
const commands = [
  require('adonis-es6-browser')
]

How to Use

For Development:

$ adonis browser

For Production:

$ adonis browser --prod

Code Structure

To use this command you have to follow a directory pattern:

  • All ES6 code go into src/ at project root.
  • Master Page code go into src/master.
  • Code of other pages go into src/pages/[pageName].
  • Every page folder has to have an index.js.
  • The output folder is public/js/pages/[pageName].min.js.

License

Copyright (c) 2017 Andre P. Pedroza

Released under the MIT license. See LICENSE for details.

Current Tags

  • 1.0.4                                ...           latest (2 years ago)

5 Versions

  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |