Skip to content
Snippets Groups Projects
Select Git revision
  • 5eb7ef3c5c65c4acc9d273223f14d78fc6df2c86
  • 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 20.33 KiB
    'use strict';
    
    const gulp = require('gulp'),
      sass = require('gulp-sass'),
      cleanCss = require('gulp-clean-css'),
      base64 = require('gulp-base64-v2'),
      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'),
      concat = require('gulp-concat'),
      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'),
      log = require('fancy-log'),
      merge = require('merge2'),
      colors = require('ansi-colors');
    
    const paths = {
      license_md: ['./www/license/*.md'],
      sass: ['./scss/ionic.app.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:
      leafletSass: ['./scss/leaflet.app.scss'],
      css_plugin: ['./www/plugins/*/css/**/*.css'],
      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']
    };
    
    
    
    function appAndPluginWatch(done) {
    
      log(colors.green('Watching source files...'));
      const watchDone = () => {};
    
      // Licenses
      gulp.watch(paths.license_md, () => appLicense(watchDone));
    
      // App
      gulp.watch(paths.sass, () => appSass(watchDone));
      gulp.watch(paths.templatecache, () => appNgTemplate(watchDone));
      gulp.watch(paths.ng_annotate, (event) => appNgAnnotate(watchDone, event));
      gulp.watch(paths.ng_translate, () => appNgTranslate(watchDone));
      // Plugins
      gulp.watch(paths.templatecache_plugin, () => pluginNgTemplate(watchDone));
      gulp.watch(paths.ng_annotate_plugin, () => pluginNgAnnotate(watchDone, event));