Skip to content

Instantly share code, notes, and snippets.

@tuyenv
Created April 11, 2017 04:55
Show Gist options
  • Save tuyenv/2af01ed41ed2cbbc9765dd03d6d76876 to your computer and use it in GitHub Desktop.
Save tuyenv/2af01ed41ed2cbbc9765dd03d6d76876 to your computer and use it in GitHub Desktop.

Revisions

  1. tuyenv created this gist Apr 11, 2017.
    62 changes: 62 additions & 0 deletions gulp.config.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,62 @@
    module.exports = function() {
    var client = 'client',
    clientApp = './client/app'
    dist = 'dist',
    tmp = '.tmp',
    docs = 'documentation',
    landing = 'landing';
    var config = {
    client: client,
    dist: dist,
    tmp: tmp,
    index: client + "/index.html",
    alljs: [
    client + "/app/**/*.js",
    './*.js'
    ],
    assets: [
    client + "/app/**/*.html",
    client + "/bower_components/font-awesome/css/*",
    client + "/bower_components/font-awesome/fonts/*",
    client + "/bower_components/weather-icons/css/*",
    client + "/bower_components/weather-icons/font/*",
    client + "/bower_components/weather-icons/fonts/*",
    client + "/bower_components/material-design-iconic-font/dist/**/*",
    client + "/fonts/**/*",
    client + "/i18n/**/*",
    client + "/images/**/*",
    client + "/styles/loader.css",
    client + "/styles/ui/images/*",
    client + "/favicon.ico"
    ],
    less: [],
    sass: [
    client + "/styles/**/*.scss"
    ],
    js: [
    clientApp + "/**/*.module.js",
    clientApp + "/**/*.js",
    '!' + clientApp + "/**/*.spec.js"
    ],
    docs: docs,
    docsJade: [
    docs + "/jade/index.jade",
    docs + "/jade/layout.jade"
    ],
    allToClean: [
    tmp,
    ".DS_Store",
    ".sass-cache",
    "node_modules",
    ".git",
    client + "/bower_components",
    docs + "/jade",
    docs + "/layout.html",
    landing + "/jade",
    landing + "/bower_components",
    "readme.md"
    ]
    };

    return config;
    };