-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40e99e9
commit 14e720d
Showing
3 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
}, | ||
"homepage": "https://github.com/mzabriskie/rackt-cli", | ||
"dependencies": { | ||
"babel": "^5.5.8", | ||
"babel-core": "^5.5.6", | ||
"babel-loader": "^5.1.4", | ||
"karma": "^0.12.36", | ||
|
@@ -35,7 +36,7 @@ | |
"minimist": "^1.1.1", | ||
"mocha": "^2.2.5", | ||
"react": "^0.13.3", | ||
"rf-release": "^0.4.0", | ||
"rf-release": "[email protected]:mzabriskie/rf-release.git", | ||
"webpack": "^1.9.10", | ||
"webpack-dev-server": "^1.9.0" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
#!/bin/bash -e | ||
|
||
BUILD="$RACKT_PATH/node_modules/.bin/webpack --devtool source-map --config $RACKT_PATH/webpack.build.js" | ||
babel=$RACKT_PATH/node_modules/.bin/babel | ||
webpack=$RACKT_PATH/node_modules/.bin/webpack | ||
BUILD="$webpack --devtool source-map --config $RACKT_PATH/webpack.build.js" | ||
|
||
# Clean old build | ||
rm -rf build/ | ||
|
||
# Transpile ES6 | ||
$babel -d build/lib ./lib | ||
|
||
# Generate bundle | ||
mkdir -p dist | ||
eval $BUILD | ||
eval "MINIFY=1 $BUILD" | ||
|
||
# Copy package | ||
cp README.md build/ | ||
node -p 'p=require("./package");p.main="lib/main.js";p.scripts=p.devDependencies=undefined;JSON.stringify(p,null,2)' > build/package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters