Commit Graph

29 Commits

Author SHA1 Message Date
Jacob Overgaard
9ce41fdb4a remove old build files 2023-05-26 14:47:33 +02:00
Mads Rasmussen
a8a4ea6a29 append api to lib name 2023-05-16 14:16:46 +02:00
Jacob Overgaard
79ccca9051 rename package schema 2023-04-26 08:06:25 +02:00
Jacob Overgaard
f7da3fdb57 fix name of package-schema 2023-04-20 14:41:22 +02:00
Jacob Overgaard
7b47527914 only copy relevant files 2023-04-20 14:30:24 +02:00
Jacob Overgaard
58c3cf6e48 improve documentation 2023-04-20 14:24:59 +02:00
Jacob Overgaard
8cbf3e9bab move umbraco-package-schema.json directly with move-libs instead of vite 2023-04-20 14:24:52 +02:00
Jacob Overgaard
0480885de5 dump wca files directly in dist/libs 2023-04-20 14:24:22 +02:00
Jacob Overgaard
e8fb2aa2c3 Merge remote-tracking branch 'origin/main' into manual-json-schema 2023-04-12 10:48:33 +02:00
Warren Buckley
0660e4031d Use wca to generate the JSON format for VSCode for HTMLCustomData (#619)
* Use web-component-analyzer to generate the JSON format for VSCode for HTMLCustomData

https://github.com/microsoft/vscode-custom-data
https://github.com/runem/web-component-analyzer#vscode

* Adds in the suggested path 'src/**/*.element.ts'

* Runs npm run script for webcomponent analayzer tool

Note its before npm run build:libs as this run runs the script move-libs.js ready for packaging

* move-libs util script updated to copy over the two JSON files from wca cli tool

* Copied file from wrong location as they are being generated and put at the root of the main project

* Adds customElements prop to package.json from this spec

https://github.com/webcomponents/custom-elements-manifest#referencing-manifests-from-npm-packages
2023-03-24 12:43:52 +01:00
Jacob Overgaard
e5f21ab21c add README 2023-03-22 10:01:07 +01:00
Jacob Overgaard
c2cf7a1964 add try/catch to move-libs script 2023-03-21 11:49:47 +01:00
Jacob Overgaard
796533ff11 Refactor libs into @umbraco-cms/backoffice/* (#608)
* merge libs rollup configs to one rollup

* move css from libs to src/core

* run rollup on cms build

* move test-utils to /utils folder

* move css to src/core

* mark @umbraco-cms/backoffice as external when building for CMS

* rename all models to include @umbraco-cms/backoffice in their path to allow us to publish as a single module

* rename all imports to @umbraco-cms/backoffice/*

* rename events to umb-events to avoid rollup error of protected module name(?)

* test that libs can build

* move css to src/core

* move umb-lit-element and modal elements to src/core

* move some modal interfaces back to libs/modal

* move the icon store into src/core since it is very localized to the backoffice

* comment out build:libs for now since Github runs out of memory

* rename to match tsconfig alias

* add package.json to libs

* only make libs for lib folders

* turn off emit for typescript since we are handling types for libs separately

* build libs locally

* add script to move libs to final destination with some transform

* move libs after build

* move package.json to dist folder first (so we can publish from there)

* remove inline comments

* ensure the outputDir exists

* Remove re-export of extensions-registry library from models library

* move to individual files to avoid circular imports

* check if outputDir exists before trying to create it

* write transforms first in dist file and then copy the file to outputDir

* ensure all umbraco types are external

* copy information from main package.json file
2023-03-21 11:41:06 +01:00
Warren Buckley
3ecdf7838b Merge remote-tracking branch 'origin/main' into manual-json-schema
# Conflicts:
#	package-lock.json
2023-03-14 11:29:39 +00:00
Jacob Overgaard
6449656ba3 mark certain libs as external to prevent them from being included in the types 2023-03-13 13:57:10 +01:00
Jacob Overgaard
94e28588d2 add sourcemap to libs 2023-03-08 14:23:02 +01:00
Jacob Overgaard
0148603547 copy types 2023-03-08 14:02:15 +01:00
Jacob Overgaard
5f45496137 copy types to new executable 2023-03-08 09:07:30 +01:00
Jacob Overgaard
f7ac39b352 optimise config of dts 2023-03-07 15:40:16 +01:00
Jacob Overgaard
8fd2bf910c build declarations for libraries 2023-03-07 15:31:56 +01:00
Warren Buckley
c05ebb1c4e Update example file to ensure JSON schema is working as updating JSDocs 2023-03-06 20:27:16 +00:00
Warren Buckley
1b8ea9586e Remove unused files 2023-03-06 20:25:39 +00:00
Warren Buckley
d38802bb67 Update example JSON file to the generated JSON schema 2023-03-06 15:55:33 +00:00
Warren Buckley
d0c5945f8f Super rough work in progress -
Currently trying to see how the JSON schema would look like by writing it hand before attempting to then write a script to help write the same JSON to a file by looping over types
2023-03-06 12:50:00 +00:00
Jacob Overgaard
5813c329ce fix ambient declarations 2023-03-03 11:28:33 +01:00
Jacob Overgaard
62f3c2d6fa Feature/server packages v2 (#574)
* new api models

* use new PackageResource

* do not error out on missing default exports (esmodules auto-execute)

* do not check for js extensions (they might have been registered on the client without a js file)

* prepend the api baseurl to any relataive server JS dependencies

* ignore tsbuildinfo

* create base file for tsconfig

* extend from base config and optimise include/exclude paths

* install rollup plugin to handle json files

* use plugin to bundle json files

* call script for cms builds that builds libs

* add rollup config to utils lib

* add a context token to the extension registry instance itself and provide it through BackofficeElement

* add rollup node resolve

* add node resolve

* only include element mixin in element library

* add error description to module load error

* add types to UmbExtensionRegistry token

* set UmbNotificationService as string in its token to avoid minification

* correct comment

* reverse order of checks

* add host to server extensions and support life-cycle check

* add imports

* use lit rather than lit-html

* correct comment

* add PackageManifestModel

* add import

* run libs build for cms

* revert reorder

* use string name for NotificationContext token

* make alias public readonly of UmbContextToken

* remove TODO

* use UmbContextToken::toString() for all stores

* use string alias for contexts

* move default data so we avoid importing a big lit library just to get default data interface

* add rollup to two extra libraries

* make sure we build uui and lit into our libraries for the few cases we import something

* add lockfile

* add separate options for .js files

* add function to install types of module

* add types output

* remove unused tsconfig-base file for now
2023-03-02 20:29:20 +01:00
Jacob Overgaard
c0d30be4f0 Revert "integrate @umbraco-cms/element and @umbraco-cms/context-api due to circular dependencies"
This reverts commit e87439ff5f.
2023-01-24 08:30:18 +01:00
Jacob Overgaard
e87439ff5f integrate @umbraco-cms/element and @umbraco-cms/context-api due to circular dependencies 2023-01-23 16:24:42 +01:00
Jacob Overgaard
a01690277c add base rollup config 2023-01-23 14:34:51 +01:00