idio-dev
Development tools for idio.
Last updated 2 years ago by zvr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install idio-dev 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.2.0                                ...           latest (2 years ago)

3 Versions

  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |