npm_install.sh

This commit is contained in:
Mike Morris
2014-07-09 18:16:28 -07:00
parent 824994a5b2
commit d96e2fc782
2 changed files with 16 additions and 6 deletions

View File

@@ -34,22 +34,28 @@
}
},
{
'target_name': 'copy_node_modules',
'target_name': 'npm_install',
'type': 'none',
'hard_dependency': 1,
'copies': [
'actions': [
{
'files': ['bin/node_modules'],
'destination': '<(PRODUCT_DIR)/bin/node_modules'
'action_name': 'npm install',
'inputs': [
'bin/package.json',
],
'outputs': [
'bin/node_modules',
],
'action': ['./scripts/npm_install.sh']
}
]
],
},
{
'target_name': 'build_stylesheet',
'type': 'none',
'hard_dependency': 1,
'dependencies': [
'copy_node_modules'
'npm_install'
],
'actions': [
{

4
scripts/npm_install.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
cd bin
npm install