Skip to content

Commit 28e550a

Browse files
committed
Merge pull request #1494 from harvesthq/add_license_to_css_file
Added license to non-minified css file
2 parents a330cfc + b1b9c76 commit 28e550a

2 files changed

Lines changed: 18 additions & 12 deletions

File tree

‎Gruntfile.coffee‎

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@ module.exports = (grunt) ->
77
grunt.initConfig
88
pkg: grunt.file.readJSON("package.json")
99
comments: """
10-
// Chosen, a Select Box Enhancer for jQuery and Prototype
11-
// by Patrick Filler for Harvest, http://getharvest.com
12-
//
13-
// Version <%= pkg.version %>
14-
// Full source at https://github.com/harvesthq/chosen
15-
// Copyright (c) 2011 Harvest http://getharvest.com
16-
17-
// MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
18-
// This file is generated by `grunt build`, do not edit it by hand.\n
10+
/*!
11+
Chosen, a Select Box Enhancer for jQuery and Prototype
12+
by Patrick Filler for Harvest, http://getharvest.com
13+
14+
Version <%= pkg.version %>
15+
Full source at https://github.com/harvesthq/chosen
16+
Copyright (c) 2011 Harvest http://getharvest.com
17+
18+
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
19+
This file is generated by `grunt build`, do not edit it by hand.
20+
*/
21+
\n
1922
"""
2023
minified_comments: "/* Chosen #{version_tag()} | (c) 2011-2013 by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */\n"
2124

@@ -28,6 +31,9 @@ module.exports = (grunt) ->
2831
proto:
2932
src: ["public/chosen.proto.js"]
3033
dest: "public/chosen.proto.js"
34+
css:
35+
src: ["public/chosen.css"]
36+
dest: "public/chosen.css"
3137

3238
coffee:
3339
options:
@@ -50,13 +56,13 @@ module.exports = (grunt) ->
5056
compass:
5157
chosen_css:
5258
options:
53-
specify:
54-
['sass/chosen.scss']
59+
specify: ['sass/chosen.scss']
5560

5661
cssmin:
5762
minified_chosen_css:
5863
options:
5964
banner: "<%= minified_comments %>"
65+
keepSpecialComments: 0
6066
src: 'public/chosen.css'
6167
dest: 'public/chosen.min.css'
6268

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"grunt-contrib-watch": "~0.3.1",
2121
"grunt-contrib-copy": "~0.4.1",
2222
"grunt-contrib-clean": "~0.4.1",
23-
"grunt-contrib-compass": "~0.3.0",
23+
"grunt-contrib-compass": "~0.5.0",
2424
"grunt-contrib-cssmin": "~0.6.1",
2525
"grunt-build-gh-pages": "0.0.4",
2626
"grunt-zip": "~0.9.2",

0 commit comments

Comments
 (0)