systemjs/package.json
2018-08-21 01:30:32 +02:00

46 lines
1.9 KiB
JSON

{
"name": "systemjs",
"version": "2.0.0-dev",
"description": "Dynamic ES module loader",
"repository": {
"type": "git",
"url": "git://github.com/systemjs/systemjs"
},
"author": "Guy Bedford",
"license": "MIT",
"files": [
"dist"
],
"devDependencies": {
"@babel/cli": "^7.0.0-rc.1",
"@babel/core": "^7.0.0-rc.1",
"@babel/plugin-syntax-import-meta": "^7.0.0-rc.1",
"@babel/plugin-transform-modules-systemjs": "^7.0.0-rc.1",
"bluebird": "^3.5.1",
"esm": "^3.0.77",
"mocha": "^5.2.0",
"rollup": "^0.64.1",
"rollup-plugin-replace": "^2.0.0",
"terser": "^3.8.1",
"whatwg-fetch": "^2.0.4"
},
"scripts": {
"build": "npm run build:systemjs && npm run build:sjs && npm run min && npm run build:extras",
"build:systemjs": "rollup -c",
"build:sjs": "rollup -c --environment sjs",
"build:ie11": "cat node_modules/bluebird/js/browser/bluebird.core.js node_modules/whatwg-fetch/fetch.js | terser -c passes=2 -m -o dist/ie11-polyfills.js",
"build:extras": "bash minify-extras.sh",
"min": "npm run min:systemjs && npm run min:sjs",
"min:systemjs": "cd dist && terser system.js -c passes=2 -m --source-map --comments \"/SystemJS \\d/\" -o system.min.js",
"min:sjs": "cd dist && terser s.js -c passes=2 -m --source-map --comments \"/SJS \\d/\" -o s.min.js",
"footprint": "npm run footprint:systemjs && npm run footprint:sjs",
"footprint:systemjs": "terser dist/system.js -c passes=2 -m | gzip -9f | wc -c",
"footprint:sjs": "terser dist/s.js -c passes=2 -m | gzip -9f | wc -c",
"test": "mocha -b -r esm",
"test:rebuild": "babel test/fixtures/es-modules --plugins=@babel/plugin-syntax-import-meta,@babel/plugin-transform-modules-systemjs --out-dir test/fixtures/register-modules",
"test:systemjs": "mocha test/test-traceur.js -u tdd --reporter dot",
"test:sjs": "mocha test/test-production.js -u tdd --reporter dot",
"prepublish": "npm run build"
}
}