项目作者: jbratcher
项目描述 :
Full-featured Gulp dev env with SASS, Typescript, bundling and minification
高级语言: JavaScript
项目地址: git://github.com/jbratcher/gulp-dev-env.git
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
npm install
Start live reload server and compile Typescript, SASS
gulp
gulp
OR
npm start
Folder and File Structure
/src
/css
styles.css
/vendor
/fonts
-fontawesome-webfont.eot
-fontawesome-webfont.svg
-fontawesome-webfont.ttf
-fontawesome-webfont.wotf
-fontawesome-webfont.wotf2
-FontAwesome.otf
-font-awesome.min.css
/img
/js
-index.js
-main.js
/scss
-styles.scss
/ts
-main.ts
-index.html
-gulpfile.js
-LICENSE
-package.json
-readme.md
Bundle and minify compiled CSS and JS
gulp useref
Bulid to dist from src
gulp build
Clean (delete) dist
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:
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
1.0.4
- Removed jsuglify to use babel complier, will work on fix