Permalink
Browse files

Initial commit, extracted from https://github.com/testacular/testacular

  • Loading branch information...
0 parents commit f018496654ee01a0ffa214907b54641d050d7de2 @vojtajina vojtajina committed Jan 27, 2013
Showing with 2,138 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +7 −0 .npmignore
  3. +61 −0 Gruntfile.coffee
  4. +14 −0 lib/index.js
  5. +1,981 −0 lib/require.js
  6. +32 −0 package.json
  7. +16 −0 src/adapter.js
  8. +5 −0 src/adapter.wrapper
  9. +20 −0 tasks/build.js
@@ -0,0 +1,2 @@
+lib/adapter.js
+node_modules
@@ -0,0 +1,7 @@
+.*
+src
+test
+tasks
+
+Gruntfile.coffee
+testacular.conf.js
@@ -0,0 +1,61 @@
+module.exports = (grunt) ->
+ grunt.initConfig
+ pkgFile: 'package.json'
+
+ files:
+ adapter: ['src/adapter.js']
+
+ build:
+ adapter: '<%= files.adapter %>'
+
+ # JSHint options
+ # http://www.jshint.com/options/
+ jshint:
+ adapter:
+ files:
+ src: '<%= files.adapter %>'
+ options:
+ browser: true,
+ es5: true,
+ strict: false
+ undef: false
+ camelcase: false
+
+ options:
+ quotmark: 'single'
+ camelcase: true
+ strict: true
+ trailing: true
+ curly: true
+ eqeqeq: true
+ immed: true
+ latedef: true
+ newcap: true
+ noarg: true
+ sub: true
+ undef: true
+ boss: true
+ globals: {}
+
+ testacular:
+ adapter:
+ configFile: 'testacular.conf.js'
+ autoWatch: false
+ singleRun: true
+ reporters: ['dots']
+
+ grunt.loadTasks 'tasks'
+ # grunt.loadTasks '../testacular/tasks'
+ grunt.loadNpmTasks 'grunt-contrib-jshint'
+ grunt.loadNpmTasks 'gruntacular'
+
+ grunt.registerTask 'default', ['build', 'jshint', 'test']
+ grunt.registerTask 'test', ['testacular']
+
+ # TODO(vojta): release task
+ # grunt.registerTask 'release', 'Build, bump and publish to NPM.', (type) ->
+ # grunt.task.run [
+ # 'build',
+ # "bump:#{type||'patch'}",
+ # 'npm-publish'
+ # ]
@@ -0,0 +1,14 @@
+var createPattern = function(path) {
+ return {pattern: path, included: true, served: true, watched: false};
+};
+
+var initRequireJs = function(files) {
+ files.unshift(createPattern(__dirname + '/adapter.js'));
+ files.unshift(createPattern(__dirname + '/require.js'));
+};
+
+initRequireJs.$inject = ['config.files'];
+
+module.exports = {
+ 'framework:requirejs': ['factory', initRequireJs]
+};
Oops, something went wrong.

0 comments on commit f018496

Please sign in to comment.