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

Commit b9bf5ec

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 aaece6d commit b9bf5ec

File tree

6 files changed

+544
-78
lines changed

6 files changed

+544
-78
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
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

Lines changed: 30 additions & 1 deletion
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,23 @@ var config = {
5555
jshintrc: ".jshintrc"
5656
}
5757
},
58+
npmcopy: {
59+
options: {
60+
destPrefix: "external"
61+
},
62+
normalize: {
63+
files: {
64+
65+
// TODO: Right now the licensefile is not included in the npm package uncomment
66+
// this once https://github.com/necolas/normalize.css/issues/430 is fixed
67+
//"normalize.css/LICENSE.md": "normalize.css/LICENSE.md",
68+
"normalize.css/normalize.scss": "normalize.css/normalize.css"
69+
}
70+
}
71+
},
5872
sass: {
73+
74+
// This is the same as lint below execpt including normalize.css
5975
dist: {
6076
options: {
6177
sourceMap: true,
@@ -66,6 +82,19 @@ var config = {
6682
files: {
6783
"dist/css/chassis.css": "scss/style.scss"
6884
}
85+
},
86+
87+
// This is everything execpt normalize.css which wont pass our lint settings
88+
lint: {
89+
options: {
90+
sourceMap: true,
91+
92+
// This actually does nested until libsass updates to support expanded
93+
outputStyle: "expanded"
94+
},
95+
files: {
96+
"dist/css/chassis.lint.css": "scss/lint.scss"
97+
}
6998
}
7099
},
71100

0 commit comments

Comments
 (0)