Nicola Krumschmidt
32972f4c01
Move define extension functions to shared and expose them through extension-sdk ( #6880 )
...
* Move defineInterface to shared
* Split up utils into node and browser utils
* Move defineDisplay to shared
* Move defineLayout to shared
* Move defineModule to shared
* Add defineEndpoint and defineHook to define-extensions
* Expose define extension functions through extension-sdk
* Make route type of defineEndpoint more specific
* Simplify define extension functions
* Deduplicate types and local types definition
* Do not allow functional components in display handler
* Make interface options nullable
* Deduplicate extension types definition
* Fix utils/node exports
2021-07-22 17:02:29 +02:00
Nicola Krumschmidt
d3a960a0a0
Make extension loading more robust ( #6845 )
...
* Make extension loading more robust
* Remove unnecessary path joining
2021-07-16 13:57:18 -04:00
Nicola Krumschmidt
f96eeb2c83
v9.0.0-rc.85
2021-07-15 21:22:54 +02:00
rijkvanzanten
f60deb9ca2
Remove prepublish build step, handled in CI
2021-07-15 14:23:48 -04:00
rijkvanzanten
ddab55d190
v9.0.0-rc.84
2021-07-15 14:10:01 -04:00
rijkvanzanten
2a60a0fd88
Revert "v9.0.0-rc.84"
...
This reverts commit a4945a64fd .
2021-07-15 10:29:18 -04:00
rijkvanzanten
a4945a64fd
v9.0.0-rc.84
2021-07-14 17:26:35 -04:00
rijkvanzanten
628b4efc29
Revert "v9.0.0-rc.84"
...
This reverts commit 18e62086f7 .
2021-07-14 17:25:52 -04:00
rijkvanzanten
18e62086f7
v9.0.0-rc.84
2021-07-14 16:57:41 -04:00
Nicola Krumschmidt
4986962523
Add readme files to shared and extension-sdk ( #6719 )
2021-07-12 14:59:28 +02:00
Nicola Krumschmidt
1989760ccc
Allow extension-sdk to bundle API extensions as well ( #6735 )
...
This also converts the API extension templates to ESM syntax.
2021-07-11 10:01:18 +02:00
Nicola Krumschmidt
b7a50c5012
Optimize extension-sdk CLI types ( #6718 )
...
* Add extension type guards
* Rename validate-extension-package util
* Optimize extension-sdk CLI types
2021-07-09 12:32:07 +02:00
Nicola Krumschmidt
f64ad3335c
Configure build command based on extension manifest ( #6706 )
...
* Add simple logger to extension-sdk CLI
* Configure build command based on extension manifest
The configuration can be overwritten by command line options.
Adds a "force" option to ignore if there is no package.json in the cwd.
2021-07-07 19:26:50 +00:00
Nicola Krumschmidt
ff393eab3b
Add create command to extension-sdk CLI ( #6590 )
...
* Add create command to extension-sdk CLI
* Extract extension package.json key name to shared
* Check package.json before building extensions
* Add source field to package.json
* Pin extension-sdk verson in scaffolded package
* Change options color to magenta
2021-07-07 12:34:51 +00:00
Nicola Krumschmidt
38f7d911f6
Fix requiring vue from a cjs/umd dependency in a extension ( #6700 )
...
* Fix requiring vue from a cjs/umd dependency in extensions
* Speed up cjs bundling
* Optimize styles when using a css preprocessor
2021-07-07 14:11:12 +02:00
renovate[bot]
18d6c0edbe
update dependency typescript to v4.3.5 ( #6592 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-06-30 20:02:38 -04:00
Nicola Krumschmidt
a99f23b009
Fix dev script not watching in shared and extension-sdk ( #6589 )
2021-06-30 19:53:46 -04:00
Nicola Krumschmidt
8341810218
Fix building extensions with style tags ( #6583 )
2021-06-30 12:37:15 -04:00
Nicola Krumschmidt
31c74e01f2
Update the required Node version to 12.20.0 ( #6578 )
2021-06-30 09:16:45 -04:00
rijkvanzanten
04976eb13f
v9.0.0-rc.83
2021-06-29 16:18:56 -04:00
rijkvanzanten
872dff6bb8
Fix cleaning order
2021-06-29 09:58:07 -04:00
rijkvanzanten
f46d7e4dd6
v9.0.0-rc.82
2021-06-28 19:32:21 -04:00
Nicola Krumschmidt
7f60fb0fc1
Add directus-extension CLI to extension-sdk ( #6548 )
...
* Remove return from api cli entrypoint
* Add directus-extension cli to extension-sdk
The initial version only implements the "build" command.
Executing "build" in the root of an extension package bundles the
extension to a single distributable and loadable entrypoint.
* Update extension docs to use directus-extension build
2021-06-28 15:56:01 -04:00
rijkvanzanten
a469bb728f
v9.0.0-rc.81
2021-06-26 22:09:40 -04:00
rijkvanzanten
4b6efe3053
Add prepublish scripts to new packages
2021-06-26 22:07:52 -04:00
rijkvanzanten
67cf90fea4
Fix devmode
2021-06-23 19:01:37 -04:00
renovate[bot]
7b1e1f7f82
pin dependencies ( #6469 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-06-23 13:01:49 -04:00
Nicola Krumschmidt
051df415df
Fix extensions ( #6377 )
...
* Add support for npm extensions
* Allow extensions to import vue from the main app
* Bundle app extensions on server startup
* Fix return type of useLayoutState
* Add shared package
* Add extension-sdk package
* Add type declaration files to allow deep import of shared package
* Add extension loading to shared
* Refactor extension loading to use shared package
* Remove app bundle newline replacement
* Fix extension loading in development
* Rename extension entrypoints
* Update extension build instructions
* Remove vite auto-replacement workaround
* Update package-lock.json
* Remove newline from generated extension entrypoint
* Update package-lock.json
* Build shared package as cjs and esm
* Move useLayoutState composable to shared
* Reverse vite base env check
* Share useLayoutState composable through extension-sdk
* Update layout docs
* Update package versions
* Small cleanup
* Fix layout docs
* Fix imports
* Add nickrum to codeowners
* Fix typo
* Add 'em to vite config too
* Fix email
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-23 12:43:06 -04:00