idio-dev

1.2.0 • Public • Published

idio-dev

npm version

yarn add -E -D idio-dev

idio-dev is a new Node.js npm package.

Development tools for idio.

watchBundles

Make and watch browserify bundles. This produces source maps and does not minify output, so that it's useful in development. To build production bundles, use buildBundles.

import { watchBundles } from 'idio-dev'
 
await watchBundles({
  from, to,
  babelify: {
    babelrc: false,
    plugins: [
      '@babel/plugin-transform-modules-commonjs',
      '@babel/plugin-proposal-object-rest-spread',
    ],
    presets: [
      '@babel/preset-react',
    ],
  },
})
  • from: where to look for JS files which need to be compiled
  • to: where to put compiled bundles
  • browserify: any additional options to pass to browserify
  • babelify: a configuration for babelify
  • ignore: browserify's ignore
  • exclude: browserify's exclude
⇢ src/scripts/tamara-de-lempicka.js bundled to src/static/scripts/tamara-de-lempicka.js

(c) artdecocode 2018

Readme

Keywords

Package Sidebar

Install

npm i idio-dev

Weekly Downloads

2

Version

1.2.0

License

MIT

Unpacked Size

31.9 kB

Total Files

37

Last publish

Collaborators

  • zvr