dir-babel
Little script on top of babel to compare src and lib before running babel on needed files
Last updated 2 years ago by valeryg .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dir-babel 
SYNC missed versions from official npm registry.

Little script on top of babel to compare src and lib before running babel on needed files

Install

npm install --save-dev dir-babel

usage

add to package.json scripts

scripts: {
  ....
  "build": "npm run dir-babel --src-dir=src --out-dir=lib"
  ....
}

This will compare all source files in scr-dir and only transpile files that are newer or midding in out-dir

arguments:

  • --src-dir - source folder
  • --out-dir - destination folder (folder to put transpiled files to)
  • --watch - run in watch mode
  • --copy-files - copy files that are not needed to be transplied (images, styles, e.t.c.). When given, all thoe files will be copied from src-dir for out-dir
  • --skip-initial-build - do not do initial build

Current Tags

  • 1.0.14                                ...           latest (2 years ago)

15 Versions

  • 1.0.14                                ...           2 years ago
  • 1.0.13                                ...           2 years ago
  • 1.0.12                                ...           2 years ago
  • 1.0.11                                ...           2 years ago
  • 1.0.10                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 15
Dependencies (5)
Dev Dependencies (6)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |