This repository has been archived by the owner on Mar 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
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 #137 from Financial-Times/sassdoc
Added sassdocs
- Loading branch information
Showing
5 changed files
with
121 additions
and
83 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
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,24 @@ | ||
'use strict'; | ||
|
||
var path = require('path'); | ||
var sassdoc = require('gulp-sassdoc'); | ||
var extend = require('node.extend'); | ||
var files = require('../helpers/files'); | ||
|
||
module.exports = function(gulp, config) { | ||
module.exports.sassDoc(gulp, config); | ||
}; | ||
|
||
module.exports.sassDoc = function(gulp, config) { | ||
config = config || {}; | ||
var src = config.sassDir || '.'; | ||
var sassdocConfig = { | ||
dest: path.join(src, '/docs/sass') | ||
}; | ||
|
||
return gulp.src(src) | ||
.pipe(sassdoc(extend(true, {}, sassdocConfig, config))); | ||
}; | ||
|
||
module.exports.watchable = true; | ||
module.exports.description = 'Builds the documentation in the docs directory'; |
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,46 +1,47 @@ | ||
{ | ||
"name": "origami-build-tools", | ||
"preferGlobal": true, | ||
"version": "2.3.0", | ||
"description": "Origami component development tools.", | ||
"main": "./lib/origami-build-tools", | ||
"bin": { | ||
"origami-build-tools": "./lib/origami-build-tools-cli.js" | ||
}, | ||
"private": true, | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
}, | ||
"dependencies": { | ||
"bower-config": "^0.5.2", | ||
"browserify": "~3.44.2", | ||
"colors": "^0.6.2", | ||
"configstore": "^0.3.1", | ||
"debowerify": "git+https://github.com/Financial-Times/debowerify.git", | ||
"es6-promise": "^1.0.0", | ||
"findit": "^1.1.1", | ||
"gulp": "^3.8.7", | ||
"gulp-autoprefixer": "^2.0.0", | ||
"gulp-csso": "^0.2.9", | ||
"gulp-if": "^1.2.5", | ||
"gulp-jshint": "^1.8.4", | ||
"gulp-lintspaces": "^0.2.2", | ||
"gulp-mustache": "^0.4.0", | ||
"gulp-rename": "^1.2.0", | ||
"gulp-ruby-sass": "^0.7.1", | ||
"gulp-scss-lint": "^0.1.3", | ||
"gulp-streamify": "0.0.5", | ||
"gulp-uglify": "^1.0.1", | ||
"gulp-util": "^3.0.1", | ||
"gulp-webserver": "^0.8.3", | ||
"minimist": "0.0.8", | ||
"node.extend": "^1.0.9", | ||
"npmconf": "^1.1.5", | ||
"portfinder": "0.2.x", | ||
"semver": "^2.2.1", | ||
"textrequireify": "^1.0.0", | ||
"through2": "^0.6.2", | ||
"vinyl-source-stream": "^1.0.0", | ||
"which": "^1.0.5" | ||
} | ||
"name": "origami-build-tools", | ||
"preferGlobal": true, | ||
"version": "2.3.0", | ||
"description": "Origami component development tools.", | ||
"main": "./lib/origami-build-tools", | ||
"bin": { | ||
"origami-build-tools": "./lib/origami-build-tools-cli.js" | ||
}, | ||
"private": true, | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
}, | ||
"dependencies": { | ||
"bower-config": "^0.5.2", | ||
"browserify": "~3.44.2", | ||
"colors": "^0.6.2", | ||
"configstore": "^0.3.1", | ||
"debowerify": "git+https://github.com/Financial-Times/debowerify.git", | ||
"es6-promise": "^1.0.0", | ||
"findit": "^1.1.1", | ||
"gulp": "^3.8.7", | ||
"gulp-autoprefixer": "^2.0.0", | ||
"gulp-csso": "^0.2.9", | ||
"gulp-if": "^1.2.5", | ||
"gulp-jshint": "^1.8.4", | ||
"gulp-lintspaces": "^0.2.2", | ||
"gulp-mustache": "^0.4.0", | ||
"gulp-rename": "^1.2.0", | ||
"gulp-ruby-sass": "^0.7.1", | ||
"gulp-sassdoc": "^1.1.1", | ||
"gulp-scss-lint": "^0.1.3", | ||
"gulp-streamify": "0.0.5", | ||
"gulp-uglify": "^1.0.1", | ||
"gulp-util": "^3.0.1", | ||
"gulp-webserver": "^0.8.3", | ||
"minimist": "0.0.8", | ||
"node.extend": "^1.0.9", | ||
"npmconf": "^1.1.5", | ||
"portfinder": "0.2.x", | ||
"semver": "^2.2.1", | ||
"textrequireify": "^1.0.0", | ||
"through2": "^0.6.2", | ||
"vinyl-source-stream": "^1.0.0", | ||
"which": "^1.0.5" | ||
} | ||
} |