Permalink
Browse files

Upgraded to CoffeeScript-based config file

  • Loading branch information...
1 parent 65f9052 commit c87c340537012c4532a9ae9fb5a300c3ae982c52 Kevin Malakoff committed Jun 16, 2012
Showing with 84 additions and 76 deletions.
  1. +1 −1 Cakefile
  2. +79 −0 easy-bake-config.coffee
  3. +0 −74 easy-bake-config.yml
  4. +4 −1 package.json
View
2 Cakefile
@@ -1,2 +1,2 @@
easybake = require('easy-bake')
-(new easybake.Oven('easy-bake-config.yml')).publishTasks()
+(new easybake.Oven('easy-bake-config.coffee')).publishTasks()
View
79 easy-bake-config.coffee
@@ -0,0 +1,79 @@
+module.exports =
+ library:
+ join: 'knockback.js'
+ compress: true
+ files: [
+ 'src/knockback_core.coffee'
+ 'src/knockback_utils.coffee'
+ 'src/knockback_ref_countable.coffee'
+ 'src/knockback_store.coffee'
+ 'src/knockback_collection_observable.coffee'
+ 'src/knockback_default_wrapper.coffee'
+ 'src/knockback_formatted_observable.coffee'
+ 'src/knockback_localized_observable.coffee'
+ 'src/knockback_observable.coffee'
+ 'src/knockback_observables.coffee'
+ 'src/knockback_triggered_observable.coffee'
+ 'src/knockback_attribute_connectors.coffee'
+ 'src/knockback_view_model.coffee'
+ ]
+ modes:
+ build:
+ commands: [
+ 'cp knockback.js packages/npm/knockback.js'
+ 'cp knockback.min.js packages/npm/knockback.min.js'
+ 'cp knockback.js packages/nuget/Content/Scripts/knockback.js'
+ 'cp knockback.min.js packages/nuget/Content/Scripts/knockback.min.js'
+ ]
+
+ _examples:
+ join: '_examples.js'
+ output: 'test/_examples/build'
+ files: [
+ 'test/_examples/contact.coffee'
+ 'test/_examples/locale_manager.coffee'
+ 'test/_examples/localized_observables.coffee'
+ 'test/_examples/localized_string.coffee'
+ ]
+
+ tests:
+ output: 'build'
+ directories: [
+ 'test/knockback_legacy'
+ 'test/knockback_utils'
+ 'test/backbone_modelref'
+ 'test/backbone_relational'
+ 'test/knockback_collection_observable'
+ 'test/knockback_formatted_observable'
+ 'test/knockback_localized_observable'
+ 'test/knockback_observable'
+ 'test/knockback_observables'
+ 'test/knockback_triggered_observable'
+ 'test/knockback_view_model'
+ 'test/knockback_memory_management'
+ 'test/packaging'
+ ]
+ modes:
+ build:
+ bundles:
+ 'test/packaging/build/bundle-latest.js':
+ underscore: 'underscore'
+ backbone: 'backbone'
+ 'backbone-modelref': 'backbone-modelref'
+ knockout: 'vendor/knockout-latest.js'
+ knockback: 'knockback.js'
+ 'knockback-examples': 'test/_examples/build/_examples.js'
+ no_files_ok: 'test/packaging'
+ test:
+ command: 'phantomjs'
+ runner: 'phantomjs-qunit-runner.js'
+ files: '**/*.html'
+
+ postinstall:
+ commands: [
+ 'cp underscore vendor/underscore-latest.js'
+ 'cp backbone vendor/backbone-latest.js'
+ 'cp backbone-modelref vendor/backbone-modelref-latest.js'
+ 'cp backbone-relational vendor/backbone-relational-latest.js'
+ 'cp knockout-client/knockout.debug.js vendor/knockout-latest.js'
+ ]
View
74 easy-bake-config.yml
@@ -1,74 +0,0 @@
-library:
- join: knockback.js
- compress: true
- files:
- - src/knockback_core.coffee
- - src/knockback_utils.coffee
- - src/knockback_ref_countable.coffee
- - src/knockback_store.coffee
- - src/knockback_collection_observable.coffee
- - src/knockback_default_wrapper.coffee
- - src/knockback_formatted_observable.coffee
- - src/knockback_localized_observable.coffee
- - src/knockback_observable.coffee
- - src/knockback_observables.coffee
- - src/knockback_triggered_observable.coffee
- - src/knockback_attribute_connectors.coffee
- - src/knockback_view_model.coffee
- modes:
- build:
- commands:
- - 'cp knockback.js packages/npm/knockback.js'
- - 'cp knockback.min.js packages/npm/knockback.min.js'
- - 'cp knockback.js packages/nuget/Content/Scripts/knockback.js'
- - 'cp knockback.min.js packages/nuget/Content/Scripts/knockback.min.js'
-
-_examples:
- join: _examples.js
- output: test/_examples/build
- files:
- - test/_examples/contact.coffee
- - test/_examples/locale_manager.coffee
- - test/_examples/localized_observables.coffee
- - test/_examples/localized_string.coffee
-
-tests:
- output: build
- directories:
- - test/knockback_legacy
- - test/knockback_utils
- - test/backbone_modelref
- - test/backbone_relational
- - test/knockback_collection_observable
- - test/knockback_formatted_observable
- - test/knockback_localized_observable
- - test/knockback_observable
- - test/knockback_observables
- - test/knockback_triggered_observable
- - test/knockback_view_model
- - test/knockback_memory_management
- - test/packaging
- modes:
- build:
- bundles:
- test/packaging/build/bundle-latest.js:
- underscore: underscore
- backbone: backbone
- backbone-modelref: backbone-modelref
- knockout: vendor/knockout-latest.js
- knockback: knockback.js
- knockback-examples: test/_examples/build/_examples.js
- no_files_ok: ['test/packaging']
- test:
- command: phantomjs
- runner: phantomjs-qunit-runner.js
- files:
- - '**/*.html'
-
-postinstall:
- commands:
- - 'cp underscore vendor/underscore-latest.js'
- - 'cp backbone vendor/backbone-latest.js'
- - 'cp backbone-modelref vendor/backbone-modelref-latest.js'
- - 'cp backbone-relational vendor/backbone-relational-latest.js'
- - 'cp knockout-client/knockout.debug.js vendor/knockout-latest.js'
View
5 package.json
@@ -12,10 +12,13 @@
},
"scripts": {
- "preinstall": "npm install coffee-script; npm install easy-bake@0.1.2",
"postinstall": "cake postinstall",
"test": "cake -c -b test"
},
+ "devDependencies": {
+ "coffee-script": ">=1.3.3",
+ "easy-bake": "0.1.2"
+ },
"optionalDependencies": {
"underscore": ">=1.3.3",
"backbone": ">=0.9.2",

0 comments on commit c87c340

Please sign in to comment.