Skip to content

Commit

Permalink
Adds preinstall hook to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
rcorral committed Mar 28, 2017
1 parent 42cc824 commit a534dae
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ cd "${REPO_ROOT}"

set -x

# Workaround for https://github.com/dodo/node-unicodetable/issues/6
# The unicode npm package fails to install on most OSes if unicode.org is blacklisting your IP.
export NODE_UNICODETABLE_UNICODEDATA_TXT="$(pwd)/UnicodeData.txt"

npm install
npm rebuild node-sass
CI=true npm test
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"start": "NODE_ENV=production gulp serve",
"build": "NODE_ENV=production gulp build",
"clean": "rm -r ./build",
"preinstall": "./scripts/preinstall.sh",
"eslint": "eslint",
"dev": "NODE_ENV=production gulp serve",
"dev:site": "NODE_ENV=production gulp serve-site",
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions scripts/preinstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

# Workaround for https://github.com/dodo/node-unicodetable/issues/6
# The unicode npm package fails to install on most OSes if unicode.org is blacklisting your IP.
export NODE_UNICODETABLE_UNICODEDATA_TXT="$(pwd)/scripts/npm_dependencies/UnicodeData.txt"

0 comments on commit a534dae

Please sign in to comment.