Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Commit b1fe03e

Browse files
committed
Build: Add normalize.css and include in default build
This includes normalize.css in the external folder and includes it as part of the default build. Fixes gh-7 Closes gh-66
1 parent 206014c commit b1fe03e

File tree

7 files changed

+496
-13
lines changed

7 files changed

+496
-13
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ style.css
66
# Folders
77
bower_components/
88
node_modules/
9-
external/
109
icons/svg-min/
1110
.sass-cache/
1211
dist/

Gruntfile.js

+27-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var config = {
4444
}
4545
},
4646
csslint: {
47-
src: [ "dist/css/*.css" ]
47+
src: [ "dist/css/chassis.lint.css", "dist/css/chassis.lint.css" ]
4848
},
4949
jscs: {
5050
all: [ "*.js", "performance/**/*.js" ]
@@ -55,7 +55,20 @@ var config = {
5555
jshintrc: ".jshintrc"
5656
}
5757
},
58+
npmcopy: {
59+
options: {
60+
destPrefix: "external"
61+
},
62+
normalize: {
63+
files: {
64+
"normalize.css/LICENSE.md": "normalize.css/LICENSE.md",
65+
"normalize.css/normalize.scss": "normalize.css/normalize.css"
66+
}
67+
}
68+
},
5869
sass: {
70+
71+
// This is the same as lint below except including normalize.css
5972
dist: {
6073
options: {
6174
sourceMap: true,
@@ -66,6 +79,19 @@ var config = {
6679
files: {
6780
"dist/css/chassis.css": "scss/style.scss"
6881
}
82+
},
83+
84+
// This is everything except normalize.css which won't pass our lint settings
85+
lint: {
86+
options: {
87+
sourceMap: true,
88+
89+
// This actually does nested until libsass updates to support expanded
90+
outputStyle: "expanded"
91+
},
92+
files: {
93+
"dist/css/chassis.lint.css": "scss/lint.scss"
94+
}
6995
}
7096
},
7197

external/normalize.css/LICENSE.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) Nicolas Gallagher and Jonathan Neal
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the "Software"), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7+
of the Software, and to permit persons to whom the Software is furnished to do
8+
so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.

0 commit comments

Comments
 (0)