Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
src: ['*.js', '*.css', 'skins/*.css'],
dest: 'google-code-prettify/'
}]
}
},
// grunt-contrib-clean
clean: {
js: ['src/prettify.js', 'src/run_prettify.js', 'loader/*.js'],
css: ['loader/*.css', 'loader/skins/*.css'],
zip: ['distrib/*.zip']
}
});
// load plugins that provide tasks
require('google-closure-compiler').grunt(grunt);
grunt.loadTasks('./tasks');
grunt.loadNpmTasks('grunt-preprocess');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-clean');
// register task aliases
grunt.registerTask('default', [
//'clean',
'preprocess',
'copy:prettify',
'gcc',
'copy:langs',
'aliases',
src: ['*.js', '*.css', 'skins/*.css'],
dest: 'google-code-prettify/'
}]
}
},
// grunt-contrib-clean
clean: {
js: ['src/prettify.js', 'src/run_prettify.js', 'loader/*.js'],
css: ['loader/*.css', 'loader/skins/*.css'],
zip: ['distrib/*.zip']
}
});
// load plugins that provide tasks
require('google-closure-compiler').grunt(grunt);
grunt.loadTasks('./tasks');
grunt.loadNpmTasks('grunt-preprocess');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-clean');
// register task aliases
grunt.registerTask('default', [
//'clean',
'preprocess',
'copy:prettify',
'gcc',
'copy:langs',
'aliases',
'<%= minified %>': '<%= minified %>'
}
},
options: {
stripBanners: true,
banner: '<%= banner %>',
// Allow for the original banner to be stripped
process: function(src, filepath) {
return filepath === 'currency.js' ? src.replace(/^\/\*!/, '/*') : src;
}
}
}
});
require('google-closure-compiler').grunt(grunt);
require('matchdep').filterAll('grunt-*').forEach(grunt.loadNpmTasks);
grunt.registerTask('build', ['closure-compiler', 'concat', 'sync']);
grunt.registerTask('default', ['build']);
};
module.exports = function(grunt)
{
require("google-closure-compiler").grunt(grunt);
var outputWrapperSimple = "(function() {\n" +
" var root = this;\n" +
" %output%\n" +
" root.FORGE = window.FORGE;\n" +
"}).call(this);\n";
var sourceFiles =
[
"src/FORGE.js",
"src/core/BaseObject.js",
"src/core/Viewer.js",
"src/core/Tags.js",
"src/core/Uid.js",
module.exports = function(grunt) {
'use strict';
require('google-closure-compiler').grunt(grunt);
grunt.initConfig({
bower: {
libs: {
options: {
targetDir: 'static/libs',
install: true,
copy: true,
cleanup: true,
layout: 'byComponent'
}
}
},
clean: {
copy: './static/js/rdm.js'
},
module.exports = function (grunt) {
require('google-closure-compiler').grunt(grunt);
var compilerOptions = {
compilation_level: 'ADVANCED_OPTIMIZATIONS',
warning_level: 'VERBOSE',
summary_detail_level: 3,
language_in: 'ECMASCRIPT5_STRICT',
output_wrapper: '(function(){%output%}());',
use_types_for_optimization: true,
externs: ['externs-commonjs.js']
};
var src = [
'node_modules/closure-dom/src/dom.js',
'src/descriptors.js',
'src/ruler.js',
'src/observer.js',
module.exports = function(grunt) {
var compilerPackage = require('google-closure-compiler');
compilerPackage.grunt(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: ['Gruntfile.js', 'rader.js', 'test/**/*.js'],
options: {
"indent": 4,
"node": true,
"browser": true,
"jquery": true,
"eqnull": true,
"eqeqeq": false,
"devel": false,
"boss": true,
"trailing": true,
"loopfunc": true,