# 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.

Latest version **1.0.4** (published 2017-11-22) · 0 weekly downloads

## Install

```sh
npm install adonis-es6-browser
pnpm add adonis-es6-browser
yarn add adonis-es6-browser
bun add adonis-es6-browser
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2017-11-22 |
| First published | 2017-11-03 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.7.0 |
| Dependencies | 25 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Andre Pedroza |
| Maintainers | andrepedroza |
| Keywords | AdonisJS, ES6, Babel, Rollup, Browser, Compatibility, LiveReload |

## Links

- npm: https://www.npmjs.com/package/adonis-es6-browser
- Repository: https://github.com/andrepedroza/adonis-es6-browser
- Homepage: https://github.com/andrepedroza/adonis-es6-browser#readme
- Issues: https://github.com/andrepedroza/adonis-es6-browser/issues
- npm.io page: https://npm.io/package/adonis-es6-browser

## Dependencies (25)

- [eslint](https://npm.io/package/eslint.md) ^3.19.0
- [rollup](https://npm.io/package/rollup.md) ^0.50.0
- [cssnano](https://npm.io/package/cssnano.md) ^3.10.0
- [anymatch](https://npm.io/package/anymatch.md) ^1.3.2
- [chokidar](https://npm.io/package/chokidar.md) ^1.7.0
- [standard](https://npm.io/package/standard.md) ^10.0.3
- [babel-cli](https://npm.io/package/babel-cli.md) ^6.26.0
- [babel-core](https://npm.io/package/babel-core.md) ^6.26.0
- [livereload](https://npm.io/package/livereload.md) ^0.6.3
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.26.0
- [babel-preset-env](https://npm.io/package/babel-preset-env.md) ^1.6.1
- [eslint-plugin-node](https://npm.io/package/eslint-plugin-node.md) ^5.2.1
- [rollup-plugin-babel](https://npm.io/package/rollup-plugin-babel.md) ^3.0.2
- [babel-preset-stage-0](https://npm.io/package/babel-preset-stage-0.md) ^6.24.1
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.8.0
- [rollup-plugin-eslint](https://npm.io/package/rollup-plugin-eslint.md) ^4.0.0
- [rollup-plugin-uglify](https://npm.io/package/rollup-plugin-uglify.md) ^2.0.1
- [eslint-plugin-promise](https://npm.io/package/eslint-plugin-promise.md) ^3.6.0
- [rollup-plugin-postcss](https://npm.io/package/rollup-plugin-postcss.md) ^0.5.5
- [eslint-config-standard](https://npm.io/package/eslint-config-standard.md) ^10.2.1
- [eslint-plugin-standard](https://npm.io/package/eslint-plugin-standard.md) ^3.0.1
- [rollup-plugin-commonjs](https://npm.io/package/rollup-plugin-commonjs.md) ^8.2.6
- [rollup-plugin-node-resolve](https://npm.io/package/rollup-plugin-node-resolve.md) ^3.0.0
- [babel-plugin-external-helpers](https://npm.io/package/babel-plugin-external-helpers.md) ^6.22.0
- [babel-plugin-transform-runtime](https://npm.io/package/babel-plugin-transform-runtime.md) ^6.23.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2017-11-22
- 1.0.3 — 2017-11-03
- 1.0.2 — 2017-11-03
- 1.0.1 — 2017-11-03
- 1.0.0 — 2017-11-03

## README

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:

```sh
$ npm i -D adonis-es6-browser
```

Config AdonisJS to use the command at `start/app.js`:
```js
/*
|------------------------------------------------------------------
| Commands
|------------------------------------------------------------------
|
| Here you store ace commands for your package
|
*/
const commands = [
  require('adonis-es6-browser')
]
```
# How to Use

For Development:

```sh
$ adonis browser
```

For Production:

```sh
$ 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.

---
_Source: https://npm.io/package/adonis-es6-browser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
