poi-util-transpile
Util for transpiling poi plugins
Last updated a year ago by letspoi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install poi-util-transpile 
SYNC missed versions from official npm registry.

Poi-util-transpile

npm package

Util for transpiling poi plugins

Compatibility

This util is designed for poi 7.6.0 and later versions. Other versions are not guaranteed. An apiVer for 7.6.0-beta.1 is probably necessary if you use features like async/await that was transpiled with different presets in previous babel config.

Howto

You're expected to use npm^5 and node^7.6.

  • install this package as dev-dependecy:
npm install --save-dev poi-util-transpile
  • add prepack and postpublish (optional) scripts in package.json section:

note: since prepublish script is also run during npm install, we use newly introduced prepack instead.

    "prepack": "poi-util-transpile",
    "postpublish": "git clean -f && git checkout .",

Usage

Usage: poi-plugin-transpile [source] [options]

Options:
  --sm, --source-map  saves sourcemap to .js.map file and/or inline. same as
                      babel sourceMaps option, if provided with no value, it
                      will default to true                              [string]
  --replace           removes .es files                                [boolean]
  -h, --help          Show help                                        [boolean]

Changelog

10.3.0 (^10.3.0 compatible)

update settings from poi v10, added TypeScript support

8.2.2 (^8.2.0 compatible)

use babel@7-beta.40 following main poi's settings, code might not be compatible since the target is set to Electron 1.8.

8.0.0 (^8.0.0 compatible)

add babel-plugin-closure-elimination, this does not break the compatibility with 7.6.x ~ 7.10.x

Current Tags

  • 8.2.0-beta.1                                ...           beta (2 years ago)
  • 10.3.4                                ...           latest (a year ago)

11 Versions

  • 10.3.4                                ...           a year ago
  • 10.3.3                                ...           a year ago
  • 10.3.0                                ...           a year ago
  • 8.2.2                                ...           2 years ago
  • 8.2.1                                ...           2 years ago
  • 8.2.0-beta.1                                ...           2 years ago
  • 8.0.0                                ...           3 years ago
  • 7.6.2                                ...           3 years ago
  • 7.6.1                                ...           3 years ago
  • 7.6.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago

Copyright 2014 - 2017 © taobao.org |