Skip to content

Commit b614cbb

Browse files
committed
chore: init vaadin-web-components monorepo
0 parents  commit b614cbb

24 files changed

+9934
-0
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packages/**/vendor/*.js
2+
packages/**/dist/*.js

.eslintrc.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:prettier/recommended"
5+
],
6+
"plugins": ["prettier"],
7+
"env": {
8+
"browser": true,
9+
"es6": true
10+
},
11+
"parserOptions": {
12+
"sourceType": "module",
13+
"ecmaVersion": 2020
14+
}
15+
}

.github/workflows/chrome.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Chrome
2+
3+
on: pull_request
4+
5+
jobs:
6+
tests:
7+
name: Unit tests
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: "0"
13+
14+
- name: Setup Node 14.x
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: 14.x
18+
19+
- uses: actions/cache@v2
20+
with:
21+
path: |
22+
node_modules
23+
*/*/node_modules
24+
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
25+
26+
- name: Install Dependencies
27+
run: yarn --frozen-lockfile --no-progress --non-interactive
28+
29+
- name: Lint
30+
run: yarn lint
31+
32+
- name: Test
33+
run: yarn test

.github/workflows/firefox.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Firefox
2+
3+
on: pull_request
4+
5+
jobs:
6+
tests:
7+
name: Unit tests
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: "0"
13+
14+
- name: Setup Node 14.x
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: 14.x
18+
19+
- name: Set environment variables
20+
run: echo "PLAYWRIGHT_BROWSERS_PATH=$HOME/.playwright" >> $GITHUB_ENV
21+
22+
- uses: actions/cache@v2
23+
with:
24+
path: |
25+
node_modules
26+
*/*/node_modules
27+
${{ env.PLAYWRIGHT_BROWSERS_PATH }}
28+
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
29+
30+
- uses: microsoft/playwright-github-action@v1
31+
32+
- name: Install Dependencies
33+
run: yarn --frozen-lockfile --no-progress --non-interactive
34+
35+
- name: Test
36+
run: yarn test:firefox

.github/workflows/webkit.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: WebKit
2+
3+
on: pull_request
4+
5+
jobs:
6+
tests:
7+
name: Unit tests
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: "0"
13+
14+
- name: Setup Node 14.x
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: 14.x
18+
19+
- name: Set environment variables
20+
run: echo "PLAYWRIGHT_BROWSERS_PATH=$HOME/.playwright" >> $GITHUB_ENV
21+
22+
- uses: actions/cache@v2
23+
with:
24+
path: |
25+
node_modules
26+
*/*/node_modules
27+
${{ env.PLAYWRIGHT_BROWSERS_PATH }}
28+
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
29+
30+
- uses: microsoft/playwright-github-action@v1
31+
32+
- name: Install Dependencies
33+
run: yarn --frozen-lockfile --no-progress --non-interactive
34+
35+
- name: Test
36+
run: yarn test:webkit

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
coverage
3+
packages/**/analysis.json
4+
packages/**/dist

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"singleQuote": true,
3+
"printWidth": 120,
4+
"trailingComma": "none",
5+
"htmlWhitespaceSensitivity": "strict"
6+
}

.stylelintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": [
3+
"stylelint-config-vaadin",
4+
"stylelint-config-prettier"
5+
]
6+
}

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Vaadin web components
2+
3+
This is a monorepo powered by [Lerna](https://github.com/lerna/lerna) that includes all Vaadin web components.
4+
5+
## Setup
6+
7+
```sh
8+
yarn
9+
```
10+
11+
## Run all tests in Chrome
12+
13+
```sh
14+
yarn test
15+
```
16+
17+
Note: this and following scripts only run tests for packages changed since `origin/master` branch.
18+
19+
## Run all tests in Firefox
20+
21+
```sh
22+
yarn test:firefox
23+
```
24+
25+
## Run all tests in WebKit
26+
27+
```sh
28+
yarn test:webkit
29+
```
30+
31+
## Run tests for single package
32+
33+
```sh
34+
yarn test --group vaadin-upload
35+
```
36+
37+
## LICENSE
38+
39+
For specific package(s), check the LICENSE file under the package folder.

lerna.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"packages": [
3+
"packages/*"
4+
],
5+
"npmClient": "yarn",
6+
"useWorkspaces": true,
7+
"version": "20.0.0-alpha0"
8+
}

0 commit comments

Comments
 (0)