Skip to content

Commit

Permalink
Trying pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
relferreira committed Jan 10, 2019
1 parent a1f00bd commit 16e676b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ glide.exe
*.a
*.sublime-project
*.sublime-workspace
dist/
.DS_Store
.idea
vendor/

ui/node_modules
ui/.cache
ui/.cache
ui/dist
7 changes: 4 additions & 3 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
"main": "index.js",
"scripts": {
"start": "parcel index.html",
"build": "NODE_ENV=production parcel build index.html -d ../dist --public-url /ui",
"build": "rimraf ../dist && NODE_ENV=production parcel build index.html -d ../dist --public-url /ui",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"babel-core": "^7.0.0-0",
"husky": "^1.3.1",
"parcel-bundler": "^1.11.0"
"parcel-bundler": "^1.11.0",
"rimraf": "^2.6.3"
},
"dependencies": {
"@emotion/core": "^10.0.5",
Expand All @@ -26,7 +27,7 @@
},
"husky": {
"hooks": {
"pre-commit": "yarn build"
"pre-commit": "yarn build && cd ../ && git add"
}
}
}
2 changes: 1 addition & 1 deletion ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4133,7 +4133,7 @@ rgba-regex@^1.0.0:
version "1.0.0"
resolved "http://registry.npmjs.org/rgba-regex/-/rgba-regex-1.0.0.tgz#43374e2e2ca0968b0ef1523460b7d730ff22eeb3"

rimraf@^2.6.1, rimraf@^2.6.2:
rimraf@^2.6.1, rimraf@^2.6.2, rimraf@^2.6.3:
version "2.6.3"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab"
dependencies:
Expand Down

0 comments on commit 16e676b

Please sign in to comment.