| Current Path : /home/emeraadmin/public_html/4d695/ |
| Current File : /home/emeraadmin/public_html/4d695/Gruntfile.js.tar |
home/emeraadmin/public_html/node_modules/tempusdominus-bootstrap-4/Gruntfile.js 0000644 00000015565 15167726350 0024172 0 ustar 00 const sass = require('node-sass'), tildeImporter = require('grunt-sass-tilde-importer');
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: '/*@preserve\n' +
' * Tempus Dominus Bootstrap4 v<%= pkg.version %> (<%= pkg.homepage %>)\n' +
' * Copyright 2016-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
' * Licensed under MIT (https://github.com/tempusdominus/bootstrap-3/blob/master/LICENSE)\n' +
' */\n',
jqueryCheck: 'if (typeof jQuery === \'undefined\') {\n' +
' throw new Error(\'Tempus Dominus Bootstrap4\\\'s requires jQuery. jQuery must be included before Tempus Dominus Bootstrap4\\\'s JavaScript.\');\n' +
'}\n',
jqueryVersionCheck: '+function ($) {\n' +
' var version = $.fn.jquery.split(\' \')[0].split(\'.\');\n' +
' if ((version[0] < 2 && version[1] < 9) || (version[0] === 1 && version[1] === 9 && version[2] < 1) || (version[0] >= 4)) {\n' +
' throw new Error(\'Tempus Dominus Bootstrap4\\\'s requires at least jQuery v3.0.0 but less than v4.0.0\');\n' +
' }\n' +
'}(jQuery);\n\n',
momentCheck: 'if (typeof moment === \'undefined\') {\n' +
' throw new Error(\'Tempus Dominus Bootstrap4\\\'s requires moment.js. Moment.js must be included before Tempus Dominus Bootstrap4\\\'s JavaScript.\');\n' +
'}\n',
momentVersionCheck: 'var version = moment.version.split(\'.\')\n' +
'if ((version[0] <= 2 && version[1] < 17) || (version[0] >= 3)) {\n' +
' throw new Error(\'Tempus Dominus Bootstrap4\\\'s requires at least moment.js v2.17.0 but less than v3.0.0\');\n' +
'}\n',
uglify: {
target: {
files: {
'build/js/<%= pkg.name %>.min.js': 'build/js/<%= pkg.name %>.js'
}
},
options: {
mangle: true,
compress: {
dead_code: false // eslint-disable-line
},
output: {
ascii_only: true // eslint-disable-line
},
report: 'min',
preserveComments: 'some'
}
},
eslint: {
options: {
configFile: 'eslintrc.json'
},
target: ['Gruntfile.js', 'src/js/*.js', 'test/*.js']
},
babel: {
dev: {
options: {
sourceMap: false,
compact: false
},
files: {
'build/js/<%= pkg.name %>.js': 'src/js/<%= pkg.name %>.js'
}
},
dist: {
options: {
compact: false,
'presets': [
[
'es2015',
{
'modules': false,
'loose': true
}
]
],
'plugins': [
'transform-es2015-modules-strip'
]
},
files: {
'build/js/<%= pkg.name %>.js': 'build/js/<%= pkg.name %>.js'
}
}
},
concat: {
options: {
// Custom function to remove all export and import statements
process: function (src) {
return src.replace(/^(export|import).*/gm, '');
}
},
bootstrap: {
src: [
'node_modules/tempusdominus-core/src/js/tempusdominus-core.js',
'src/js/<%= pkg.name %>.js'
],
dest: 'build/js/<%= pkg.name %>.js'
}
},
sass: {
production: {
options: {
cleancss: true,
compress: true,
implementation: sass,
importer: tildeImporter
},
files: {
'build/css/<%= pkg.name %>.min.css': 'src/sass/<%= pkg.name %>-build.scss'
}
},
development: {
options: {
importer: tildeImporter,
implementation: sass
},
files: {
'build/css/<%= pkg.name %>.css': 'src/sass/<%= pkg.name %>-build.scss'
}
}
},
stamp: {
bootstrap: {
options: {
banner: '<%= banner %>\n<%= jqueryCheck %>\n<%= jqueryVersionCheck %>\n<%= momentCheck %>\n<%= momentVersionCheck %>\n+function () {\n',
footer: '\n}();'
},
files: {
src: '<%= concat.bootstrap.dest %>'
}
},
css: {
options: {
banner: '<%= banner %>'
},
files: {
src: 'build/css/*.css'
}
}
},
watch: {
src: {
files: '<%= concat.bootstrap.src %>',
tasks: ['default']
}
},
mkdocs: {
dist: {
src: '.',
options: {
clean: true
}
}
}
});
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-mkdocs');
require('load-grunt-tasks')(grunt);
grunt.registerTask('default', 'build:js');
grunt.registerTask('build:travis', [
'build:js', 'build:style'//,
// tests
//'env:paris', 'connect', 'jasmine'
]);
// Task to be run when building
grunt.registerTask('build:js', ['babel:dev', 'concat', 'eslint', 'babel:dist', 'stamp:bootstrap', 'uglify', 'copy']);
grunt.registerTask('build:style', ['sass', 'stamp:css', 'copy']);
grunt.registerTask('copy', 'Generate docs', function () {
grunt.file.copy('build/js/tempusdominus-bootstrap-4.js', 'src/docs/theme/js/tempusdominus-bootstrap-4.js');
grunt.file.copy('build/css/tempusdominus-bootstrap-4.css', 'src/docs/theme/css/tempusdominus-bootstrap-4.css');
});
grunt.registerTask('docs', ['copy', 'mkdocs']);
grunt.registerTask('release', function (version) {
if (!version || version.split('.').length !== 3) {
grunt.fail.fatal('malformed version. Use grunt release:1.2.3');
}
grunt.task.run([
'bump_version:' + version,
'build:travis',
'docs'
]);
});
};
home/emeraadmin/public_html/node_modules/jqGrid/Gruntfile.js 0000644 00000007531 15167726414 0020315 0 ustar 00 module.exports = function(grunt) {
"use strict";
var
//builddir = "dist", // not used
// files
allFiles = [
"grid.base",
"grid.celledit",
"grid.common",
"grid.filter",
"grid.formedit",
"grid.grouping",
"grid.import",
"grid.inlinedit",
"grid.jqueryui",
"grid.pivot",
"grid.subgrid",
"grid.treegrid",
"jqDnR",
"jqModal",
"jquery.fmatter",
"jquery.sortable",
"grid.utils",
"grid.export",
"grid.aria",
"grid.transposed",
"grid.frozenrows",
"grid.database"
],
gridFiles = allFiles.map(function( file ) {
return "js/" + file+".js";
}),
allI18nFiles = expandFiles( "js/i18n/*.js" ),
cssFiles = [
"css/ui.jqgrid.css",
"css/addons/ui.multiselect.css"
],
// minified files
minify = {
options: {
preserveComments: false,
mangle: {
toplevel: true
},
sourceMap : true
},
main: {
options: {
banner: createBanner( true )
},
files: {
"js/jquery.jqGrid.min.js": "js/jquery.jqGrid.js"
}
}
};
function mapMinFile( file ) {
return "js/" + file.replace( /js\//, "minified/" );
}
function mapi18nFile( file ) {
return "js/" + file.replace( /js\//, "minified/" );
}
function expandFiles( files ) {
return grunt.util._.map( grunt.file.expandMapping( files ), "src" ).map(function( values ) {
return values[ 0 ];
});
}
var header = ''+
'(function( factory ) {'+'\n'+
' "use strict";'+'\n'+
' if ( typeof define === "function" && define.amd ) {'+'\n'+
' // AMD. Register as an anonymous module.'+'\n'+
' define([ '+'\n'+
' "jquery"'+'\n'+
' ], factory );' +'\n'+
' } else {'+'\n'+
' // Browser globals'+'\n'+
' factory( jQuery );'+'\n'+
' }'+'\n'+
'}(function( $ ) {'+'\n'+
'"use strict";'+'\n';
function createBanner( date ) {
return date === true ? "/**\n*\n"+
"* @license Guriddo <%= pkg.name %> JS - v<%= pkg.version %> " +
( date ? "- <%= grunt.template.today('isoDate') %>\n" : "\n") +
"* Copyright(c) 2008, <%=pkg.author.name%>, <%=pkg.author.email%>\n"+
"* \n"+
"* License: <%= pkg.licenses[0].url %>\n"+
"*/\n" : "";
}
// grid files min
gridFiles.concat( ).forEach(function( file ) {
minify[ file ] = {
options: {
banner: createBanner( false ),
sourceMap: false
},
files: {}
};
minify[ file ].files[ mapMinFile( file ) ] = file;
});
// i18n files min
allI18nFiles.concat( ).forEach(function( file ) {
minify[ file ] = {
options :{
sourceMap: false
},
files:{}
};
minify[ file ].files[ mapi18nFile( file ) ] = file;
});
grunt.initConfig({
pkg: grunt.file.readJSON( "package.json" ),
files: {
dist: "<%= pkg.name %>-<%= pkg.version %>"
},
jshint: {
options: {
jshintrc: true
},
core: {
src: [
" Gruntfile.js",
"js/*.js"
]
}
},
concat: {
grid: {
options: {
banner: createBanner( true )+ header,
footer: '\n'+"}));",
process: function(src, filepath) {
var begin = src.indexOf("//module begin");
var end = src.lastIndexOf('//module end');
return (begin === -1 || end === -1) ? "" : src.substring(begin,end);
}
},
src: gridFiles,
dest: "js/jquery.jqGrid.js"
}
},
// create requiere js version
requirejs: {
compile: {
options: {
baseUrl: ".",
mainConfigFile: "config.js",
name: "jqGrid",
out: "build/jqGrid.js",
optimize: "none",
normalizeDirDefines: "all",
paths: {
"jquery": "empty:",
"jquery-ui": "empty:"
}
}
}
},
uglify : minify
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-requirejs");
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask("default", ["build"]);
grunt.registerTask("build", ["requirejs", "concat:grid","uglify"]);
grunt.registerTask("test", ["jshint"]);
};
home/emeraadmin/public_html/node_modules/bootstrap-tagsinput/Gruntfile.js 0000644 00000004236 15167726501 0023122 0 ustar 00 module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-zip');
grunt.loadNpmTasks('grunt-jquerymanifest');
grunt.loadNpmTasks('grunt-bower-task');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bower: {
install: {
options: {
targetDir: './lib',
layout: 'byType',
install: true,
verbose: true,
cleanTargetDir: false,
cleanBowerDir: true,
bowerOptions: {
forceLatest: true
}
}
}
},
copy: {
build: {
files: [
{ expand: true, flatten: true, src: ['src/*.*'], dest: 'dist/', filter: 'isFile' }
]
}
},
uglify: {
options: {
banner: '<%= pkg.banner %>',
sourceMap: 'dist/<%= pkg.name %>.min.js.map',
sourceMappingURL: '<%= pkg.name %>.min.js.map'
},
build: {
files: {
'dist/<%= pkg.name %>.min.js': 'src/<%= pkg.name %>.js',
'dist/<%= pkg.name %>-angular.min.js': 'src/<%= pkg.name %>-angular.js'
}
}
},
karma: {
unit: {
configFile: 'karma.conf.js',
runnerPort: 9999,
singleRun: true,
autoWatch: false,
browsers: ['PhantomJS']
}
},
zip: {
delpoy: {
// cwd: 'dist/',
src: [
'dist/bootstrap-tagsinput*.js',
'dist/bootstrap-tagsinput*.css',
'dist/bootstrap-tagsinput*.less',
'dist/bootstrap-tagsinput*.map'
],
dest: 'dist/<%= pkg.name %>.zip'
}
},
jquerymanifest: {
options: {
source: grunt.file.readJSON('package.json'),
overrides: {
title: '<%= pkg.title %>'
}
}
}
});
grunt.registerTask('install', ['bower']);
grunt.registerTask('compile', ['uglify', 'copy']);
grunt.registerTask('test', ['compile', 'karma']);
grunt.registerTask('build', ['test', 'jquerymanifest', 'zip']);
};
home/emeraadmin/public_html/node_modules/jquery.flot.tooltip/Gruntfile.js 0000644 00000003345 15167733035 0023044 0 ustar 00 module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-connect');
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: [
'Gruntfile.js',
'js/jquery.flot.tooltip.source.js'
]
},
concat: {
options: {
banner: '/*\n' +
' * <%= pkg.name %>\n' +
' * \n' +
' * description: <%= pkg.description %>\n' +
' * version: <%= pkg.version %>\n' +
' * authors: <%= pkg.authors %>\n' +
' * website: <%= pkg.website %>\n' +
' * \n' +
' * build on <%= grunt.template.today("yyyy-mm-dd") %>\n' +
' * released under <%= pkg.license %> License, 2012\n' +
'*/ \n'
},
main: {
src: ['js/jquery.flot.tooltip.source.js'],
dest: 'js/jquery.flot.tooltip.js'
}
},
uglify: {
options: {
banner: '<%= concat.options.banner %>'
},
main: {
src: ['js/jquery.flot.tooltip.source.js'],
dest: 'js/jquery.flot.tooltip.min.js'
}
},
connect: {
server: {
options: {
port: 9001,
base: '.',
hostname: '*'
}
}
},
watch: { // for development run 'grunt watch'
main: {
files: 'js/*.source.js',
tasks: ['jshint','concat:main','uglify:main']
}
}
});
// Default task
grunt.registerTask('build', ['jshint', 'concat:main', 'uglify:main']);
};