Samy Pesse
94a4310c1e
Adapt Plugins.loadForBook to use correct order
2016-06-10 22:04:19 +02:00
Samy Pessé
e8ee57be83
Start fixing order of plugins in dependencies
2016-06-10 18:34:24 +02:00
Samy Pessé
7a08b3f109
Fix #1377 : fix listing of plugins when using gitbook as a library
2016-06-10 17:15:04 +02:00
Samy Pessé
fbc851bc4e
Fix listAll to add default plugins after normal ones
2016-06-10 16:43:32 +02:00
Samy Pessé
e92b661a2a
Adapt sortPlugins to only sort an ordered map of plugins
2016-06-10 16:37:44 +02:00
Samy Pessé
a6b1f4bd87
Compare list of plugins sorted to array of names in tests
2016-06-08 15:08:11 +02:00
Samy Pessé
004f91f02c
sortPlugins should not be async
2016-06-08 15:02:34 +02:00
Samy Pessé
e6c6ec4293
Improve testing for sortPlugins
2016-06-08 14:57:54 +02:00
Samy Pessé
cedfa186f2
Remove merge-defaults dependency
2016-06-07 10:48:04 +02:00
Samy Pesse
aa66a4f928
Expose DEFAULT_PLUGINS as a list of PluginDependency
2016-06-06 22:04:13 +02:00
Johan Preynat
33406c3082
Merge pull request #1336 from GitbookIO/loading/themes
...
Load plugins before themes
2016-05-28 11:56:34 +02:00
Johan Preynat
4a5de2da6b
Use sortPlugins() in loadForBook()
2016-05-27 15:06:20 +02:00
Johan Preynat
1afb23cada
Add test file for sortPlugins()
2016-05-27 15:06:08 +02:00
Johan Preynat
a3b0f3f868
Export plugins sorting method to load plugins before themes
2016-05-27 15:05:55 +02:00
Samy Pessé
2ceab04d01
Increase timeout for tests of plugin installation
2016-05-27 11:40:05 +02:00
Samy Pessé
de37de44e8
Add tests for installation of all plugins
2016-05-27 11:18:12 +02:00
Samy Pessé
ccb87d5a13
Add unit tests for installPlugin
2016-05-27 11:10:39 +02:00
Samy Pessé
e2e0ca3f05
Add test for plugin version resolution
2016-05-27 10:54:56 +02:00
Samy Pessé
b33a79704b
Switch plugin installation and resolveVersion to use PluginDependency instead of Plugin
2016-05-27 09:38:23 +02:00
Ryan Swanson
465e8d6c0a
Fixed two issues for handling git URLs for plugins that are published to git repositories rather than on npmjs.org.
...
Fixed issue in pluginDependency to dereference 'name' and 'version' using Immutable Map.get(...) accessors since config values are now wrapped by Immutable.fromJS(...) in config.js > setValue(...). Added associated unit test.
Fixed issue in resolveVersion where a plugin may be using a git URL rather than a semver for the version portion of the plugin config definition. In addition, refactored the resolveVersion function into a new module to allow for unit testing. Added associated unit test.
2016-05-26 14:30:29 -04:00
Samy Pesse
ef589a6b13
Switch tests to mocha while keeping jest structure
2016-05-11 13:02:24 +02:00
Samy Pesse
4d85d6eb6e
Fix #1267 : don't fail when "node_modules" folder doesn't exist
2016-05-04 17:41:15 +02:00
Johan Preynat
ee8d35df7a
Update Plugins.listResources() to use the prepared resources list
2016-05-04 10:30:11 +02:00
Samy Pesse
79c91fd8c5
Log npm version being used when running gitbook install
2016-05-02 22:18:19 +02:00
Samy Pesse
30c96c37c2
Adapt Plugin.listAll to use a list of PluginDependency
2016-05-02 22:02:24 +02:00
Samy Pessé
c87060454e
Add model for plugin dependencies in the book.json
2016-05-02 16:24:20 +02:00
Johan Preynat
fa6fcffbe1
Improve lib/plugins/__tests__/findInstalled.js
2016-05-02 15:06:02 +02:00
Johan Preynat
59479f10fc
Fix lib/plugins/__tests__/findInstalled.js
2016-05-02 14:46:54 +02:00
Samy Pessé
4c144b6ceb
Fix Plugins.listAll to handle strings
2016-05-02 13:42:18 +02:00
Samy Pessé
fabf4f0c0a
Enable livereload plugin when serving content
2016-05-02 09:56:32 +02:00
Samy Pessé
1c43b7891b
Log resolved version when installing plugins
2016-05-02 09:02:36 +02:00
Samy Pesse
6cbbdf5d5b
Improve spacing when installing plugins
2016-05-01 22:58:25 +02:00
Samy Pesse
3a48435497
Cleanup folder before generating output
2016-05-01 19:35:50 +02:00
Samy Pesse
084925de8b
Improve plugin loading to not fake module errors
2016-05-01 19:07:57 +02:00
Samy Pesse
30bce5f9bb
Add option "--timing" to mesure gitbook performances
2016-04-30 14:37:44 +02:00
Samy Pesse
9acccad23a
Fix validation of configuration for plugins
2016-04-29 23:19:33 +02:00
Samy Pesse
db1a0aedf8
Fix listing of plugins when contains "-"
2016-04-29 23:13:31 +02:00
Johan Preynat
b8d7a00f58
Find installed gitbook-plugins in node_modules folder
2016-04-29 14:38:12 +02:00
Samy Pessé
fb37a6bcab
Inherit plugins list from parent output when generating multilingual book
2016-04-29 11:31:54 +02:00
Samy Pessé
73c190891d
Fix parsing of multilingual books
2016-04-29 10:58:25 +02:00
Samy Pessé
281f6d5535
Extend timeout for tests
2016-04-28 15:36:54 +02:00
Samy Pessé
e50422bce5
Use code TemplateBlock to highlight code
2016-04-27 16:22:17 +02:00
Samy Pessé
50f535b910
Fix plugin's config validation
2016-04-27 14:31:45 +02:00
Samy Pessé
a9d558e891
Add method ".toText" on glossary and summary
2016-04-27 14:11:45 +02:00
Samy Pessé
7298dec353
Add plugins.resources for template context
2016-04-27 13:47:12 +02:00
Samy Pesse
7a46d3b497
Add command "serve"
2016-04-26 15:51:52 +02:00
Samy Pesse
fa17f16716
Add base for commands
...
Improve plugins installation
2016-04-26 15:23:28 +02:00
Samy Pesse
374ebd6f7a
Add mock fs and tests for it
2016-04-26 10:23:37 +02:00
Samy Pessé
814b6ff489
Complete json format
2016-04-25 11:05:06 +02:00
Samy Pessé
4646ed8f4a
Fix plugins loading
2016-04-25 10:32:44 +02:00