File tree Expand file tree Collapse file tree 3 files changed +73
-1
lines changed Expand file tree Collapse file tree 3 files changed +73
-1
lines changed Original file line number Diff line number Diff line change 1010 " .gitignore" ,
1111 " bower.json" ,
1212 " package.json" ,
13- " README.md"
13+ " README.md" ,
14+ " license.md" ,
15+ " demo.html" ,
16+ " gulpfile.js"
1417 ]
1518}
Original file line number Diff line number Diff line change 1+ var gulp = require ( 'gulp' ) ;
2+ var less = require ( 'gulp-less' ) ;
3+ var minifyCSS = require ( 'gulp-minify-css' ) ;
4+ var rename = require ( 'gulp-rename' ) ;
5+ var uglify = require ( 'gulp-uglify' ) ;
6+
7+ gulp . task ( 'copy' , function ( ) {
8+ gulp . src ( 'angular-steps.less' )
9+ . pipe ( rename ( "_angular-steps.scss" ) )
10+ . pipe ( gulp . dest ( '.' ) ) ;
11+ } ) ;
12+
13+ gulp . task ( 'less' , function ( ) {
14+ gulp . src ( '*.less' )
15+ . pipe ( less ( ) )
16+ . pipe ( gulp . dest ( '.' ) ) ;
17+ } ) ;
18+
19+ gulp . task ( 'css' , function ( ) {
20+ gulp . src ( 'angular-steps.css' )
21+ . pipe ( minifyCSS ( ) )
22+ . pipe ( rename ( { suffix : '.min' } ) )
23+ . pipe ( gulp . dest ( '.' ) ) ;
24+ } ) ;
25+
26+ gulp . task ( 'compress' , function ( ) {
27+ gulp . src ( 'angular-steps.js' )
28+ . pipe ( uglify ( ) )
29+ . pipe ( rename ( { suffix : '.min' } ) )
30+ . pipe ( gulp . dest ( '.' ) )
31+ } ) ;
32+
33+ gulp . task ( 'default' , [ 'less' ] , function ( ) {
34+ gulp . start ( 'css' , 'copy' , 'compress' ) ;
35+ } ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " angular-steps" ,
3+ "version" : " 0.1.0" ,
4+ "description" : " Split your UI into (wizard-like) steps in AngularJS." ,
5+ "main" : " angular-steps.js" ,
6+ "dependencies" : {},
7+ "devDependencies" : {
8+ "gulp" : " ^3.8.6" ,
9+ "gulp-less" : " ^1.3.1" ,
10+ "gulp-minify-css" : " ^0.3.6" ,
11+ "gulp-rename" : " ^1.2.0" ,
12+ "gulp-uglify" : " ^0.3.1"
13+ },
14+ "scripts" : {
15+ "test" : " echo \" Error: no test specified\" && exit 1"
16+ },
17+ "repository" : {
18+ "type" : " git" ,
19+ "url" : " https://github.com/omichelsen/angular-steps.git"
20+ },
21+ "keywords" : [
22+ " steps" ,
23+ " wizard" ,
24+ " paging" ,
25+ " tabs" ,
26+ " angular"
27+ ],
28+ "author" : " Ole Michelsen" ,
29+ "license" : " MIT" ,
30+ "bugs" : {
31+ "url" : " https://github.com/omichelsen/angular-steps/issues"
32+ },
33+ "homepage" : " https://github.com/omichelsen/angular-steps"
34+ }
You can’t perform that action at this time.
0 commit comments