Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
chore: core lit v2 upgrade
Browse files Browse the repository at this point in the history
- update lit 2.x
- update storybook
- update sandbox app
- update unit test runner
- update core build to rollup

Signed-off-by: Cory Rylan <splintercode.cb@gmail.com>
  • Loading branch information
coryrylan committed Jun 9, 2021
1 parent 6c07a06 commit e2b51c3
Show file tree
Hide file tree
Showing 358 changed files with 4,485 additions and 38,047 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: microsoft/playwright-github-action@v1
- uses: actions/cache@v2
with:
path: '**/node_modules'
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
*.element.css.ts
*.global.css.ts
packages/core/src/styles/tokens/generated
packages/core/coverage
packages/react/.cache
packages/react/coverage
.parcel-cache
.rollup.tscache
.rollup.cache

# auto-generated ng-core components
packages/angular/projects/cds-angular/src/cds/components
Expand Down Expand Up @@ -53,6 +56,7 @@ testem.log
/typings
sauceconnect.log
.env
*.tsbuildinfo

# e2e
/e2e/*.js
Expand Down
3 changes: 3 additions & 0 deletions apps/adoption/angular.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"cli": {
"analytics": false
},
"version": 1,
"newProjectRoot": "projects",
"projects": {
Expand Down
1 change: 1 addition & 0 deletions apps/adoption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@clr/angular": "./dist/clr-angular",
"@clr/ui": "./dist/clr-ui",
"@cds/core": "./dist/core",
"@types/resize-observer-browser": "0.1.5",
"@webcomponents/webcomponentsjs": "2.5.0",
"prismjs": "1.8.4",
"@stackblitz/sdk": "1.5.2",
Expand Down
4 changes: 2 additions & 2 deletions apps/adoption/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"types": []
"types": ["@types/resize-observer-browser"]
},
"files": ["src/main.ts", "src/polyfills.ts"],
"exclude": ["**/*.html", "**/node_moduels/**"]
"exclude": ["**/*.html", "**/node_modules/**"]
}
3 changes: 2 additions & 1 deletion apps/adoption/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"module": "esnext",
"moduleResolution": "node",
"target": "es2017",
"lib": ["es2018", "dom"]
"lib": ["es2018", "dom"],
"types": ["@types/resize-observer-browser"]
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
Expand Down
2 changes: 1 addition & 1 deletion apps/core-rollup-js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ production env with proper text compression. [See running example](https://clari
- Treeshaking JavaScript
- Treeshaking CSS
- Minify HTML templates
- [Optimize lit-element](https://lit-element.polymer-project.org/guide/build)
- [Lit Deployments](https://lit.dev/docs/tools/publishing/)

## To run project:

Expand Down
10 changes: 0 additions & 10 deletions apps/core-rollup-js/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { nodeResolve } from '@rollup/plugin-node-resolve';
import alias from '@rollup/plugin-alias';
import { terser } from 'rollup-plugin-terser';
import minifyHTML from 'rollup-plugin-minify-html-literals';
import copy from 'rollup-plugin-copy-watch';
Expand All @@ -24,15 +23,6 @@ export default {
{ src: 'src/favicon.ico', dest: 'dist' },
],
}),
alias({
// https://lit-element.polymer-project.org/guide/build
entries: [
{
find: 'lit-html/lib/shady-render.js',
replacement: 'node_modules/lit-html/lit-html.js',
},
],
}),
nodeResolve(),
production && terser({ output: { comments: false } }),
postcss({
Expand Down
1 change: 1 addition & 0 deletions apps/core-simple-devapp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
2 changes: 1 addition & 1 deletion apps/core-simple-devapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Once installed, start the local project by running `yarn run start`.

- [Intro to Web Components](https://coryrylan.com/blog/state-of-web-components-in-2020)

- [Get started with LitElement](https://lit-element.polymer-project.org/)
- [Get started with Lit](https://lit.dev)

- [Web Component Authoring best practices](https://open-wc.org/)

Expand Down
7 changes: 0 additions & 7 deletions apps/core-simple-devapp/dist/src/counter/counter.element.d.ts

This file was deleted.

52 changes: 0 additions & 52 deletions apps/core-simple-devapp/dist/src/counter/counter.element.js

This file was deleted.

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions apps/core-simple-devapp/dist/src/counter/counter.element.styles.js

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion apps/core-simple-devapp/dist/src/counter/index.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions apps/core-simple-devapp/dist/src/counter/index.js

This file was deleted.

1 change: 0 additions & 1 deletion apps/core-simple-devapp/dist/src/counter/index.js.map

This file was deleted.

8 changes: 0 additions & 8 deletions apps/core-simple-devapp/dist/src/counter/register.d.ts

This file was deleted.

15 changes: 0 additions & 15 deletions apps/core-simple-devapp/dist/src/counter/register.js

This file was deleted.

1 change: 0 additions & 1 deletion apps/core-simple-devapp/dist/src/counter/register.js.map

This file was deleted.

Empty file.
3 changes: 0 additions & 3 deletions apps/core-simple-devapp/dist/src/index.js

This file was deleted.

1 change: 0 additions & 1 deletion apps/core-simple-devapp/dist/src/index.js.map

This file was deleted.

Loading

0 comments on commit e2b51c3

Please sign in to comment.