Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

moved `src/coffee-script/*.coffee` to `src` as per discussion in #1246

  • Loading branch information...
commit c2a43f70f2eb443b8a5eb76c3aa1109f3449ae47 1 parent c222da9
@michaelficarra michaelficarra authored
View
13 Cakefile
@@ -22,11 +22,9 @@ header = """
"""
sources = [
- 'coffee-script.coffee', 'grammar.coffee'
- 'helpers.coffee', 'lexer.coffee', 'nodes.coffee'
- 'rewriter.coffee', 'scope.coffee'
-].map (filename) ->
- 'src/coffee-script/' + filename
+ 'coffee-script', 'grammar', 'helpers'
+ 'lexer', 'nodes', 'rewriter', 'scope'
+].map (filename) -> "src/#{filename}.coffee"
# Run a CoffeeScript through our node/coffee interpreter.
run = (args, cb) ->
@@ -64,7 +62,8 @@ task 'install', 'install CoffeeScript into /usr/local (or --prefix)', (options)
task 'build', 'build the CoffeeScript language from source', build = (cb) ->
files = fs.readdirSync 'src'
- run ['-c', '-o', 'lib', 'src']
+ files = ('src/' + file for file in files when file.match(/\.coffee$/))
+ run ['-c', '-o', 'lib/coffee-script'].concat(files), cb
task 'build:full', 'rebuild the source twice, and run the tests', ->
@@ -116,7 +115,7 @@ task 'doc:site', 'watch and continually rebuild the documentation for the websit
task 'doc:source', 'rebuild the internal documentation', ->
- exec 'docco src/coffee-script/*.coffee && cp -rf docs documentation && rm -r docs', (err) ->
+ exec 'docco src/*.coffee && cp -rf docs documentation && rm -r docs', (err) ->
throw err if err
View
0  src/coffee-script/browser.coffee → src/browser.coffee
File renamed without changes
View
0  src/coffee-script/cake.coffee → src/cake.coffee
File renamed without changes
View
0  src/coffee-script/coffee-script.coffee → src/coffee-script.coffee
File renamed without changes
View
0  src/coffee-script/command.coffee → src/command.coffee
File renamed without changes
View
0  src/coffee-script/grammar.coffee → src/grammar.coffee
File renamed without changes
View
0  src/coffee-script/helpers.coffee → src/helpers.coffee
File renamed without changes
View
0  src/coffee-script/index.coffee → src/index.coffee
File renamed without changes
View
0  src/coffee-script/lexer.coffee → src/lexer.coffee
File renamed without changes
View
0  src/coffee-script/nodes.coffee → src/nodes.coffee
File renamed without changes
View
0  src/coffee-script/optparse.coffee → src/optparse.coffee
File renamed without changes
View
0  src/coffee-script/repl.coffee → src/repl.coffee
File renamed without changes
View
0  src/coffee-script/rewriter.coffee → src/rewriter.coffee
File renamed without changes
View
0  src/coffee-script/scope.coffee → src/scope.coffee
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.