Skip to content

Instantly share code, notes, and snippets.

@chmontgomery
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save chmontgomery/9ec07f3ba0344660a43b to your computer and use it in GitHub Desktop.

Select an option

Save chmontgomery/9ec07f3ba0344660a43b to your computer and use it in GitHub Desktop.
gulp-bundle-assets TODO

TODO

Please suggest new features in the comments or vote for your favorite ones.

General

  • flag to optionally uglify
  • support CDNs
    • perhaps in DEV mode use local files instead but use CDN in production
  • generate sourcemaps to external file instead of being inline in file
  • use .min files instead of manually uglifying if they already exist. This should greatly speed up the overall gulp task since a lot of time can be spent uglifying jquery, angular, etc.
  • Different functionality per environment. That is, use minified code in PROD and unminified code in DEV
  • allow custom templates for wrapping scripts
    • e.g. allow ability to wrap a bowerified dep with a require.js define statement
  • fail and/or log when no files found in stream for a bundle
  • fix gulp-minify-css to support source maps and start using it.
  • start using gulp-rev
  • ability to pass options through to gulp plugins (gulp-uglify, gulp-minify-css, etc)
  • support file compilation
    • .less
    • .scss
    • coffeescript
  • flag for logging: verbose vs quiet mode
  • option for gziping bundles
  • use lazypipe to keep code DRY
  • testing
    • verify css @import works
    • test support for different config file extensions (.js vs .json)
    • convert all tests to use should.js instead of assert
  • display warnings when bundles are over a recommended size

Tesla specific

  • update tesla.svc.page to use bundle.result.json and write deps to page
  • pre-step to generate bundle.config.json from page.json model to pipe into bundler
  • formalize static /public folder usage in core router using tesla config option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment