Update dependencies and CI config (#1)
This commit is contained in:
Родитель
2f05f285f6
Коммит
b02c0e5b0b
|
@ -40,7 +40,7 @@ jobs:
|
|||
- run:
|
||||
name: Lint Lightning Web Components
|
||||
command: |
|
||||
yarn lint:lwc
|
||||
yarn lint
|
||||
unit_test_lwc:
|
||||
# This unit tests Lightning Web Components.
|
||||
<<: *defaults
|
||||
|
@ -50,7 +50,7 @@ jobs:
|
|||
- run:
|
||||
name: Unit test Lightning Web Components
|
||||
command: |
|
||||
npm run test:unit:coverage -- -- --runInBand
|
||||
yarn test:unit:coverage --runInBand
|
||||
- persist_to_workspace:
|
||||
# We're saving the generated coverage results (folder 'coverage', a sub-folder to 'project') so
|
||||
# that we can upload them in another step to Codecov.io.
|
||||
|
@ -65,7 +65,7 @@ jobs:
|
|||
- run:
|
||||
name: Push to Codecov.io
|
||||
command: |
|
||||
# Uploading Apex and LWC tests
|
||||
# Uploading LWC tests
|
||||
bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
workflows:
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# Lightning Web Components Recipes Open Source
|
||||
|
||||
[![CircleCI](https://circleci.com/gh/trailheadapps/lwc-recipes-oss.svg?style=svg)](https://circleci.com/gh/trailheadapps/lwc-recipes-oss) [![codecov](https://codecov.io/gh/trailheadapps/lwc-recipe-oss/branch/master/graph/badge.svg)](https://codecov.io/gh/trailheadapps/lwc-recipes-oss)
|
||||
|
||||
A collection of easy-to-digest code examples for Lightning Web Components Open Source. Each recipe demonstrates how to code a specific task in 30 lines of code or less. A View Source link takes you right to the code in GitHub. From Hello World to data access and third-party libraries, there is a recipe for that!
|
||||
|
||||
## Local Development
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
"prettier": "^1.17"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.0.0"
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
"homepage": "https://github.com/trailheadapps/lwc-recipes-oss",
|
||||
"husky": {
|
||||
|
|
|
@ -4,7 +4,6 @@ export default class Clock extends LightningElement {
|
|||
@api
|
||||
refresh() {
|
||||
this.timestamp = new Date().toISOString();
|
||||
console.log(this.timestamp);
|
||||
}
|
||||
|
||||
@track timestamp = new Date().toISOString();
|
||||
|
|
|
@ -7,7 +7,6 @@ export default class Select extends LightningElement {
|
|||
|
||||
handleChange(event) {
|
||||
const val = this.options[event.target.selectedIndex].value;
|
||||
console.log(val);
|
||||
this.dispatchEvent(new CustomEvent('change'), {
|
||||
detail: val
|
||||
});
|
||||
|
|
2639
yarn.lock
2639
yarn.lock
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче