Remove option defaultPlugins and simplify loading

This commit is contained in:
Samy Pessé
2016-02-25 14:17:31 +01:00
parent 25ae21dae3
commit 9215edc0a0
16 changed files with 129 additions and 49 deletions
+16
View File
@@ -0,0 +1,16 @@
var should = require('should');
module.exports = {
hooks: {
'init': function() {
global._hooks = [];
global._hooks.push('init');
},
'finish': function() {
global._hooks.push('finish');
},
'finish:before': function() {
global._hooks.push('finish:before');
}
}
};
+7
View File
@@ -0,0 +1,7 @@
{
"name": "gitbook-plugin-test-hooks",
"version": "1.0.0",
"engines": {
"gitbook": "*"
}
}