Skip to content

Commit

Permalink
Add simple gulp build process
Browse files Browse the repository at this point in the history
  • Loading branch information
bfricka committed Mar 24, 2014
1 parent 5b78795 commit 627a764
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 2 deletions.
54 changes: 54 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
###SublimeText###

# SublimeText project files
*.sublime-workspace


###OSX###

.DS_Store
.AppleDouble
.LSOverride
Icon


# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes


###Windows###

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/


###Node###

lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz

pids
logs
results

npm-debug.log
node_modules

.tern-project
12 changes: 11 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,15 @@
"homepage": "https://github.com/kyjan/angular-sails",
"dependencies": {
"angular": ">=1.2.*"
}
},
"ignore": [
"**/.*",
"gulpfile.js",
"package.json",
"node_modules",
"bower_components",
"app/bower_components",
"test",
"tests"
]
}
2 changes: 1 addition & 1 deletion dist/angular-sails.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');

gulp.task('build-js', function () {
gulp.src('src/**/*.js')
.pipe(concat('angular-sails.min.js'))
.pipe(uglify())
.pipe(gulp.dest('./dist/'));
});

gulp.task('watch', function () {
gulp.watch('src/**/*.js', ['build-js']);
});

gulp.task('default', ['build-js', 'watch']);
21 changes: 21 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "angular-sails",
"private": true,
"version": "0.1.0",
"description": "An angular provider for using the sails socket.io api",
"repository": {
"type": "git",
"url": "https://github.com/kyjan/angular-sails.git"
},
"author": "Jan-Oliver Pantel <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/kyjan/angular-sails/issues"
},
"homepage": "https://github.com/kyjan/angular-sails",
"devDependencies": {
"gulp": "^3.5.6",
"gulp-concat": "^2.2.0",
"gulp-uglify": "^0.2.1"
}
}

0 comments on commit 627a764

Please sign in to comment.