Install build dependencies in tasks/node_modules

This commit is contained in:
Kevin Sawicki 2013-11-21 09:43:11 -08:00
parent 690ffab9c0
commit 601466782f
5 changed files with 30 additions and 3 deletions

View File

@ -35,6 +35,7 @@ var echoNewLine = process.platform == 'win32' ? 'echo.' : 'echo';
var commands = [
'git submodule --quiet sync',
'git submodule --quiet update --recursive --init',
{command: 'npm install --quiet', options: {cwd: path.resolve(__dirname, '..', 'build'), ignoreStdout: true}},
{command: 'npm install --quiet', options: {cwd: apmVendorPath, ignoreStdout: true}},
{command: 'npm install --quiet ' + apmVendorPath, options: {cwd: apmInstallPath, ignoreStdout: true}},
{command: 'npm install --quiet ' + apmVendorPath, options: {ignoreStdout: true}},

View File

@ -6,6 +6,6 @@ process.chdir(path.dirname(__dirname));
cp.safeExec('node script/bootstrap', function() {
// node_modules/.bin/grunt "$@"
var gruntPath = path.join('node_modules', '.bin', 'grunt') + (process.platform === 'win32' ? '.cmd' : '');
var gruntPath = path.join('tasks', 'node_modules', '.bin', 'grunt') + (process.platform === 'win32' ? '.cmd' : '');
cp.safeSpawn(gruntPath, process.argv.slice(2), process.exit);
});

View File

@ -36,7 +36,7 @@ cp.safeExec.bind(global, 'node script/bootstrap', function(error) {
cp.safeExec.bind(global, gruntPath + ' ci --stack --no-color'),
]
if (process.platform === 'darwin') {
tasks.push(cp.safeExec.bind(global, 'node_modules/.bin/coffee script/upload-release'))
tasks.push(cp.safeExec.bind(global, 'build/node_modules/.bin/coffee script/upload-release'))
}
async.series(tasks, function(error) {
process.exit(error ? 1 : 0);

View File

@ -3,7 +3,7 @@ fs = require 'fs'
module.exports = (grunt) ->
cmd = path.join('node_modules', '.bin', 'coffee')
commonArgs = [path.join('node_modules', '.bin', 'biscotto'), '--']
commonArgs = [path.join('tasks', 'node_modules', '.bin', 'biscotto'), '--']
opts =
stdio: 'inherit'

26
tasks/package.json Normal file
View File

@ -0,0 +1,26 @@
{
"dependencies": {
"biscotto": "0.0.17",
"formidable": "~1.0.14",
"fstream": "0.1.24",
"grunt": "~0.4.1",
"grunt-cli": "~0.1.9",
"grunt-coffeelint": "git://github.com/atom/grunt-coffeelint.git",
"grunt-lesslint": "0.13.0",
"grunt-cson": "0.5.0",
"grunt-contrib-csslint": "~0.1.2",
"grunt-contrib-coffee": "~0.7.0",
"grunt-contrib-less": "~0.8.0",
"walkdir": "0.0.7",
"js-yaml": "~2.1.0",
"grunt-markdown": "~0.4.0",
"json-front-matter": "~0.1.3",
"grunt-shell": "~0.3.1",
"jasmine-node": "git://github.com/kevinsawicki/jasmine-node.git#short-stacks",
"jasmine-tagged": "0.2.0",
"request": "~2.27.0",
"unzip": "~0.1.9",
"rcedit": "~0.1.2",
"rimraf": "~2.2.2"
}
}