Skip to content

Commit

Permalink
*added gruntjob * added package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyTheTank committed Nov 17, 2015
1 parent fb6cbc3 commit 9fec190
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 867 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/bower_components
/.idea/
/.codekit-cache/
/.codekit-cache/
config.codekit
33 changes: 33 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module.exports = function(grunt) {

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
js: {
files : {
'dist/angular-youtube-api-factory.min.js' : ['src/angular-youtube-api-factory.js']
}
},
options: {
banner: '\n/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n',
}
},
watch: {
minifiyJs: {
files: [
'src/angular-youtube-api-factory.js'
],
tasks: ['uglify'],
options: {
spawn: true,
},
},
},
});

grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');

grunt.registerTask('default', ['watch']);

};
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"authors": [
"Jonathan Hornung <[email protected]>"
],
"version": "0.3.3",
"version": "0.3.4",
"description": "angular factory for youtube rest api connection",
"main": "dist/angular-youtube-api-factory.min.js",
"moduleType": [],
Expand Down
Loading

0 comments on commit 9fec190

Please sign in to comment.