ULIVZ
734551500a
feat($core): 'plugins' in plugin.
2018-10-06 00:52:07 +08:00
ULIVZ
6b12b2d18c
chore($core): Cannot add new plugins after initialization.
2018-10-05 20:11:52 +08:00
ULIVZ
3fd51d5228
fix($core): unexpected warning
...
enhanceAppFiles: support String & Object, clientDynamicModules: support Object
2018-10-04 11:56:28 +08:00
ULIVZ
e380de3828
feat($core): plugin option - chainMarkdown
2018-09-26 01:48:44 +08:00
ULIVZ
658ea75961
refactor: unify code style.
2018-09-24 02:02:43 +08:00
ULIVZ
7b42984fd8
feat($core): flatten return array of functional option
2018-09-23 15:46:56 +08:00
ULIVZ
c4e27a8739
chore: fix typo
2018-09-23 15:23:42 +08:00
ULIVZ
a5f58f78e8
feat($core): alias - plugin API
2018-09-23 14:59:33 +08:00
ULIVZ
3c8339fa55
Revert "revert: change AsyncOption to prototype-style."
...
This reverts commit a5cbd6730b .
2018-09-23 13:39:30 +08:00
ULIVZ
a5cbd6730b
revert: change AsyncOption to prototype-style.
...
This change is only for test to delay the assignment of methods in prototype, since babel-jest will
rewrite the child class's prototype. But it's interesting that I cannot repro it at the standalone
repo. Oh, this bug of Jest is so bad.
2018-09-23 02:56:28 +08:00
ULIVZ
a122dfae67
feat($core): supoort pipeline plugin API.
2018-09-22 22:39:13 +08:00
ULIVZ
0263f15594
feat($core): 'define' plugin option and rewrite plugin API.
2018-09-22 22:12:52 +08:00
ULIVZ
eff7949356
feat($core): enhanceAppFile doesn't need export default manually.
2018-09-16 17:51:28 +08:00
ULIVZ
0e34e2d93f
refactor($core): clientDynamicModules option - use default value
2018-09-09 01:50:34 +08:00
ULIVZ
44fb133e4e
Merge branch 'next' of https://github.com/vuejs/vuepress into next
2018-09-05 01:06:59 +08:00
ULIVZ
7f7fe18d40
feat: support clean and multiple custom layout. / theme default layouts dir
...
1. Refine ExtendPageDataOption, simplify the implmentation
2. Introduce LayoutDistributor as the unique route layout entry
3. Inject layout components to LayoutDistributor
4. Register layout components located at themedir/layouts
5. Reorganize the default theme's structure
2018-09-05 01:02:19 +08:00
YuChao Liang and ULIVZ
c19fb3aa5a
fix: escape backslash ( #787 )
2018-09-03 13:49:21 +08:00
ULIVZ
e08cc2e901
chore($core): hide internal plugin log
2018-09-02 23:15:59 +08:00
ULIVZ
3daac59806
chore($core): clean legacy plugin utils and tests
2018-09-02 02:45:09 +08:00
ULIVZ
b45633efca
refactor($core): move core resuable utilities to 'shared-utils and fix tests
2018-08-29 01:37:56 +08:00
ULIVZ
d708d33123
feat: allow to lanuch multiple apps with isolated context at the same time.
...
1. Move writeTemp utility from @vuepress/shared-utils to @vuepress/core
2. Support for passing temp path from CLI
3. Create writeTemp dynamically
2018-08-27 17:13:01 +08:00
ULIVZ and GitHub
afa71b582b
refactor: refine core implementation ( #762 )
2018-08-24 00:02:33 +08:00
ULIVZ
c9e0385db5
chore($core): simplify ExtendPageDataOption
2018-08-23 16:34:52 +08:00
ULIVZ
1553cebe8d
chore($core): move internal dynamic modules to 'internal' dir.
2018-08-22 01:19:28 +08:00
ULIVZ
b30fa4fad3
refactor($core): rename 'Plugin' to 'PluginAPI'
2018-08-22 01:00:31 +08:00
ULIVZ
ac55f92d93
feat($core): write all enhanceApp files to separate file.
...
In the old implementation, the enhanceApp fi`le that doesn't have `default export` will be written to the same file "inject.js", but it will cause conflict if two files contains the same import definition.
2018-08-21 19:33:15 +08:00
ULIVZ
1747da1f2a
feat: support multiple option for plugin API.
...
Since the namesake plugin can only be executed once by default, if your plugin does need to be executed multiple times, you need to set 'multiple' to true explicitly.
2018-08-21 13:26:02 +08:00
ULIVZ
dd9bea3a9f
fix($core): do not pollute raw config
2018-08-21 13:21:41 +08:00
ULIVZ
8d1fa5cfb9
chore: update plugin generation comment
2018-08-21 01:51:56 +08:00
ULIVZ
721f503844
feat: make sure the namesake plugin is only executed once.
2018-08-21 01:45:59 +08:00
ULIVZ
ee32e852b1
feat($core): support 'dirname' field for 'clientDynamicModules'
...
That allow user to define the directory of generated dynamic module.
2018-08-21 00:46:19 +08:00
ULIVZ
2d65bf2085
feat($shared-utils): codegen util
2018-08-18 03:18:15 +08:00
ULIVZ
7dfee461c2
feat: delay apply plugin and create more APIs for test
2018-08-17 20:00:18 +08:00
ULIVZ
86c8dbf4a5
feat: move 'writeTemp' to shared utility and support config temp path
2018-08-17 17:43:25 +08:00
ULIVZ
4282d3bebc
refactor: using plugin API to rewrite code generation of 'routes'
...
1. 'registerComponent' in '@app/util'
2. Split 'routes.js', 'root-mixins', 'async-compoents' into different modules (decouple)
2018-08-17 05:47:23 +08:00
ULIVZ
ae6b3e924d
feat: init @vuepress/shared-utils
...
Move common utilities to @vuepress/shared-utils
2018-08-17 03:47:39 +08:00
ULIVZ
841e03e1cc
feat: plugin context - publicDir
2018-08-17 03:05:00 +08:00
ULIVZ
d3e2d09561
fix: yarn buiild failed.
...
1. This is caused by asynchronous page components cannot be resolved during server side rendering. revert to register async components at router's "beforeEnter" hook instead.
ref: https://ssr.vuejs.org/guide/structure.html#source-code-structure
2. Rename 'filepath' to 'filePath'.
2018-08-17 03:02:38 +08:00
ULIVZ
92926605d0
fix: unexpected error
2018-08-16 20:07:33 +08:00
ULIVZ
1fa57f6b4c
feat: enhance plugin API - distinguish async and sync execution
2018-08-16 16:34:49 +08:00
ULIVZ
f2064a7cbf
chore: remove console
2018-08-16 02:52:41 +08:00
ULIVZ
c64edbf210
test: improve test for hydratePlugin
2018-08-16 02:52:00 +08:00
ULIVZ
6c364fe5bd
refactor: enhance log output
2018-08-15 23:28:27 +08:00
ULIVZ
f346884639
feat: respect name in local plugin config
2018-08-15 23:06:50 +08:00
ULIVZ
9a50862c26
feat: refine plugin API
2018-08-15 22:34:08 +08:00
ULIVZ
8b0adcb97e
feat: refine 'resolvePlugin' and 'resolveScopePackage' and update test
2018-08-14 15:38:54 +08:00
ULIVZ
9424df3510
test: 'Tapable'
2018-08-14 02:43:11 +08:00
ULIVZ
b9fdf64fb0
feat: @vuepress/plugin-back-to-top
2018-08-12 17:40:46 +08:00
ULIVZ
5f07c39596
feat($plugin): 'globalUIComponents' option
2018-08-12 17:15:45 +08:00
ULIVZ
0d7fce7c79
feat: pass plugins and theme via cli
2018-08-12 05:25:35 +08:00