Software: Apache. PHP/5.3.29 uname -a: Linux tardis23.nocplanet.net 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024
Safe-mode: OFF (not secure) /home/memoriacel/public_html/2018/panel/summernote-master/grunts/ drwxr-xr-x | |
| Viewing file: Select action/file-type: module.exports = function (grunt) {
'use strict';
var requirejs = require('requirejs');
var path = require('path');
var rDefineStart = /define\([^{]*?{/;
var rDefineEndWithReturn = /\s*return\s+[^\}]+(\}\);[^\w\}]*)$/;
var rDefineEnd = /\}\);[^}\w]*$/;
grunt.registerMultiTask('build', 'concatenate source: summernote.js', function () {
/**
* Strip all definitions generated by requirejs
*
* @param {String} name
* @param {String} path
* @param {String} contents The contents to be written (including their AMD wrappers)
*/
var convert = function (name, path, contents) {
contents = contents.replace(rDefineStart, '');
if (rDefineEndWithReturn.test(contents)) {
contents = contents.replace(rDefineEndWithReturn, '');
} else {
contents = contents.replace(rDefineEnd, '');
}
return contents;
};
var outputPath = this.data.outFile;
/**
* Handle final output from the optimizer
*/
var out = function (compiled) {
// 01. Embed version
var version = grunt.config('pkg.version');
compiled = compiled.replace(/@VERSION/g, version);
// 02. Embed Date
var date = (new Date()).toISOString().replace(/:\d+\.\d+Z$/, 'Z');
compiled = compiled.replace(/@DATE/g, date);
grunt.file.write(outputPath, compiled);
};
var config = {
name: 'summernote/summernote',
baseUrl: this.data.baseUrl,
out: out,
optimize: 'none',
wrap: {
startFile: path.join(this.data.baseUrl, this.data.startFile),
endFile: path.join(this.data.baseUrl, this.data.endFile)
},
findNestedDependencies: true,
skipSemiColonInsertion: true,
onBuildWrite: convert,
excludeShallow: ['jquery', 'CodeMirror', 'app'],
paths: {
jquery: 'empty:',
CodeMirror: 'empty:'
},
packages: [{
name: 'summernote',
location: './',
main: 'summernote'
}]
};
var done = this.async();
requirejs.optimize(config, function () {
done();
}, function (err) {
done(err);
});
});
};
|
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.049 ]-- |