From 121cfe190c97782edc0bc563f6b77967fbde6adb Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Oct 12 2015 05:52:59 +0000 Subject: updated build script to make tarballs --- diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.0 diff --git a/package.json b/package.json index c22374f..3174486 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,11 @@ "main": "./src/index.js", "scripts": { "test": "standard", - "build": "webpack && mkdir -p dist/ && mv bundle.css dist/fedora-bootstrap.css && mv bundle.js dist/fedora-bootstrap.js && webpack -p && mv bundle.css dist/fedora-bootstrap.min.css && mv bundle.js dist/fedora-bootstrap.min.js", + "build-unminified": "webpack && mkdir -p dist/ && mv bundle.css dist/fedora-bootstrap.css && mv bundle.js dist/fedora-bootstrap.js", + "build-minified": "webpack -p && mv bundle.css dist/fedora-bootstrap.min.css && mv bundle.js dist/fedora-bootstrap.min.js", + "build": "npm run build-unminified && npm run build-minified", + "clean": "rm -r dist/", + "tarball": "npm run clean && npm run build && pushd dist/ && tar -cvzf fedorabootstrap-$(cat ../VERSION).tar.gz * && popd", "start": "webpack-dev-server -d --progress --colors --inline --hot --port 8000" }, "author": "Ryan Lerch ",