Get unlimited public & private packages + team-based management with npm Teams.Learn more »

pob-babel

23.22.2 • Public • Published

pob-babel

Build and watch with babel and typescript

What it does

  • Transpiles js and jsx files for specific envs (pre-node6, node6, webpack 2, modern browsers webpack 2)
  • Transform yml files to json (for faster load)
  • Allow you to register plugins to transform more files by extension
  • watch returns an EventEmitter to allow you to restart your server if needed.

Install

npm install --save-dev pob-babel

Also install babel plugins and presets

Create .pob.json

{
  "react": false,
  "envs": ["node6", "webpack", "webpack-modern-browsers"],
}

How to use

Direct use

node_modules/.bin/pob-build
node_modules/.bin/pob-watch

With npm scripts npm run build

Edit your package.json:

{
    "scripts": {
        "build": "pob-build",
        "watch": "pob-watch"
    }
}

Keywords

none

Install

npm i [email protected]

Version

23.22.2

License

ISC

Unpacked Size

57.4 kB

Total Files

14

Last publish

Collaborators

  • avatar