How to use the google-closure-compiler.grunt function in google-closure-compiler

To help you get started, we’ve selected a few google-closure-compiler examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github golangtokyo / codelab / docs / bower_components / google-prettify / Gruntfile.js View on Github external
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',
github google / code-prettify / Gruntfile.js View on Github external
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',
github scurker / currency.js / Gruntfile.js View on Github external
'<%= 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']);

};
github gopro / forgejs / Gruntfile.js View on Github external
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",
github OpenLightingProject / rdm-app / Gruntfile.js View on Github external
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'
    },
github bramstein / fontfaceobserver / Gruntfile.js View on Github external
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',
github 2gis / rader / Gruntfile.js View on Github external
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,