Add build script
This commit is contained in:
parent
e2ec5c89f1
commit
501b9ae5d6
2 changed files with 16 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
|||
machine:
|
||||
node:
|
||||
version: 5.2.0
|
||||
version: 5.5.0
|
||||
|
||||
dependencies:
|
||||
pre:
|
||||
- npm install
|
||||
- scripts/build
|
||||
|
||||
test:
|
||||
override:
|
||||
|
|
14
scripts/build
Normal file
14
scripts/build
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -z "$NVM_DIR" ]
|
||||
then
|
||||
NVM_DIR="~/.nvm"
|
||||
fi
|
||||
|
||||
. $NVM_DIR/nvm.sh
|
||||
nvm install
|
||||
nvm use
|
||||
|
||||
set -e
|
||||
|
||||
npm install
|
Reference in a new issue