This repository has been archived by the owner on May 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding editorconfig and re-aligning code style with Modernizr
- Loading branch information
Ryan Seddon
committed
Aug 27, 2014
1 parent
a6b8de8
commit 6c7dbcd
Showing
63 changed files
with
2,461 additions
and
2,448 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,13 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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,67 +1,67 @@ | ||
module.exports = function(grunt) { | ||
|
||
require("matchdep").filterAll("grunt-*").forEach(grunt.loadNpmTasks); | ||
var webpack = require("webpack"); | ||
var webpackConfig = require("./webpack.config.js"); | ||
require("matchdep").filterAll("grunt-*").forEach(grunt.loadNpmTasks); | ||
var webpack = require("webpack"); | ||
var webpackConfig = require("./webpack.config.js"); | ||
|
||
grunt.initConfig({ | ||
"webpack-dev-server": { | ||
options: { | ||
webpack: webpackConfig, | ||
publicPath: "", | ||
contentBase: './dev' | ||
}, | ||
start: { | ||
keepAlive: true, | ||
webpack: { | ||
devtool: "sourcemap", | ||
debug: true | ||
} | ||
} | ||
}, | ||
watch: { | ||
sass: { | ||
files: ['src/css/**/*.scss'], | ||
tasks: ['sass:dev'], | ||
options: { | ||
spawn: false | ||
} | ||
} | ||
}, | ||
sass: { | ||
dev: { | ||
options: { | ||
outputStyle: 'expanded', | ||
sourceComments: 'map' | ||
}, | ||
files: { 'dev/main.css': 'src/css/main.scss' } | ||
} | ||
}, | ||
exec: { | ||
docpad: { | ||
cmd: "docpad generate -e production" | ||
}, | ||
clear_dist: { | ||
cmd: "rm -rf ./dist/" | ||
} | ||
}, | ||
execute: { | ||
// TODO :: currently this dumps metadata.json into the module's dist | ||
// we need to pass options into generate-meta.js to define | ||
// our own outputDir | ||
modernizr: { | ||
src: ['./node_modules/modernizr/lib/generate-meta.js'], | ||
} | ||
}, | ||
'gh-pages': { | ||
options: { | ||
base: 'dist' | ||
}, | ||
src: ['**'] | ||
} | ||
}); | ||
grunt.initConfig({ | ||
"webpack-dev-server": { | ||
options: { | ||
webpack: webpackConfig, | ||
publicPath: "", | ||
contentBase: './dev' | ||
}, | ||
start: { | ||
keepAlive: true, | ||
webpack: { | ||
devtool: "sourcemap", | ||
debug: true | ||
} | ||
} | ||
}, | ||
watch: { | ||
sass: { | ||
files: ['src/css/**/*.scss'], | ||
tasks: ['sass:dev'], | ||
options: { | ||
spawn: false | ||
} | ||
} | ||
}, | ||
sass: { | ||
dev: { | ||
options: { | ||
outputStyle: 'expanded', | ||
sourceComments: 'map' | ||
}, | ||
files: { 'dev/main.css': 'src/css/main.scss' } | ||
} | ||
}, | ||
exec: { | ||
docpad: { | ||
cmd: "docpad generate -e production" | ||
}, | ||
clear_dist: { | ||
cmd: "rm -rf ./dist/" | ||
} | ||
}, | ||
execute: { | ||
// TODO :: currently this dumps metadata.json into the module's dist | ||
// we need to pass options into generate-meta.js to define | ||
// our own outputDir | ||
modernizr: { | ||
src: ['./node_modules/modernizr/lib/generate-meta.js'], | ||
} | ||
}, | ||
'gh-pages': { | ||
options: { | ||
base: 'dist' | ||
}, | ||
src: ['**'] | ||
} | ||
}); | ||
|
||
grunt.registerTask("default", ["webpack-dev-server:start"]); | ||
grunt.registerTask("dist", ["exec:clear_dist", "exec:docpad"]) | ||
grunt.registerTask("default", ["webpack-dev-server:start"]); | ||
grunt.registerTask("dist", ["exec:clear_dist", "exec:docpad"]) | ||
|
||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
[ | ||
{ | ||
"name": "Modernizr.addTest" | ||
}, | ||
{ | ||
"name": "Modernizr.prefixed()" | ||
}, | ||
{ | ||
"name": "Modernizr.testStyles()" | ||
}, | ||
{ | ||
"name": "Modernizr.testProp()" | ||
}, | ||
{ | ||
"name": "Modernizr.testAllProps()" | ||
}, | ||
{ | ||
"name": "Modernizr.hasEvent()" | ||
}, | ||
{ | ||
"name": "Modernizr._prefixes" | ||
}, | ||
{ | ||
"name": "Modernizr._domPrefixes" | ||
} | ||
] | ||
{ | ||
"name": "Modernizr.addTest" | ||
}, | ||
{ | ||
"name": "Modernizr.prefixed()" | ||
}, | ||
{ | ||
"name": "Modernizr.testStyles()" | ||
}, | ||
{ | ||
"name": "Modernizr.testProp()" | ||
}, | ||
{ | ||
"name": "Modernizr.testAllProps()" | ||
}, | ||
{ | ||
"name": "Modernizr.hasEvent()" | ||
}, | ||
{ | ||
"name": "Modernizr._prefixes" | ||
}, | ||
{ | ||
"name": "Modernizr._domPrefixes" | ||
} | ||
] |
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,38 +1,38 @@ | ||
// TODO - browser support for non-RGBa, i.e. create stacks of pseudo-translucent colors | ||
|
||
.c_light { | ||
background: #f7f7f7; | ||
color: #272727; | ||
a { color: inherit; } | ||
background: #f7f7f7; | ||
color: #272727; | ||
a { color: inherit; } | ||
} | ||
|
||
.c_stark { | ||
background: #FFF; | ||
background: #FFF; | ||
} | ||
|
||
.c_base { | ||
background: #272727; | ||
color: rgba(255,255,255,0.5); | ||
a { | ||
color: rgba(255,255,255,1); | ||
} | ||
background: #272727; | ||
color: rgba(255,255,255,0.5); | ||
a { | ||
color: rgba(255,255,255,1); | ||
} | ||
} | ||
|
||
.c_linkbox { | ||
background: #fff; | ||
background: #fff; | ||
} | ||
|
||
a.c_primary, | ||
.c_primary { | ||
background: #db4886; | ||
color: #f7f7f7; | ||
background: #db4886; | ||
color: #f7f7f7; | ||
} | ||
|
||
.c_box { | ||
background: #eee; | ||
background: #eee; | ||
} | ||
|
||
.c_action, | ||
a.c_action { | ||
color: #db4886; | ||
} | ||
color: #db4886; | ||
} |
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.