Skip to content

Commit 2485b60

Browse files
authored
chore: refactor website setup (facebookincubator#219)
1 parent 5238028 commit 2485b60

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1788
-2059
lines changed

.github/workflows/build-size.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v2
1818
- uses: preactjs/compressed-size-action@v2
1919
with:
20-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
21-
build-script: "build:en"
22-
pattern: "./packages/core/dist/**/*.{js,css}"
20+
repo-token: '${{ secrets.GITHUB_TOKEN }}'
21+
build-script: 'build:en'
22+
pattern: './packages/core/dist/**/*.{js,css}'
2323
compression: 'none'

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Install
1414
run: yarn install
1515
- name: Prettier
16-
run: yarn format:ci
16+
run: yarn format:check
1717
- name: Stylelint
1818
run: yarn lint
1919
# Ensure that all the expected files have been commited (yarn.lock, /dist...)

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"files.exclude": {
3-
"**/build": true,
3+
"**/build": true
44
// "**/dist": true
55
}
66
}

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
],
99
"private": true,
1010
"scripts": {
11-
"format": "prettier --config .prettierrc --write \"**/*.{js,jsx,ts,tsx}\"",
12-
"format:docs": "prettier --config .prettierrc --write \"**/*.{md,mdx}\"",
13-
"format:ci": "prettier --config .prettierrc --check \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
11+
"format": "prettier --config .prettierrc --write --ignore-unknown \"**/*\"",
12+
"format:check": "prettier --config .prettierrc --check --ignore-unknown \"**/*\"",
1413
"lint": "stylelint \"**/*.pcss\"",
1514
"lint:fix": "stylelint \"**/*.pcss\" --fix",
1615
"start": "cd packages/core && npm start",

0 commit comments

Comments
 (0)