Skip to content

Commit ad10895

Browse files
author
Nick Maher
committed
Add build script to react-builds
1 parent 8bea8e1 commit ad10895

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Rakefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ namespace :react do
1919
desc "Build the JS bundles with Webpack"
2020
task :build do
2121
Dir.chdir("react-builds") do
22-
`webpack`
23-
`NODE_ENV=production webpack -p`
22+
`npm run build`
2423
end
2524
end
2625

react-builds/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
"react-addons-update": "^15.3.0",
1616
"react-dom": "^15.3.0",
1717
"webpack": "^1.12.2"
18+
},
19+
"scripts": {
20+
"build": "webpack && NODE_ENV=production webpack -p"
1821
}
1922
}

0 commit comments

Comments
 (0)