Skip to content

Commit b69b93f

Browse files
committed
Correct dependencies
1 parent 203a319 commit b69b93f

File tree

6 files changed

+17
-14
lines changed

6 files changed

+17
-14
lines changed

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ vendor/*
33
**/*.coffee
44
Cakefile
55
*.md
6+
*.log
67
.npmignore
78
.travis.yml

Cakefile

+11-10
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ util = require 'util'
44
{inspect} = util
55
fs = require 'fs'
66
path = require 'path'
7-
extrafs = require './node_modules/fs-extra'
7+
#extrafs = require './node_modules/fs-extra'
88
coffee = require './node_modules/coffee-script'
99
_ = require './node_modules/underscore'
1010

11+
exec = (cmd, options, callback=null)->
12+
log "Executing `#{cmd}`"
13+
require('child_process').exec cmd, options, callback
14+
1115
# ## compileCoffeescripts(directory, option={})
1216
#
1317
# Compile all the coffeescripts into javascript files from a directory
@@ -43,10 +47,6 @@ compileCoffeescripts = (directory, options={})->
4347
# Generate doc with [docco-husky](https://github.com/mbrevoort/docco-husky)
4448
# and push it to the `gh-pages` branch.
4549
generateDoccoHusky = (directories)->
46-
exec = (cmd, options, callback=null)->
47-
log "Executing `#{cmd}`"
48-
require('child_process').exec cmd, options, callback
49-
5050
directories = (_.flatten([directories])).join ' '
5151
directory = path.resolve './'
5252

@@ -60,8 +60,7 @@ generateDoccoHusky = (directories)->
6060
error err if err?
6161
log stdout
6262

63-
# Change branch to gh-pages
64-
63+
# Change branch to gh-pages
6564
exec "git checkout gh-pages", {cwd:tmp}, (err, stdout, stderr)->
6665
log 'testststst #{err}'
6766
error err if err?
@@ -88,7 +87,7 @@ generateDoccoHusky = (directories)->
8887
log stdout
8988

9089
# Remove the docs directory
91-
extrafs.remove 'docs', ->
90+
exec "rm docs"
9291

9392

9493
task 'doc', 'Regenerate doc', (options)->
@@ -99,6 +98,8 @@ task 'build', 'build scripts to be compatible with js', ->
9998
compileCoffeescripts 'lib'
10099

101100
task 'clean', 'Remove all js files', ->
102-
extrafs.remove 'bin/ready.js', ->
103-
exec 'rm lib/*.js'
101+
exec 'rm bin/ready.js', (err, stdout, stderr)->
102+
log stderr
103+
exec 'rm lib/*.js', (err, stdout, stderr)->
104+
log stdout
104105

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
![alt text](http://s3.amazonaws.com/files.posterous.com/headers/2452232/scaled500.png "ready.js - continuous javascript integration")
2-
[![Build Status](https://travis-ci.org/dsimard/ready.js.png?branch=2012-12-30_v3.0)](https://travis-ci.org/dsimard/ready.js)
2+
[![Build Status](https://travis-ci.org/dsimard/ready.js.png?branch=master)](https://travis-ci.org/dsimard/ready.js)
33

44
## What does it do?
55
1. Check if your javascript files are valid with [jshint](http://www.jshint.com/).

bin/ready.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
{inspect} = require 'util'
44
path = require 'path'
55
fs = require 'fs'
6+
extrafs = require '../node_modules/fs-extra'
67
ready = require '../lib/'
78
output = require '../lib/output'
8-
extrafs = require 'fs-extra'
99

1010
optimist = require('optimist')
1111
.usage('\nUsage: $0 [FILES OR DIRECTORIES] [options]')

lib/reporter.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{inspect} = require 'util'
2-
_ = require 'underscore'
2+
_ = require '../node_modules/underscore'
33

44
# Format jshint errors (see <https://github.com/jshint/jshint/tree/master/src/reporters>)
55
reporter = (filename, errors)->

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"underscore" : "~1.4.3",
2929
"async" : "~0.1.22",
3030
"readdirp" : ">= 0.2.2",
31-
"minimatch" : "~0.2.9"
31+
"minimatch" : "~0.2.9",
32+
"fs-extra" : "~0.3.2"
3233
},
3334
"devDependencies" : {
3435
"mocha" : "latest",

0 commit comments

Comments
 (0)