npm_install.sh
This commit is contained in:
18
llmr.gyp
18
llmr.gyp
@@ -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
4
scripts/npm_install.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd bin
|
||||
npm install
|
||||
Reference in New Issue
Block a user