Skip to content

Commit a558315

Browse files
committed
build: fix build task outputting multiple banners
1 parent caaf6fd commit a558315

File tree

4 files changed

+662
-85
lines changed

4 files changed

+662
-85
lines changed

Gruntfile.js

+8-7
Original file line numberDiff line numberDiff line change
@@ -105,31 +105,31 @@ module.exports = function(grunt) {
105105
banner: '<%= meta.banner %>'
106106
},
107107
src: [
108-
"build/<%= pkg.codename %>.css"
108+
"build/tuesday.css"
109109
]
110110
},
111111
compact: {
112112
options: {
113113
banner: '<%= meta.banner_compact %>'
114114
},
115115
src: [
116-
"build/<%= pkg.codename %>.min.css",
116+
"build/tuesday.min.css",
117117
]
118118
},
119119
legacyfull: {
120120
options: {
121121
banner: '<%= meta.banner_legacy %>'
122122
},
123123
src: [
124-
"build/<%= pkg.codename %>.legacy.css"
124+
"build/tuesday.legacy.css"
125125
]
126126
},
127127
legacycompact: {
128128
options: {
129129
banner: '<%= meta.banner_legacy_compact %>'
130130
},
131131
src: [
132-
"build/<%= pkg.codename %>.legacy.min.css",
132+
"build/tuesday.legacy.min.css",
133133
]
134134
},
135135
},
@@ -144,15 +144,16 @@ module.exports = function(grunt) {
144144
});
145145

146146
grunt.registerTask('default', [
147-
'build', 'build-legacy'
147+
'build-all'
148148
]);
149149

150150
grunt.registerTask('build', [
151151
'less:main', 'postcss:autoprefixer', 'postcss:nano',
152152
'usebanner:full', 'usebanner:compact'
153153
]);
154-
grunt.registerTask('build-legacy', [
155-
'less:main', 'postcss:autoprefixer-legacy', 'postcss:nano',
154+
grunt.registerTask('build-all', [
155+
'less:main', 'postcss:autoprefixer', 'postcss:autoprefixer-legacy', 'postcss:nano',
156+
'usebanner:full', 'usebanner:compact',
156157
'usebanner:legacyfull', 'usebanner:legacycompact',
157158
]);
158159
grunt.registerTask('dev', [

0 commit comments

Comments
 (0)