Skip to content

Commit b6245b3

Browse files
committed
Merge pull request #4 from dorukeker/v2
Merging version 2
2 parents 0a05304 + 814bd89 commit b6245b3

File tree

7 files changed

+479
-665
lines changed

7 files changed

+479
-665
lines changed

Gruntfile.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
module.exports = function(grunt) {
2+
3+
// Do grunt-related things in here
4+
5+
grunt.initConfig({
6+
pkg: grunt.file.readJSON('package.json'),
7+
concat: {
8+
options: {
9+
// define a string to put between each file in the concatenated output
10+
separator: ' '
11+
},
12+
dist: {
13+
// the files to concatenate
14+
src: ['bower_components/es6-promise/promise.min.js','bower_components/fulltilt/dist/fulltilt.min.js','gyronorm.min.js'],
15+
// the location of the resulting JS file
16+
dest: 'gyronorm.min.js'
17+
}
18+
},
19+
uglify: {
20+
options: {
21+
// the banner is inserted at the top of the output
22+
banner: '\n/* gyronorm.js v2.0.0 - https://github.com/dorukeker/gyronorm.git*/\n'
23+
},
24+
dist: {
25+
files: {
26+
'gyronorm.min.js': ['gyronorm.js']
27+
}
28+
}
29+
},
30+
clean: {
31+
start: 'gyronorm.min.js'
32+
}
33+
});
34+
35+
grunt.loadNpmTasks('grunt-contrib-concat');
36+
grunt.loadNpmTasks('grunt-contrib-uglify');
37+
grunt.loadNpmTasks('grunt-contrib-clean');
38+
39+
// grunt.registerTask('build', ['clean:start' , 'uglify' , 'concat']);
40+
41+
grunt.registerTask('build', ['clean:start' , 'uglify' , 'concat']);
42+
43+
};

0 commit comments

Comments
 (0)