Skip to content

Commit

Permalink
Add clean step to build
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Nov 10, 2017
1 parent a9295dc commit c42dfc6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"prestart": "run-s build",
"version": "run-s release",
"prepublish": "run-s build",
"build": "run-p build:*",
"build": "rimraf build && mkdirp build && run-p build:*",
"build:bundle": "cross-env NODE_ENV=production webpack --config webpack.config.babel.js",
"build:umd": "cross-env NODE_ENV=production webpack --config webpack.umd.config.babel.js",
"prebuild": "mkdirp build",
Expand Down Expand Up @@ -61,6 +61,7 @@
"preact-compat": "^3.15.0",
"prettier": "^1.6.1",
"raw-loader": "^0.5.1",
"rimraf": "^2.6.2",
"serve": "^6.0.0",
"source-map-loader": "^0.2.1",
"url-loader": "^0.5.8",
Expand Down
4 changes: 0 additions & 4 deletions script/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ const version = require("../package.json").releaseVersion;

console.log("Building new release for ", version);

console.log("Cleaning build folder");
exec("rm -rf build");
exec("mkdir -p build");

exec("yarn");
exec("yarn build");

Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5249,7 +5249,7 @@ right-align@^0.1.1:
dependencies:
align-text "^0.1.1"

rimraf@2, rimraf@^2.2.8, rimraf@^2.5.1, rimraf@^2.6.1:
rimraf@2, rimraf@^2.2.8, rimraf@^2.5.1, rimraf@^2.6.1, rimraf@^2.6.2:
version "2.6.2"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36"
dependencies:
Expand Down

0 comments on commit c42dfc6

Please sign in to comment.