Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
add javascript templates library
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Apr 2, 2014
1 parent 5b7b07f commit 9c626de
Show file tree
Hide file tree
Showing 14 changed files with 1,272 additions and 0 deletions.
@@ -0,0 +1,2 @@
.DS_Store
node_modules
@@ -0,0 +1,71 @@
/*
* JavaScript Templates Gruntfile
* https://github.com/blueimp/JavaScript-Templates
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/

/*global module */

module.exports = function (grunt) {
'use strict';

grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'js/compile.js',
'js/demo.js',
'js/runtime.js',
'js/tmpl.js',
'test/test.js'
]
},
simplemocha: {
options: {
ignoreLeaks: false,
ui: 'bdd',
reporter: 'spec'
},
all: {
src: ['test/test.js']
}
},
mocha: {
all: {
src: ['test/index.html'],
options: {
run: true,
bail: true,
log: true,
reporter: 'Spec'
},
mocha: {
ignoreLeaks: false
}
}
},
uglify: {
production: {
src: [
'js/tmpl.js'
],
dest: 'js/tmpl.min.js'
}
}
});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-mocha');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-bump-build-git');

grunt.registerTask('test', ['jshint', 'simplemocha', 'mocha']);
grunt.registerTask('default', ['test', 'uglify']);

};

0 comments on commit 9c626de

Please sign in to comment.