项目作者: jbratcher

项目描述 :
Full-featured Gulp dev env with SASS, Typescript, bundling and minification
高级语言: JavaScript
项目地址: git://github.com/jbratcher/gulp-dev-env.git
创建时间: 2017-12-04T00:38:13Z
项目社区:https://github.com/jbratcher/gulp-dev-env

开源协议:MIT License

下载


Gulp Live Reload Dev Environment

Use Typescript and SASS, compile on file change, live browser reload, build a package

Version

1.0.7

Install Dependencies

  1. npm install

Start live reload server and compile Typescript, SASS

gulp

  1. gulp

OR

  1. npm start

Folder and File Structure

  1. /src
  2. /css
  3. styles.css
  4. /vendor
  5. /fonts
  6. -fontawesome-webfont.eot
  7. -fontawesome-webfont.svg
  8. -fontawesome-webfont.ttf
  9. -fontawesome-webfont.wotf
  10. -fontawesome-webfont.wotf2
  11. -FontAwesome.otf
  12. -font-awesome.min.css
  13. /img
  14. /js
  15. -index.js
  16. -main.js
  17. /scss
  18. -styles.scss
  19. /ts
  20. -main.ts
  21. -index.html
  22. -gulpfile.js
  23. -LICENSE
  24. -package.json
  25. -readme.md

Bundle and minify compiled CSS and JS

  1. gulp useref

Bulid to dist from src

  1. gulp build

Clean (delete) dist

  1. gulp clean:dist

Features:

  • Typescript compiles to Javascript
  • Sass compiles in to CSS
  • JS and CSS are bundled and minified
  • Images are optimized and cached
  • Font Awesome icons are loaded
  • Server is started and refreshes on save
  • Autoprefix CSS
  • Complile ES6 to ES5

Future Features:

  • Webpack

Known “bugs”

  • ???

Change Log

1.0.7
  • Added optional Typescript functionality and complier
1.0.6
  • Converted to ES6, fixed JS, CSS bug with minified files
1.0.5
  • Upgraded to Gulp v4
1.0.4
  • Removed jsuglify to use babel complier, will work on fix