Commit Graph

22 Commits

Author SHA1 Message Date
Mads Rasmussen
cc6cd070af remove build libs 2023-05-25 14:26:04 +02:00
Jacob Overgaard
f062d5cabb add max_old_space_size to azure jobs 2023-03-22 15:49:41 +01:00
Julia Gru
ef243ef933 Feature/code editor (#607)
* create component

* import styles correctly

* import component

* show code editor element on the template workspace

* wire input event

* sync code property with editor value

* move workers to a separate file

* create class for code editor

* add very simple insert method

* focus after insert

* make scroll bar bit nicer

* add markdown example and fancier template

* make insert work with multiple cursors and selections

* now really make it works with selections and multiple cursors

* map options

* add hack to fix the jumpy cursor

* Observe themes

* add own model for range, return array of ranges from find

* add backoffice-fit dark mode

* add theme story

* add themes folder

* add new methods

insertAtPosition
getValueInRange
select

* add documentation to editor class

* add docs

* rename file

* rename donut files

* cleanup

* add some more imports

* test heap size fix

* heap error test 2

* fix imports

* node fail error test

* rename

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-03-22 10:56:28 +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
Jacob Overgaard
30189bc4ff Update to Node 18 (#550)
* update to Node 18 (latest LTS) and add .nvmrc for CLI instructions

* update vite to latest minor

* update github workflows to Node 18.x

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-02-24 14:13:23 +01:00
Jacob Overgaard
be979867ce allow build_test for merge queues 2023-02-13 11:12:08 +01:00
dependabot[bot]
c1dcb1b3aa Bump actions/upload-artifact from 2 to 3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-08 09:56:02 +01:00
Jacob Overgaard
14f32c61fb remove lcov reporter since it's spammy and just uploading the report instead 2023-01-31 10:05:06 +01:00
dependabot[bot]
6651c03550 Bump zgosalvez/github-actions-report-lcov from 1 to 2
Bumps [zgosalvez/github-actions-report-lcov](https://github.com/zgosalvez/github-actions-report-lcov) from 1 to 2.
- [Release notes](https://github.com/zgosalvez/github-actions-report-lcov/releases)
- [Commits](https://github.com/zgosalvez/github-actions-report-lcov/compare/v1...v2)

---
updated-dependencies:
- dependency-name: zgosalvez/github-actions-report-lcov
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-28 18:14:07 +00:00
Jacob Overgaard
4fe40c2cd9 always report coverage 2022-08-16 13:50:06 +02:00
Jacob Overgaard
788d2c1e5c [skip ci] uncomment report 2022-08-09 17:25:41 +02:00
Jacob Overgaard
03802f0e15 rearrange jobs 2022-08-09 17:19:30 +02:00
Jacob Overgaard
1b43d899d3 remove minimum coverage 2022-08-09 17:15:37 +02:00
Jacob Overgaard
0455a8f457 set working dir to root 2022-08-09 17:15:10 +02:00
Jacob Overgaard
ed001d9685 update action with working dir 2022-08-09 17:14:44 +02:00
Jacob Overgaard
16532754e6 remove working-directory 2022-08-09 17:06:29 +02:00
Jacob Overgaard
2c74227d11 add coverage report upload to github 2022-08-09 16:53:13 +02:00
Jacob Overgaard
6cd687dc4e test build on main branch 2022-08-04 11:23:52 +02:00
Jacob Overgaard
a642d9c892 enable tests for pull requests 2022-06-01 14:13:47 +02:00
Jacob Overgaard
734704ce66 Update build_test.yml 2022-05-17 10:33:15 +02:00
Jacob Overgaard
ed88437a25 Update build_test.yml
Speed up npm ci
2022-05-17 10:33:15 +02:00
Jacob Overgaard
430e465e83 Create build_test.yml 2022-05-17 10:20:06 +02:00