@sepalang/padoc
ASAP compile the ECMAScript
Last updated 4 months ago by hojung .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @sepalang/padoc 
SYNC missed versions from official npm registry.

npm version CircleCI Codacy Badge Greenkeeper badge

PADOC

It is a tool for extracting compilation and distribution source with a simple command library written in es6.

Install

npm i @sepalang/padoc

Usage

ES6 each module compile

padoc src dist -m umd

# long
padoc src dist --module umd

It will be start recursive compile

Compiling to a single chunk

padoc --pack src/index.js dist/onefile.js -m umd
padoc --pack src/index.js dist/onefile.js -m iife -n iQuery

# long
padoc --pack src/index.js dist/onefile.js --module umd
padoc --pack src/index.js dist/onefile.js --module iife --name iQuery

no compile single chunk

padoc --pack src/index.js dist/onefile.js -m es

It will be other files with dependencies will be stored in a single file. (By import or require)

Support sourcemaps

padoc src dist -s
padoc --pack src/index.js dist/index.js -s

# long
padoc src dist --sourcemaps
padoc --pack src/index.js dist/index.js --sourcemaps

multiple chunk

padoc --pack 'src/foo.js src/bar.js' dist/dirname -m es
padoc --pack 'src/globfile-*.js' dist/dirname -m es

Execute ES6 file

padoc --exec index.js

Execute and REPL

Can access variables exports to a running file. Restrictions on babel-node may occur.

padoc --exec index.js -i

# long
padoc --exec index.js --interactive

Default plugins

Object rest spread

link

let { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 };
let n = { x, y, ...z };

Do expression

link

let a = do {
  if(x > 10) {
    'big';
  } else {
    'small';
  }
};

Numeric separator

link

let budget = 1_000_000_000_000;

Async generators

link

async function* agf() {
  await 1;
}

Current Tags

  • 0.11.0                                ...           latest (4 months ago)

31 Versions

  • 0.11.0                                ...           4 months ago
  • 0.10.1                                ...           8 months ago
  • 0.10.0                                ...           a year ago
  • 0.9.4                                ...           a year ago
  • 0.9.2                                ...           a year ago
  • 0.9.1                                ...           a year ago
  • 0.8.18                                ...           a year ago
  • 0.8.17                                ...           a year ago
  • 0.8.16                                ...           a year ago
  • 0.8.15                                ...           a year ago
  • 0.8.14                                ...           a year ago
  • 0.8.13                                ...           a year ago
  • 0.8.12                                ...           a year ago
  • 0.8.11                                ...           a year ago
  • 0.8.10                                ...           a year ago
  • 0.8.6                                ...           a year ago
  • 0.8.5                                ...           a year ago
  • 0.8.4                                ...           a year ago
  • 0.8.3                                ...           a year ago
  • 0.7.21                                ...           a year ago
  • 0.7.20                                ...           a year ago
  • 0.7.18                                ...           a year ago
  • 0.7.16                                ...           a year ago
  • 0.7.15                                ...           a year ago
  • 0.7.11                                ...           a year ago
  • 0.7.10                                ...           a year ago
  • 0.7.6                                ...           a year ago
  • 0.7.5                                ...           a year ago
  • 0.7.3                                ...           a year ago
  • 0.7.2                                ...           a year ago
  • 0.7.0                                ...           a year ago

Copyright 2014 - 2016 © taobao.org |