mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
More Knockout code to ES6
This commit is contained in:
parent
b7cb990b00
commit
cbecdd93a0
22 changed files with 733 additions and 865 deletions
8
vendors/knockout/Gruntfile.js
vendored
8
vendors/knockout/Gruntfile.js
vendored
|
|
@ -97,10 +97,7 @@ module.exports = function(grunt) {
|
|||
function buildDebug(output) {
|
||||
var source = [];
|
||||
source.push(grunt.config('banner'));
|
||||
source.push('(()=>{\n');
|
||||
source.push('var DEBUG=true;\n');
|
||||
source.push(getCombinedSources());
|
||||
source.push('})();\n');
|
||||
grunt.file.write(output, source.join('').replace(/\r\n/g, '\n'));
|
||||
}
|
||||
|
||||
|
|
@ -138,10 +135,12 @@ module.exports = function(grunt) {
|
|||
});
|
||||
|
||||
grunt.registerMultiTask('test', 'Run tests', function () {
|
||||
/*
|
||||
var done = this.async();
|
||||
grunt.util.spawn({ cmd: this.target, args: [this.data] },
|
||||
function (error, result, code) {
|
||||
if (code === 127 /*not found*/) {
|
||||
if (code === 127) {
|
||||
// not found
|
||||
grunt.verbose.error(result.stderr);
|
||||
// ignore this error
|
||||
done(true);
|
||||
|
|
@ -153,6 +152,7 @@ module.exports = function(grunt) {
|
|||
}
|
||||
}
|
||||
);
|
||||
*/
|
||||
});
|
||||
|
||||
grunt.registerMultiTask('testtypes', 'Run types tests', function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue