0.9.2 • Published 4 years ago

@pika/plugin-standard-pkg v0.9.2

Weekly downloads
792
License
MIT
Repository
github
Last release
4 years ago

@pika/plugin-standard-pkg

A @pika/pack build plugin. Builds your package source as standard, ES2018 JavaScript. Supports TypeScript. Supports experimental language features via Babel.

Note: If your package is written in TypeScript, check out @pika/plugin-ts-standard-pkg which uses TypeScript internally to build your package instead of Babel.

Install

# npm:
npm install @pika/plugin-standard-pkg --save-dev
# yarn:
yarn add @pika/plugin-standard-pkg --dev

Usage

{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      ["@pika/plugin-standard-pkg"]
    ]
  }
}

For more information about @pika/pack & help getting started, check out the main project repo.

Result

Unlike other build plugins, this plugin reads directly from your package src/ directory. Make sure your code exists in a src/ directory, with an src/index.js or src/index.ts file as the package entrypoint.

Other build plugins will depend on this standard ES2018 distribution, so include this plugin early in your build pipeline for others to use.

  1. Adds a modern ES2018 distribution to your built package: dist-src/
  2. TypeScript supported automatically.
  3. Experimental ESNext JavaScript features are handled via your existing Babel config (.babelrc or similar.)
  4. Adds an "esnext" entrypoint to your built package.json manifest.
0.9.2

4 years ago

0.8.3

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.16

5 years ago

0.3.15

5 years ago

0.3.14

5 years ago

0.3.13

5 years ago

0.3.12

5 years ago

0.3.11

5 years ago

0.3.10

5 years ago

0.3.9

5 years ago

0.3.8

5 years ago

0.3.7

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.2.8

5 years ago