-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
30 lines (22 loc) · 813 Bytes
/
index.js
File metadata and controls
30 lines (22 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
'use strict';
// do npm install marked --save-dev
// do npm install grunt-contrib-jade --save-dev
// copy / overwrite view
// copy additional grunt task config
// alter Gruntfile
var path = require('path');
var fs = require('fs');
module.exports = function (remote, files, wok) {
return {
//this is run when the plugin is installed while generating the project
install: function (done) {
files.filter(function (filepath) {
return filepath.indexOf('template/') === 0;
}).forEach(function (filepath) {
remote.copy(filepath, filepath.replace(/^template\//, ''));
});
wok.npmInstall(['grunt-contrib-jade', 'marked'], { 'saveDev': true });
done();
}
};
};