Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens committed Jun 30, 2022
1 parent cd97325 commit c3af866
Show file tree
Hide file tree
Showing 6 changed files with 286 additions and 257 deletions.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# used in tandem with package.json engines section to only use yarn
engine-strict=true
23 changes: 23 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,32 @@
changesetBaseRefs:
- main
- origin/main
- upstream/main

changesetIgnorePatterns:
- '**/*.test.{js,jsx,ts,tsx}'
- '**/*.spec.{js,jsx,ts,tsx}'

defaultSemverRangePrefix: ''

#enableGlobalCache: false

nmMode: hardlinks-local

nodeLinker: node-modules

npmRegistryServer: 'https://registry.npmjs.org/'

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"

supportedArchitectures:
cpu:
- current
os:
- current

yarnPath: .yarn/releases/yarn-4.0.0-rc.10.cjs
6 changes: 6 additions & 0 deletions config/.ncurc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# npm-check-updates configuration used by yarn deps:check && yarn deps:update
# convenience scripts.
# @link https://github.com/raineorshine/npm-check-updates

# Add here exclusions on packages if any
reject: []
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
"version": "0.0.0",
"license": "MIT",
"scripts": {
"check:install": "yarn dlx @yarnpkg/[email protected] packages",
"clean:global-cache": "rimraf .cache",
"check:install": "yarn dlx @yarnpkg/[email protected] --configFileName config/.ncurc.yml packages",
"deps:check": "yarn dlx npm-check-updates@latest --configFileName config/.ncurc.yml --deep --mergeConfig",
"deps:update": "deps:check -u",
"docs:build": "cd docs && yarn && yarn build",
"docs:start": "cd docs && yarn && yarn start",
"g:brl": "yarn workspaces foreach -ptv --no-private run p:brl",
"g:brl:clean": "yarn workspaces foreach -ptv --no-private run p:brl:clean",
"g:build": "yarn workspaces foreach -ptv --no-private run p:build ",
"g:build-changed": "yarn workspaces foreach -ptv --no-private --since=origin/main run p:build",
"g:changeset": "changeset",
"g:clean": "yarn clean:global-cache && rimraf dist && yarn workspaces foreach -ptv run p:clean",
"g:clean": "rimraf '.cache/*' && yarn workspaces foreach -ptv run p:clean",
"g:codegen": "yarn plop --plopfile ./config/plopfile.js",
"g:cti": "yarn workspaces foreach -ptv --no-private run p:cti",
"g:cti:clean": "yarn workspaces foreach -p --no-private run p:cti clean ./src",
"g:dev": "yarn workspace examples-next dev",
"g:lint": "yarn workspaces foreach -ptv --no-private run p:lint --color",
"g:lint-changed": "yarn workspaces foreach -ptv --no-private --since=origin/main --recursive run p:lint --color",
Expand All @@ -29,18 +30,19 @@
"g:test:covwa": "yarn g:test:cov --watchAll",
"g:test:w": "yarn g:test --watch",
"g:test:wa": "yarn g:test --watchAll",
"g:typecheck": "yarn workspaces foreach -ptv run p:typecheck",
"g:typecheck-changed": "yarn workspaces foreach -ptv --from '@udecode/plate*' --since=origin/main --recursive run p:typecheck",
"g:typecheck": "yarn workspaces foreach -ptv --no-private run p:typecheck",
"g:typecheck-changed": "yarn workspaces foreach -ptv --no-private --from '@udecode/plate*' --since=origin/main --recursive run p:typecheck",
"nuke:node_modules": "rimraf '**/node_modules'",
"p:brl": "cd $INIT_CWD && barrelsby -d ./src -D -l all -q -e '.*(fixture|template|spec|__tests__).*'",
"p:brl:clean": "cd $INIT_CWD && barrelsby -d ./src -D -l clean -q -e ./src",
"p:build": "cd $INIT_CWD && yarn p:clean && tsc && yarn p:rollup",
"p:build:w": "cd $INIT_CWD && yarn p:rollup -w",
"p:clean": "cd $INIT_CWD && rimraf dist",
"p:cti": "cd $INIT_CWD && && sh ${PROJECT_CWD}/scripts/cti.sh",
"p:clean": "cd $INIT_CWD && rimraf dist && jest --clear-cache",
"p:lint": "cd $INIT_CWD && eslint src --ext .ts,.tsx --cache --cache-location ${PROJECT_CWD}/.cache/eslint/core-lib.eslintcache --color",
"p:rollup": "cd $INIT_CWD && rollup -c=${PROJECT_CWD}/config/rollup.config.js",
"p:test": "cd $INIT_CWD && jest --config=${PROJECT_CWD}/jest.config.js --passWithNoTests $INIT_CWD ",
"p:typecheck": "cd $INIT_CWD && tsc --noEmit --emitDeclarationOnly false",
"postinstall": "patch-package",
"nuke:node_modules": "rimraf '**/node_modules'",
"typedoc": "npx typedoc --tsconfig packages/plate/tsconfig.json --options config/typedoc.json"
},
"workspaces": [
Expand Down
4 changes: 0 additions & 4 deletions scripts/cti.sh

This file was deleted.

Loading

0 comments on commit c3af866

Please sign in to comment.