Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ node_modules/
external/
icons/svg-min/
.sass-cache/
css
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be dist/? Or why does #50 change this line?

9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sudo: false
language: node_js
node_js:
- "0.10"
cache:
directories:
- node_modules
script:
- "grunt"
42 changes: 37 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,23 @@ var config = {
"ie >= 8"
]
},
src: "*.css"
src: "css/*.css"
}
},
cssmin: {
options: {
report: "gzip",
sourceMap: true
},
target: {
files: {
"css/chassis.min.css": "css/style.min.css"
}
}
},
csslint: {
src: [ "css/*.css" ]
},
jscs: {
all: [ "*.js", "performance/*.js", "performance/frameworks/*.js" ]
},
Expand All @@ -29,16 +43,33 @@ var config = {
}
},
sass: {
dist: {
min: {
options: {
sourceMap: true,
outFile: "/css/chassis.css",
outputStyle: "compressed"
},
files: [ {
expand: true,
cwd: "scss",
src: [ "*.scss" ],
dest: "",
dest: "dist/css/",
ext: ".min.css"
} ]
},
dist: {
options: {
sourceMap: false,
outFile: "/css/chassis.css",

// This actually does nested until libsass updates to support expanded
outputStyle: "expanded"
},
files: [ {
expand: true,
cwd: "scss",
src: [ "*.scss" ],
dest: "dist/css/",
ext: ".css"
} ]
}
Expand Down Expand Up @@ -127,8 +158,9 @@ grunt.util._.extend( config, loadConfig( "./tasks/options/" ) );
grunt.initConfig( config );
grunt.loadTasks( "tasks" );
grunt.loadNpmTasks( "perfjankie" );
grunt.registerTask( "default", [ "jshint", "jscs" ] );
grunt.registerTask( "build", [ "svg", "sass", "autoprefixer" ] );
grunt.registerTask( "default", [ "build", "test" ] );
grunt.registerTask( "test", [ "build", "jshint", "jscs", "csslint" ] );
grunt.registerTask( "build", [ "svg", "sass", "autoprefixer", "cssmin" ] );
grunt.registerTask( "perf", [
"start-selenium-server",
"connect:perf",
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
"glob": "4.4.2",
"grunt": "0.4.5",
"grunt-autoprefixer": "2.1.0",
"grunt-contrib-cssmin": "0.10.0",
"grunt-contrib-csslint": "0.4.0",
"grunt-contrib-jshint": "0.10.0",
"grunt-contrib-connect": "0.9.0",
"grunt-contrib-watch": "0.6.1",
Expand Down