Skip to content

Commit

Permalink
add minified build
Browse files Browse the repository at this point in the history
  • Loading branch information
sghall committed Jul 23, 2017
1 parent 0a887b7 commit cef63d8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
20 changes: 19 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "subunit",
"version": "v0.5.1",
"version": "v0.5.2",
"private": true,
"description": "D3 style selections in WebGL, select into a THREE.js scene graph",
"main": "index.js",
Expand All @@ -10,8 +10,9 @@
"threejs"
],
"scripts": {
"build": "rm -rf dist && mkdir dist && npm run build:lib && npm run build:copy-files",
"build": "rm -rf dist && mkdir dist && npm run build:lib && npm run build:min && npm run build:copy-files",
"build:lib": "rollup --config rollup.config.prd.js",
"build:min": "uglifyjs dist/subunit.js -ecma 5 -c -m -o dist/subunit.min.js",
"build:copy-files": "babel-node ./scripts/copy-files.js",
"start": "rm -rf dist && mkdir dist && rollup -c rollup.config.dev.js --watch"
},
Expand Down Expand Up @@ -46,7 +47,8 @@
"rollup-watch": "^3.2.2",
"systemjs": "^0.20.13",
"systemjs-plugin-babel": "0.0.21",
"three": "^0.85.2"
"three": "^0.85.2",
"uglify-es": "^3.0.26"
},
"dependencies": {
"d3-interpolate": "^1.1.5",
Expand Down
6 changes: 3 additions & 3 deletions scripts/copy-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ function createPackageFile() {
author,
version,
description,
main: './subunit.js',
module: './subunit.js',
'jsnext:main': './subunit.js',
main: './subunit.min.js',
module: './subunit.min.js',
'jsnext:main': './subunit.min.js',
keywords,
repository,
license,
Expand Down

0 comments on commit cef63d8

Please sign in to comment.