Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore/upgrade greenwood v0.31.0 #299

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
parserOptions: {
ecmaVersion: 2020,
ecmaVersion: 2022,
sourceType: 'module'
},
env: {
Expand Down
3 changes: 2 additions & 1 deletion .ls-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ ls:

ignore:
- .git
- node_modules
- node_modules
- public
1 change: 1 addition & 0 deletions greenwood.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
import { greenwoodPluginRendererPuppeteer } from '@greenwood/plugin-renderer-puppeteer';

export default {
// TODO optimization: 'strict',

Check warning on line 8 in greenwood.config.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected 'todo' comment: 'TODO optimization: 'strict','

Check warning on line 8 in greenwood.config.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected ' TODO' comment: 'TODO optimization: 'strict','

prerender: true,
devServer: {
port: 51201
},
Expand Down
10,452 changes: 512 additions & 9,940 deletions package-lock.json

Large diffs are not rendered by default.

17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@
"test": "wtr",
"test:tdd": "npm run test -- --watch"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "4.6.1"
},
"dependencies": {
"lit-element": "^2.4.0",
"lit-element": "^3.3.0",
"prismjs": "^1.27.0"
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@greenwood/cli": "^0.30.0",
"@greenwood/plugin-google-analytics": "^0.30.0",
"@greenwood/plugin-graphql": "^0.30.0",
"@greenwood/plugin-import-raw": "^0.30.0",
"@greenwood/plugin-postcss": "^0.30.0",
"@greenwood/plugin-renderer-puppeteer": "^0.30.0",
"@greenwood/cli": "^0.31.0-alpha.2",
"@greenwood/plugin-google-analytics": "^0.31.0-alpha.2",
"@greenwood/plugin-graphql": "^0.31.0-alpha.2",
"@greenwood/plugin-import-raw": "^0.31.0-alpha.2",
"@greenwood/plugin-postcss": "^0.31.0-alpha.2",
"@greenwood/plugin-renderer-puppeteer": "^0.31.0-alpha.2",
"@ls-lint/ls-lint": "^1.10.0",
"@mapbox/rehype-prism": "^0.5.0",
"@web/test-runner": "^0.13.13",
Expand Down
5 changes: 0 additions & 5 deletions postcss.config.cjs

This file was deleted.

File renamed without changes.
3 changes: 2 additions & 1 deletion src/components/card/card.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
expect(wrapper.length).to.equal(1);
});

// TODO test .link attribute

Check warning on line 106 in src/components/card/card.spec.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected 'todo' comment: 'TODO test .link attribute'

Check warning on line 106 in src/components/card/card.spec.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected ' TODO' comment: 'TODO test .link attribute'
xit('should have the expect social icon link with link', () => {
const socialIconLink = card.shadowRoot.querySelectorAll('app-social-icon-link');

Expand All @@ -123,7 +123,8 @@
const date = card.shadowRoot.querySelectorAll('.wrapper .card-header .date');

expect(date.length).to.equal(1);
expect(date[0].innerHTML).contain(`Date: ${mockCard.date}`);
// <!--?lit$31297538$--><span class="card-date"><b>Date: <!--?lit$31297538$-->1/2/2019</b></span>
expect(date[0].innerHTML).contain(mockCard.date);
});

it('should have the expected slide link', () => {
Expand Down