moved `src/coffee-script/*.coffee` to `src` as per discussion in #1246
This commit is contained in:
parent
c222da9dd6
commit
c2a43f70f2
13
Cakefile
13
Cakefile
|
@ -22,11 +22,9 @@ header = """
|
||||||
"""
|
"""
|
||||||
|
|
||||||
sources = [
|
sources = [
|
||||||
'coffee-script.coffee', 'grammar.coffee'
|
'coffee-script', 'grammar', 'helpers'
|
||||||
'helpers.coffee', 'lexer.coffee', 'nodes.coffee'
|
'lexer', 'nodes', 'rewriter', 'scope'
|
||||||
'rewriter.coffee', 'scope.coffee'
|
].map (filename) -> "src/#{filename}.coffee"
|
||||||
].map (filename) ->
|
|
||||||
'src/coffee-script/' + filename
|
|
||||||
|
|
||||||
# Run a CoffeeScript through our node/coffee interpreter.
|
# Run a CoffeeScript through our node/coffee interpreter.
|
||||||
run = (args, cb) ->
|
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) ->
|
task 'build', 'build the CoffeeScript language from source', build = (cb) ->
|
||||||
files = fs.readdirSync 'src'
|
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', ->
|
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', ->
|
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
|
throw err if err
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue