This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b7b07f
commit 9c626de
Showing
14 changed files
with
1,272 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
zanata-war/src/main/webapp/resources/JavaScript-Templates/2_5_3/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.DS_Store | ||
node_modules |
71 changes: 71 additions & 0 deletions
71
zanata-war/src/main/webapp/resources/JavaScript-Templates/2_5_3/Gruntfile.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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']); | ||
|
||
}; |
Oops, something went wrong.