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

Commit 66e5b35

Browse files
committed
Build: Fix and include Normalize in dist
Closes gh-169
1 parent 16ec9a2 commit 66e5b35

File tree

4 files changed

+25
-16
lines changed

4 files changed

+25
-16
lines changed

scss/lint.scss

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
@import
1313
"_utilities/clearfix",
14-
"_utilities/colors",
1514
"_utilities/functions",
1615
"_utilities/hidden";
1716

scss/style.scss

+9-14
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
// ==========================================================================
2-
// CSS Chassis
3-
// ==========================================================================
1+
/*
2+
* ==========================================================================
3+
* CSS Chassis
4+
*
5+
* This adds normalize.css to the build see lint.scss for expanation
6+
* ==========================================================================
7+
*/
48

59
@import
6-
"_utilities/clearfix",
7-
"_utilities/functions",
8-
"_utilities/hidden";
9-
10-
@import
11-
"atoms/icons/icons",
12-
"atoms/typography/typography",
13-
"atoms/buttons/buttons";
14-
15-
@import
16-
"views/main";
10+
"external/normalize.css/normalize",
11+
"scss/lint";

tasks/options/csslint.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
src: [ "dist/css/*.css" ],
2+
src: [ "dist/css/chassis.lint.css", "dist/css/chassis.lint.css" ],
33
options: {
44
csslintrc: ".csslintrc"
55
}

tasks/options/sass.js

+15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
module.exports = {
2+
3+
// This is everything including normalize.css see lint below for explanation
24
dist: {
35
options: {
46
sourceMap: true,
@@ -9,5 +11,18 @@ module.exports = {
911
files: {
1012
"dist/css/chassis.css": "scss/style.scss"
1113
}
14+
},
15+
16+
// This is everything except normalize.css as normalize won't pass our lint settings
17+
lint: {
18+
options: {
19+
sourceMap: true,
20+
21+
// This actually does nested until libsass updates to support expanded
22+
outputStyle: "expanded"
23+
},
24+
files: {
25+
"dist/css/chassis.lint.css": "scss/lint.scss"
26+
}
1227
}
1328
};

0 commit comments

Comments
 (0)