Skip to content

Commit 803c183

Browse files
committed
Changed Codo Documentation Script
This is in anticipation of #189 and #190. - Moved it out of the gulp pipeline (now strictly for builds) - Moved it into the package.json scripts - Changed the output directory to `codo-doc/`
1 parent 356940b commit 803c183

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.stamp*
2-
/doc/
2+
/codo-doc/
33
/css/
44
/js/
55
/build/

gulpfile.js

-12
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,3 @@ gulp.task('clean', function (cb) {
106106
cb();
107107
});
108108
});
109-
110-
/**
111-
* Generates codo documentation from the project's coffeescript source.
112-
*/
113-
gulp.task('doc', function (cb) {
114-
var command = [
115-
'./node_modules/.bin/codo --quiet --private',
116-
'--name Epoch --readme README.md --title "Epoch Documentation"',
117-
'--output #{dirs.doc} #{dirs.src} - LICENSE'
118-
].join('');
119-
exec(command, cb);
120-
});

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
},
4848
"scripts": {
4949
"build": "gulp build",
50-
"test": "npm run build && mocha --recursive --compilers coffee:coffee-script/register tests/unit/"
50+
"unit": "mocha --recursive --compilers coffee:coffee-script/register tests/unit/",
51+
"test": "npm run build && npm run unit",
52+
"codo": "./node_modules/.bin/codo --quiet --private --name Epoch --readme README.md --title 'Epoch Documentation' --output codo-doc src - LICENSE"
5153
}
5254
}

0 commit comments

Comments
 (0)