Skip to content

Commit

Permalink
Merge pull request #257 from stencila/253-prefix-custom-event-names
Browse files Browse the repository at this point in the history
Prefix custom event names
  • Loading branch information
alex-ketch authored Nov 4, 2021
2 parents 4526637 + 4527944 commit d895ca6
Show file tree
Hide file tree
Showing 39 changed files with 62,240 additions and 67,564 deletions.
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

0 comments on commit d895ca6

Please sign in to comment.