Skip to content

Commit cd3dfd7

Browse files
committed
Add action "npm install" for node projects
1 parent 7f94c5b commit cd3dfd7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

core/cb.project/node/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ module.exports = {
1111
name: "npm start",
1212
id: "run",
1313
script: path.resolve(__dirname, "run.sh")
14+
},
15+
{
16+
name: "npm install",
17+
id: "install",
18+
script: path.resolve(__dirname, "install.sh")
1419
}
1520
],
1621

core/cb.project/node/install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
WORKSPACE=$1
4+
5+
# Install dependencies with npm
6+
npm install

0 commit comments

Comments
 (0)