-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gael
committed
Dec 16, 2015
1 parent
5b292f2
commit 6cb161f
Showing
14 changed files
with
210 additions
and
44 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,73 @@ | ||
'use strict'; | ||
|
||
// Requires | ||
var gulp = require('gulp'), | ||
sassdoc = require('sassdoc'), | ||
sass = require('gulp-ruby-sass'), | ||
sourcemaps = require('gulp-sourcemaps'), | ||
csso = require('gulp-csso'), | ||
hologram = require('gulp-hologram'); | ||
|
||
// Paths | ||
var source = './sass', | ||
destination = './css'; | ||
|
||
|
||
// Sass w sourcemaps | ||
gulp.task('sass', function () { | ||
return sass(source + '/**/*.scss', {sourcemap: true, style: 'compressed'}) | ||
.on('error', sass.logError) | ||
.pipe(sourcemaps.write('maps', { | ||
includeContent: false, | ||
sourceRoot: source | ||
})) | ||
.pipe(gulp.dest(destination)); | ||
}); | ||
|
||
// Minify CSS | ||
gulp.task('minify', function () { | ||
return gulp.src(destination + '/*.css') | ||
.pipe(csso()); | ||
}); | ||
|
||
// Generate SassDoc | ||
gulp.task('sassdoc', function () { | ||
var options = { | ||
dest: 'docs', | ||
theme: 'default', | ||
display: { | ||
access: ['public'], | ||
alias: false, | ||
watermark: true, | ||
}, | ||
groups: { | ||
"undefined": "Configuration", | ||
"languages": "Translation" | ||
}, | ||
basePath: 'https://github.com/ffoodd/a11y.css/tree/master/sass', | ||
}; | ||
|
||
return gulp.src(source + '/**/*.scss') | ||
.pipe(sassdoc(options)); | ||
}); | ||
|
||
// Generate Hologram | ||
gulp.task('hologram', function() { | ||
gulp.src('./hologram_config.yml') | ||
.pipe(hologram()); | ||
}); | ||
|
||
|
||
// Build a11y.css | ||
gulp.task('build', ['sass', 'minify']); | ||
|
||
// Generate doc | ||
gulp.task('docs', ['sassdoc', 'hologram']); | ||
|
||
// Default: build | ||
gulp.task('default', ['build']); | ||
|
||
// Watch: build | ||
gulp.task('watch', function () { | ||
gulp.watch(source + '/**/*.scss', ['build']); | ||
}); |
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,12 +1,28 @@ | ||
{ | ||
"title": "a11y.css", | ||
"name": "a11y.css", | ||
"description": "This file aims to warn front-end devs about mistakes and potential accessibility failures - but it also helps to rate client-side code and to spot its weaknesses.", | ||
"version": "2.2", | ||
"license": "MIT", | ||
"homepage": "http://ffoodd.github.io/a11y.css", | ||
"repository": "https://github.com/ffoodd/a11y.css", | ||
"devDependencies": { | ||
"sassdoc": "^2.1.16" | ||
} | ||
"title": "a11y.css", | ||
"name": "a11y.css", | ||
"description": "This file aims to warn front-end devs about mistakes and potential accessibility failures - but it also helps to rate client-side code and to spot its weaknesses.", | ||
"version": "2.2.1", | ||
"author": { | ||
"name": "Gaël Poupard", | ||
"url": "http://www.ffoodd.fr", | ||
"email": "gael@ffoodd.fr" | ||
}, | ||
"license": "MIT", | ||
"homepage": "http://ffoodd.github.io/a11y.css", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ffoodd/a11y.css" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/ffoodd/a11y.css/issues" | ||
}, | ||
"devDependencies": { | ||
"sassdoc": "^2.1.18", | ||
"gulp": "latest", | ||
"gulp-ruby-sass": "latest", | ||
"gulp-sourcemaps": "latest", | ||
"gulp-csso": "latest", | ||
"gulp-hologram": "latest" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.