pegjs/webpack.config.js
Futago-za Ryuu baf8b3a339 Publish to pegjs@dev on every CI run
This adds a new local package called '@pegjs/publish-dev' that will be run by the CI after all other tasks.

'@pegjs/publish-dev' will, as the name implies, publish a new release of pegjs on NPM under the dev tag.
2019-02-15 00:54:31 +00:00

38 lines
850 B
JavaScript

"use strict";
const target = require( "@pegjs/bundler/target" );
module.exports = [
/* https://unpkg.com/pegjs@latest/dist/peg.js */
target( {
entry: require.resolve( "pegjs" ),
library: "peg",
output: "packages/pegjs/dist/peg.js",
} ),
/* https://unpkg.com/pegjs@latest/dist/peg.min.js */
target( {
entry: require.resolve( "pegjs" ),
library: "peg",
output: "packages/pegjs/dist/peg.min.js",
} ),
/* https://unpkg.com/pegjs@dev/dist/*-bundle.min.js */
target( {
entry: {
"benchmark": require.resolve( "@pegjs/benchmark-suite/browser.js" ),
"test": require.resolve( "@pegjs/spec-suite/browser.stub.js" ),
},
library: [ "peg", "[name]" ],
output: "packages/pegjs/dist/[name]-bundle.min.js",
} ),
];