Skip to content
Snippets Groups Projects
Select Git revision
  • 805b4e0b6163caaf6dababf9e048a7557a7f7b8a
  • master default protected
  • traduccio_barbara
  • Catalan-translation
  • feature/cesium_plus_pod_2
  • feature/add_pubkey_icon
  • feature/startup_node_selection
  • develop
  • feature/android_api_19
  • Vivakvo/cesium-patch-8
  • gitlab_migration_1
  • dev
  • rml8
  • v1.6.12
  • v1.6.11
  • v1.6.10
  • v1.6.9
  • v1.6.8
  • v1.6.7
  • v1.6.6
  • v1.6.5
  • v1.6.4
  • v1.6.3
  • v1.6.2
  • v1.6.2-alpha
  • v1.6.1
  • v1.6.0
  • v1.5.12
  • v1.5.11
  • v1.5.10
  • v1.5.9
  • v1.5.8
  • v1.5.7
33 results

gulpfile.js

Blame
  • Forked from clients / Cesium-grp / Cesium
    Source project has a limited visibility.
    gulpfile.js 17.30 KiB
    'use strict';
    
    var gulp = require('gulp'),
      sass = require('gulp-sass'),
      cleanCss = require('gulp-clean-css'),
      base64 = require('gulp-base64'),
      rename = require('gulp-rename'),
      ngConstant = require('gulp-ng-constant'),
      fs = require("fs"),
      argv = require('yargs').argv,
      header = require('gulp-header'),
      footer = require('gulp-footer'),
      removeCode = require('gulp-remove-code'),
      removeHtml = require('gulp-html-remove'),
      templateCache = require('gulp-angular-templatecache'),
      ngTranslate = require('gulp-angular-translate'),
      ngAnnotate = require('gulp-ng-annotate'),
      es = require('event-stream'),
      zip = require('gulp-zip'),
      del = require('del'),
      useref = require('gulp-useref'),
      filter = require('gulp-filter'),
      uglify = require('gulp-uglify'),
      csso = require('gulp-csso'),
      replace = require('gulp-replace'),
      rev = require('gulp-rev'),
      revReplace = require('gulp-rev-replace'),
      clean = require('gulp-clean'),
      htmlmin = require('gulp-htmlmin'),
      jshint = require('gulp-jshint'),
      markdown = require('gulp-markdown'),
      sourcemaps = require('gulp-sourcemaps');
    
    var paths = {
      sass: ['./scss/**/*.scss'],
      config: ['./app/config.json'],
      templatecache: ['./www/templates/**/*.html'],
      ng_translate: ['./www/i18n/locale-*.json'],
      ng_annotate: ['./www/js/**/*.js', '!./www/js/vendor/*.js'],
      // plugins:
      templatecache_plugin: ['./www/plugins/*/templates/**/*.html'],
      ng_translate_plugin: ['./www/plugins/*/i18n/locale-*.json'],
      ng_annotate_plugin: ['./www/plugins/*/**/*.js', '!./www/plugins/*/js/vendor/*.js'],
      css_plugin: ['./www/plugins/*/css/**/*.css'],
      license_md: ['./www/license/*.md']
    };
    
    gulp.task('serve:before', [
      'sass',
      'templatecache',
      'ng_annotate',
      'ng_translate',
      'templatecache_plugin',
      'ng_annotate_plugin',
      'ng_translate_plugin',
      'css_plugin',
      'license_md']);
    
    gulp.task('watch', function() {
      gulp.watch(paths.sass, ['sass']);
      gulp.watch(paths.templatecache, ['templatecache']);
      gulp.watch(paths.ng_annotate, ['ng_annotate']);
      gulp.watch(paths.ng_translate, ['ng_translate']);
      // plugins:
      gulp.watch(paths.templatecache_plugin, ['templatecache_plugin']);
      gulp.watch(paths.ng_annotate_plugin, ['ng_annotate_plugin']);
      gulp.watch(paths.ng_translate_plugin, ['ng_translate_plugin']);
      gulp.watch(paths.css_plugin, ['css_plugin']);
      gulp.watch(paths.license_md, ['license_md']);
    });