mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-19 10:59:54 +00:00
Merge pull request #252 from tnguyen14/local-npx
Include all build tools in project's dependencies
This commit is contained in:
commit
5b62d5f92a
@ -24,6 +24,7 @@
|
|||||||
"node-gyp": "^3.6.2",
|
"node-gyp": "^3.6.2",
|
||||||
"node-sass": "^4.5.3",
|
"node-sass": "^4.5.3",
|
||||||
"npmlog": "4.1.0",
|
"npmlog": "4.1.0",
|
||||||
|
"npx": "^9.7.1",
|
||||||
"pug": "2.0.0-beta11",
|
"pug": "2.0.0-beta11",
|
||||||
"pug-html-loader": "1.0.9",
|
"pug-html-loader": "1.0.9",
|
||||||
"pug-loader": "2.3.0",
|
"pug-loader": "2.3.0",
|
||||||
@ -42,7 +43,8 @@
|
|||||||
"url-loader": "0.5.7",
|
"url-loader": "0.5.7",
|
||||||
"val-loader": "0.5.0",
|
"val-loader": "0.5.0",
|
||||||
"webpack": "^3.0.0",
|
"webpack": "^3.0.0",
|
||||||
"yaml-loader": "0.4.0"
|
"yaml-loader": "0.4.0",
|
||||||
|
"yarn": "^1.3.2"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "org.terminus",
|
"appId": "org.terminus",
|
||||||
|
@ -4,16 +4,19 @@ const path = require('path')
|
|||||||
const vars = require('./vars')
|
const vars = require('./vars')
|
||||||
const log = require('npmlog')
|
const log = require('npmlog')
|
||||||
|
|
||||||
|
const localBinPath = path.resolve(__dirname, '../node_modules/.bin');
|
||||||
|
const npx = `${localBinPath}/npx`;
|
||||||
|
|
||||||
log.info('deps', 'app')
|
log.info('deps', 'app')
|
||||||
sh.exec('yarn install')
|
sh.exec(`${npx} yarn install`)
|
||||||
|
|
||||||
sh.cd('app')
|
sh.cd('app')
|
||||||
sh.exec('yarn install')
|
sh.exec(`${npx} yarn install`)
|
||||||
sh.cd('..')
|
sh.cd('..')
|
||||||
|
|
||||||
vars.builtinPlugins.forEach(plugin => {
|
vars.builtinPlugins.forEach(plugin => {
|
||||||
log.info('deps', plugin)
|
log.info('deps', plugin)
|
||||||
sh.cd(plugin)
|
sh.cd(plugin)
|
||||||
sh.exec('yarn install')
|
sh.exec(`${npx} yarn install`)
|
||||||
sh.cd('..')
|
sh.cd('..')
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user