Skip to content

Commit eabf0e3

Browse files
committed
chore(grunt): Generate tarball for NPM
1 parent 861df17 commit eabf0e3

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

Gruntfile.js

+3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ module.exports = function(grunt) {
5555
unminified: 'build/<%= pkg.name %>.zip',
5656
minified: 'build/<%= pkg.name %>.min.zip'
5757
},
58+
tgz: {
59+
npm: 'build/<%= pkg.name %>.tgz'
60+
},
5861
spec: {
5962
src: 'test/*.spec.js'
6063
}

grunt/options/compress.js

+23
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,28 @@ module.exports = {
3333
flatten: true
3434
}
3535
]
36+
},
37+
npm: {
38+
options: {
39+
archive: '<%= files.tgz.npm %>',
40+
mode: 'tgz'
41+
},
42+
files : [
43+
{
44+
expand: true,
45+
src : [
46+
'<%= files.js.out %>',
47+
'<%= files.css.main.out %>',
48+
'<%= files.css.bootstrap.out %>',
49+
'<%= files.js.outMin %>',
50+
'<%= files.css.main.outMin %>',
51+
'<%= files.css.bootstrap.outMin %>',
52+
'README.md',
53+
'package.json'
54+
],
55+
dest: 'package/',
56+
flatten: true
57+
}
58+
]
3659
}
3760
};

0 commit comments

Comments
 (0)