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

Prefix custom event names #257

Merged
merged 7 commits into from
Nov 4, 2021
Merged
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
10 changes: 2 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,8 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 16

- name: Restore NPM cache
uses: actions/cache@v2
with:
path: |
node_modules
packages/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
cache: 'npm'
cache-dependency-path: 'packages/*/package-lock.json'

- run: npm ci

Expand Down
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install pretty-quick --staged
81,508 changes: 35,909 additions & 45,599 deletions package-lock.json

Large diffs are not rendered by default.

15 changes: 4 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"npm": ">=6.10.0"
},
"scripts": {
"prepare": "lerna bootstrap",
"prepare": "lerna bootstrap && husky install",
"build": "lerna run build --stream",
"build:brand": "lerna run build --stream --scope '@stencila/brand'",
"build:components": "lerna run build --stream --scope '@stencila/components'",
Expand All @@ -34,7 +34,8 @@
},
"devDependencies": {
"@babel/core": "7.16.0",
"@stencila/dev-config": "2.0.27",
"@stencila/dev-config": "3.0.1",
"@stencila/eslint-config": "3.0.0",
"@stencila/renovate-config": "0.4.2",
"@storybook/addon-a11y": "6.3.12",
"@storybook/addon-backgrounds": "6.3.12",
Expand All @@ -51,11 +52,9 @@
"core-js": "3.19.0",
"cssnano": "5.0.9",
"cssnano-preset-advanced": "5.1.5",
"eslint": "7.32.0",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.26.1",
"filewatcher-webpack-plugin": "1.2.0",
"globby": "12.0.2",
"husky": "7.0.4",
"lerna": "4.0.0",
"lit-html": "2.0.1",
"postcss": "8.3.11",
Expand Down Expand Up @@ -93,12 +92,6 @@
"eslintConfig": {
"extends": "@stencila/eslint-config"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"prettier": "@stencila/dev-config/prettier-config.json",
"release": {
"extends": "@stencila/semantic-release-config"
Expand Down
27 changes: 0 additions & 27 deletions packages/components/.eslintrc.js

This file was deleted.

2 changes: 2 additions & 0 deletions packages/components/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/components.d.ts
src/**/*.md
Loading