Permalink
Browse files

Added AMD/node support

  • Loading branch information...
1 parent 60d1455 commit 1bd0707c5b882f37779511989fcce0be589430eb @thedersen committed Jul 30, 2012
Showing with 594 additions and 16 deletions.
  1. +9 −14 buster.js
  2. +8 −0 dist/backbone-validation-amd-min.js
  3. +528 −0 dist/backbone-validation-amd.js
  4. +9 −1 grunt.js
  5. +2 −1 package.json
  6. +7 −0 src/amd-intro.tmpl
  7. +2 −0 src/amd-outro.tmpl
  8. +29 −0 tests/node/mixin.js
View
@@ -1,27 +1,22 @@
var config = exports;
-config['Shared'] = {
+config['Browser'] = {
environment: 'browser',
sources: [
'lib/jquery-1.6.2.js',
'lib/underscore.js',
- 'lib/backbone-0.9.2.js'
+ 'lib/backbone-0.9.2.js',
+ 'dist/backbone-validation.js'
],
tests: [
- 'tests/**/*.js'
- ]
-};
-
-config['Development'] = {
- extends: 'Shared',
- sources: [
- 'dist/backbone-validation.js'
+ 'tests/*.js',
+ 'tests/validators/*.js'
]
};
-config['Minified'] = {
- extends: 'Shared',
- sources: [
- 'dist/backbone-validation-min.js'
+config['Node'] = {
+ environment: 'node',
+ tests: [
+ 'tests/node/*.js'
]
};

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 1bd0707

Please sign in to comment.