-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from ianrose/ms-text-sizing
Test and Heading updates
- Loading branch information
Showing
6 changed files
with
197 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"important": true, | ||
"adjoining-classes": true, | ||
"known-properties": true, | ||
"box-sizing": true, | ||
"box-model": true, | ||
"overqualified-elements": true, | ||
"display-property-grouping": true, | ||
"bulletproof-font-face": true, | ||
"compatible-vendor-prefixes": true, | ||
"regex-selectors": true, | ||
"errors": true, | ||
"duplicate-background-images": true, | ||
"duplicate-properties": true, | ||
"empty-rules": true, | ||
"selector-max-approaching": true, | ||
"gradients": true, | ||
"fallback-colors": true, | ||
"font-sizes": false, | ||
"font-faces": true, | ||
"floats": true, | ||
"star-property-hack": true, | ||
"outline-none": true, | ||
"import": true, | ||
"ids": true, | ||
"underscore-property-hack": true, | ||
"rules-count": true, | ||
"qualified-headings": true, | ||
"selector-max": true, | ||
"shorthand": true, | ||
"text-indent": true, | ||
"unique-headings": false, | ||
"universal-selector": true, | ||
"unqualified-attributes": true, | ||
"vendor-prefix": true, | ||
"zero-units": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,79 @@ | ||
var LIVERELOAD_PORT = 35729; | ||
|
||
var lrSnippet = require('connect-livereload')({ | ||
port: LIVERELOAD_PORT | ||
}); | ||
|
||
var mountFolder = function (connect, dir) { | ||
return connect.static(require('path').resolve(dir)); | ||
}; | ||
|
||
module.exports = function (grunt) { | ||
|
||
// Load the plugins. | ||
grunt.loadNpmTasks('grunt-sass'); | ||
grunt.loadNpmTasks('grunt-contrib-connect'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-csslint'); | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
connect: { | ||
options: { | ||
port: 9001, | ||
hostname: 'localhost' | ||
}, | ||
livereload: { | ||
options: { | ||
middleware: function (connect) { | ||
return [lrSnippet, mountFolder(connect, 'test')]; | ||
} | ||
} | ||
} | ||
}, | ||
sass: { | ||
dist: { | ||
files: { | ||
'test/test.css': 'test/test.scss' | ||
} | ||
} | ||
} | ||
}); | ||
// Load the plugins. | ||
grunt.loadNpmTasks('grunt-sass'); | ||
}, | ||
csslint: { | ||
options: { | ||
csslintrc: '.csslintrc' | ||
}, | ||
check: { | ||
src: [ | ||
'test/*.css' | ||
] | ||
} | ||
}, | ||
watch: { | ||
sass: { | ||
files: ['*.{scss,sass}', 'test/*{scss,sass}'], | ||
tasks: ['sass'] | ||
}, | ||
csslint: { | ||
files: 'test/*.css', | ||
tasks: ['csslint'] | ||
}, | ||
livereload: { | ||
options: { | ||
livereload: LIVERELOAD_PORT | ||
}, | ||
files: [ | ||
'test/*.html', | ||
'test/*.css' | ||
] | ||
} | ||
} | ||
}); | ||
|
||
// Default task(s). | ||
grunt.registerTask('default', ['sass']); | ||
grunt.registerTask('test', ['sass']); | ||
}; | ||
grunt.registerTask('default', [ | ||
'sass', | ||
'csslint', | ||
'connect:livereload', | ||
'watch' | ||
]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.