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

Commit

Permalink
Build: Add normalize.css and include in default build
Browse files Browse the repository at this point in the history
This includes normalize.css in the external folder and includes it as
part of the default build.

Fixes gh-7
Closes gh-66
  • Loading branch information
arschmitz committed Apr 7, 2015
1 parent 206014c commit b1fe03e
Show file tree
Hide file tree
Showing 7 changed files with 496 additions and 13 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -6,7 +6,6 @@ style.css
# Folders
bower_components/
node_modules/
external/
icons/svg-min/
.sass-cache/
dist/
28 changes: 27 additions & 1 deletion Gruntfile.js
Expand Up @@ -44,7 +44,7 @@ var config = {
}
},
csslint: {
src: [ "dist/css/*.css" ]
src: [ "dist/css/chassis.lint.css", "dist/css/chassis.lint.css" ]
},
jscs: {
all: [ "*.js", "performance/**/*.js" ]
Expand All @@ -55,7 +55,20 @@ var config = {
jshintrc: ".jshintrc"
}
},
npmcopy: {
options: {
destPrefix: "external"
},
normalize: {
files: {
"normalize.css/LICENSE.md": "normalize.css/LICENSE.md",
"normalize.css/normalize.scss": "normalize.css/normalize.css"
}
}
},
sass: {

// This is the same as lint below except including normalize.css
dist: {
options: {
sourceMap: true,
Expand All @@ -66,6 +79,19 @@ var config = {
files: {
"dist/css/chassis.css": "scss/style.scss"
}
},

// This is everything except normalize.css which won't pass our lint settings
lint: {
options: {
sourceMap: true,

// This actually does nested until libsass updates to support expanded
outputStyle: "expanded"
},
files: {
"dist/css/chassis.lint.css": "scss/lint.scss"
}
}
},

Expand Down
19 changes: 19 additions & 0 deletions external/normalize.css/LICENSE.md
@@ -0,0 +1,19 @@
Copyright (c) Nicolas Gallagher and Jonathan Neal

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

0 comments on commit b1fe03e

Please sign in to comment.