Skip to content

Commit e1066ef

Browse files
author
Kyle Morse
committed
Upgrade dependencies to support node > 7 and windows 10
1 parent 25f7db6 commit e1066ef

8 files changed

Lines changed: 28 additions & 30 deletions

File tree

bin/run.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ init = (args) ->
3232

3333
clone = (args) ->
3434
{org, repo, templates} = args
35-
organization = args._[1] || org
35+
organization = args._[1] || org || args.organization
3636
repo = args._[2] || repo
3737
if !organization
3838
console.error 'Please specify an organization when using the clone command.'

lib/clone.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
fetchGitHubRepo = require("fetch-github-repo")
1+
fetchGitHubRepo = require("rally-fetch-github-repo")
22
_ = require('lodash')
33
fs = require 'fs'
44
path = require 'path'

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Kyle Morse <kyle.morse@ca.com>",
33
"name": "rally-app-builder",
44
"description": "A node module that assists in the building of Rally Apps",
5-
"version": "1.4.1",
5+
"version": "1.5.1",
66
"homepage": "https://github.com/rallyapps/rally-app-builder",
77
"repository": {
88
"type": "git",
@@ -19,13 +19,12 @@
1919
"coffee-script": "1.4.x",
2020
"commander": "0.6.x",
2121
"express": "4.2.x",
22-
"fetch-github-repo": "0.1.2",
23-
"grunt": "~0.4.5",
24-
"grunt-cli": "~0.1.9",
25-
"grunt-contrib-clean": "0.4.x",
26-
"grunt-contrib-concat": "0.3.x",
27-
"grunt-contrib-jasmine": "0.4.x",
28-
"grunt-contrib-watch": "~0.4.4",
22+
"grunt": "1.0.1",
23+
"grunt-cli": "1.2.0",
24+
"grunt-contrib-clean": "1.0.0",
25+
"grunt-contrib-concat": "1.0.1",
26+
"grunt-contrib-jasmine": "1.1.0",
27+
"grunt-contrib-watch": "1.0.0",
2928
"handlebars": "~1.0.11",
3029
"jshint": "~2.9.2",
3130
"less": "~1.7.0",
@@ -34,14 +33,15 @@
3433
"node-watch": "~0.3.4",
3534
"open": "~0.0.5",
3635
"promise-to-validate": "~0.3.0",
36+
"rally-fetch-github-repo": "0.2.2",
3737
"request": "~2.11.4",
3838
"shelljs": "^0.3.0",
3939
"uglify-js": "2.7.3",
4040
"yargs": "4.3.1"
4141
},
4242
"devDependencies": {
43-
"mocha": "1.6.x",
44-
"wrench": "1.3.x",
43+
"fs-extra": "2.0.0",
44+
"mocha": "3.2.x",
4545
"sinon": "^1.10.2"
4646
},
4747
"scripts": {

templates/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"version": "0.1.1",
44
"private": true,
55
"devDependencies": {
6-
"grunt": "~0.4.5",
7-
"grunt-cli": "~0.1.9",
6+
"grunt": "1.0.1",
7+
"grunt-cli": "1.2.0",
88
"grunt-contrib-jasmine": "1.0.3",
9-
"grunt-contrib-jshint": "~0.7.2",
10-
"grunt-contrib-connect": "0.11.2",
9+
"grunt-contrib-jshint": "1.1.0",
10+
"grunt-contrib-connect": "1.0.2",
1111
"rally-sdk2-test-utils": "0.1.2"
1212
},
1313
"scripts": {

test/build.test.coffee

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
assert = require 'assert'
22
rallyAppBuilder = require '../index'
33
fs = require 'fs'
4-
wrench = require 'wrench'
4+
fsextra = require 'fs-extra'
55
path = require 'path'
66
sinon = require 'sinon'
77
shell = require 'shelljs'
@@ -18,7 +18,7 @@ sdk2WithExternalStylesDirectory = path.join(tempTestDirectory, 'sdk2WithExternal
1818
describe 'Build an App', ()->
1919
before (done)->
2020
try
21-
copy = ()-> wrench.copyDirRecursive(fixturesDirectory, tempTestDirectory, done)
21+
copy = ()-> fsextra.copy(fixturesDirectory, tempTestDirectory, done)
2222
fs.mkdir(tempTestDirectory, copy)
2323
catch e
2424
after (done)->
@@ -205,7 +205,7 @@ describe 'Build an App', ()->
205205
assert(appDebugFileContents.indexOf("http://www.regular.com/stuff.css") >= 0)
206206

207207
describe 'with build scripts', ->
208-
208+
209209
beforeEach ->
210210
@config = require('../lib/config')
211211

@@ -246,18 +246,18 @@ describe 'Build an App', ()->
246246

247247
afterEach ->
248248
@sandbox.restore()
249-
249+
250250
it 'should push and pop the app path directory', (done)->
251251
rallyAppBuilder.build.runScript {scripts: {prebuild: 'cmd'}}, 'appPath', 'prebuild', (err)->
252252
assert(shell.pushd.calledWith('appPath'))
253253
assert(shell.pushd.calledBefore(shell.exec))
254254
assert(shell.popd.called)
255255
assert(shell.exec.calledBefore(shell.popd))
256256
done()
257-
257+
258258
it 'should exec the script step', (done)->
259259
rallyAppBuilder.build.runScript {scripts: {prebuild: 'cmd'}}, 'appPath', 'prebuild', (err)->
260-
assert(shell.exec.calledWith('cmd'))
260+
assert(shell.exec.calledWith('cmd'))
261261
done()
262262

263263
it 'should error if attempting and undefined step', (done)->
@@ -270,4 +270,3 @@ describe 'Build an App', ()->
270270
assert(not err?)
271271
assert(not shell.exec.called)
272272
done()
273-

test/clone.test.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ assert = require 'assert'
22
rallyAppBuilder = require '../index'
33
fs = require 'fs'
44
path = require 'path'
5-
wrench = require 'wrench'
5+
fsextra = require 'fs-extra'
66
if process.env.TRAVIS
77
console.log "Clone tests not ran during Travis build process due to timeouts."
88
return
@@ -24,7 +24,7 @@ describe('Clone existing App', ()->
2424
done(e)
2525
after ()->
2626
try
27-
wrench.rmdirSyncRecursive(baseDir)
27+
fsextra.removeSync(baseDir)
2828
catch e
2929

3030
it('should delete the RakeFile', ()->

test/css.test.coffee

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ describe 'CSS', ->
4747
describe '#compileInPlace', ->
4848
fs = require 'fs'
4949
path = require 'path'
50-
wrench = require 'wrench'
50+
fsextra = require 'fs-extra'
5151
tempTestDirectory = 'test/buildTemp'
5252
beforeEach ->
53-
wrench.rmdirSyncRecursive tempTestDirectory
53+
fsextra.removeSync tempTestDirectory
5454
fs.mkdirSync tempTestDirectory
5555

5656
it 'should leave a css file alone', (done) ->
@@ -70,4 +70,3 @@ describe 'CSS', ->
7070
assert content == writtenFile
7171
assert fs.existsSync writtenFile
7272
done()
73-

test/init.test.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
assert = require 'assert'
22
rallyAppBuilder = require '../index'
33
fs = require 'fs'
4-
wrench = require 'wrench'
4+
fsextra = require 'fs-extra'
55
describe('Init new App', ()->
66
baseDir = 'test/initTemp'
77

@@ -11,7 +11,7 @@ describe('Init new App', ()->
1111
catch e
1212
after ()->
1313
try
14-
wrench.rmdirSyncRecursive(baseDir)
14+
fsextra.removeSync(baseDir)
1515
catch e
1616

1717
it('tests files created', (done)->

0 commit comments

Comments
 (0)