mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
cake build:browser should just assemble the browser build, not also test it; add cake build:browser:full to additionally run the tests
This commit is contained in:
7
Cakefile
7
Cakefile
@@ -116,7 +116,7 @@ task 'build:full', 'build the CoffeeScript compiler from source twice, and run t
|
||||
build ->
|
||||
build testBuiltCode
|
||||
|
||||
task 'build:browser', 'build the merged script for inclusion in the browser', ->
|
||||
task 'build:browser', 'merge the built scripts into a single file for use in a browser', ->
|
||||
code = """
|
||||
require['../../package.json'] = (function() {
|
||||
return #{fs.readFileSync "./package.json"};
|
||||
@@ -154,6 +154,9 @@ task 'build:browser', 'build the merged script for inclusion in the browser', ->
|
||||
outputFolder = "docs/v#{majorVersion}/browser-compiler"
|
||||
fs.mkdirSync outputFolder unless fs.existsSync outputFolder
|
||||
fs.writeFileSync "#{outputFolder}/coffee-script.js", header + '\n' + code
|
||||
|
||||
task 'build:browser:full', 'merge the built scripts into a single file for use in a browser, and test it', ->
|
||||
invoke 'build:browser'
|
||||
console.log "built ... running browser tests:"
|
||||
invoke 'test:browser'
|
||||
|
||||
@@ -321,7 +324,7 @@ task 'doc:source:watch', 'watch and continually rebuild the annotated source doc
|
||||
|
||||
task 'release', 'build and test the CoffeeScript source, and build the documentation', ->
|
||||
invoke 'build:full'
|
||||
invoke 'build:browser'
|
||||
invoke 'build:browser:full'
|
||||
invoke 'doc:site'
|
||||
invoke 'doc:test'
|
||||
invoke 'doc:source'
|
||||
|
||||
Reference in New Issue
Block a user