Skip to content

Commit

Permalink
Use essex-alpha-build-infra (#1044)
Browse files Browse the repository at this point in the history
* build: add essex build configs

* build: remove conf covered by build scripts

* build: use essex build scripts

* build: improve windows compat

* build: add peer libs

* fix: correct some import ordering

* fix: remove doc linting until we can disable spelling on the changelog

* build: add exclude globs in typescript configs

* build: tsconfig updates

* fix: linting corrections

* build: update tsconfigs

* test: correct unit tests
  • Loading branch information
darthtrevino authored Jun 6, 2020
1 parent 721caac commit 3365a20
Show file tree
Hide file tree
Showing 190 changed files with 3,149 additions and 1,989 deletions.
39 changes: 3 additions & 36 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,41 +1,8 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018
},
"plugins": ["@typescript-eslint", "header"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
],
"settings": {
"react": {
"version": "16.9"
}
},
"env": {
"node": true,
"browser": true,
"mocha": true,
"es6": true,
"jest": true
},
"globals": {
"Promise": "readonly"
},
"extends": "@essex",
"rules": {
"header/header": [2, "scripts/header.js"],
"@typescript-eslint/no-parameter-properties": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/array-type": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"react/prop-types": 0,
"no-inner-declarations": 0
"jsx-a11y/no-onchange": 0,
"@typescript-eslint/explicit-module-boundary-types": 0
}
}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
steps.cache-node-modules-svg-renderer.outputs.cache-hit != 'true' ||
steps.cache-node-modules-examplesweb.outputs.cache-hit != 'true'

- run: yarn test
- run: yarn ci
name: Execute Tests
env:
CI: true
Expand Down
23 changes: 12 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
node_modules/
dist/
lib/
docs_generated/
coverage/
*.log
.DS_Store
*.tgz
.tsbuildinfo
tsconfig.tsbuildinfo
.jest-cache/
node_modules/
dist/
lib/
docs_generated/
coverage/
*.log
.DS_Store
*.tgz
.tsbuildinfo
tsconfig.tsbuildinfo
.jest-cache/
test-report.xml
6 changes: 6 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"hooks": {
"pre-commit": "essex pre-commit",
"commit-msg": "essex commit-msg"
}
}
20 changes: 0 additions & 20 deletions .markdownlint.json

This file was deleted.

1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@essex/prettier-config"
9 changes: 8 additions & 1 deletion .spelling
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,11 @@ tableName
scaleName
groupBy
vsvg
2018
2018
CLA-bot
monorepo
repo
repos
virtual-svg
react-native-svg
microsoft.com
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing

## Contributor Licence Agreement
## Contributor License Agreement

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
Expand Down
21 changes: 0 additions & 21 deletions babel.config.cjs.js

This file was deleted.

21 changes: 0 additions & 21 deletions babel.config.js

This file was deleted.

5 changes: 0 additions & 5 deletions commitlint.config.js

This file was deleted.

183 changes: 50 additions & 133 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,135 +1,52 @@
{
"name": "@chart-parts/parent",
"private": true,
"scripts": {
"clean": "lerna run clean --parallel",
"build": "lerna run build --stream",
"build:docs": "lerna run build:docs --scope @chart-parts/documentation --stream",
"start:packages": "lerna run start --parallel --stream",
"test:packages": "lerna run test --stream",
"release:packages": "lerna run release --stream",
"lint:js": "eslint . --ext .js,.ts,.jsx,.tsx",
"lint:md": "markdownlint 'packages/docs/docsite/content/markdown/**/*.md'",
"lint:spelling": "mdspell 'packages/docs/docsite/content/markdown/**/*.md' --en-us --report",
"lint:tone": "alex .",
"lint:formatting": "pretty-quick --check",
"lint": "run-s lint:*",
"unit_test": "jest --coverage --ci",
"test": "run-s lint build unit_test test:packages",
"publish_libs": "lerna publish",
"changelog": "conventional-changelog -p eslint -i CHANGELOG.md -s -r 0",
"release": "run-s clean test publish_libs changelog release:packages",
"start": "run-s start:packages"
},
"engines": {
"node": ">=10.0.0"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
"@babel/preset-env": "^7.6.0",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@types/jest": "^25.1.0",
"@typescript-eslint/eslint-plugin": "^3.0.0",
"@typescript-eslint/parser": "^3.0.0",
"alex": "^8.0.1",
"conventional-changelog-cli": "^2.0.23",
"eslint": "^7.0.0",
"eslint-config-prettier": "^6.3.0",
"eslint-plugin-header": "^3.0.0",
"eslint-plugin-react": "^7.14.3",
"eslint-plugin-react-hooks": "^4.0.0",
"husky": "^4.1.0",
"jest": "^26.0.1",
"jest-html": "^1.5.0",
"lerna": "^3.16.4",
"markdown-spellcheck": "^1.3.1",
"markdownlint-cli": "^0.23.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.0",
"pretty-quick": "^2.0.1",
"rimraf": "^3.0.0",
"ts-jest": "^26.0.0",
"typescript": "^3.9.3"
},
"prettier": {
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"useTabs": true,
"overrides": [
{
"files": "*.md",
"options": {
"useTabs": false,
"tabWidth": 2
}
},
{
"files": "*.json",
"options": {
"useTabs": false,
"tabWidth": 2
}
}
]
},
"workspaces": {
"packages": [
"packages/renderers/*",
"packages/processing/*",
"packages/client/*",
"packages/util/*",
"packages/docs/examples",
"packages/docs/docsite",
"packages/docs/examplesweb",
"packages/docs/testdata"
],
"nohoist": [
"@chart-parts/react-native-svg-renderer/**",
"**/@types/react-native",
"**/@types/reach__router",
"@chart-parts/docsite/**"
]
},
"jest": {
"cacheDirectory": ".jest-cache",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testMatch": [
"**/__tests__/**/*.spec.ts(x|)"
],
"collectCoverageFrom": [
"**/src/*.{ts,tsx}",
"**/src/**/*.{ts,tsx}",
"!**/src/**/*.d.ts",
"!packages/docs/**",
"!**/__tests__/**"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/lib/"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"snapshotSerializers": [
"jest-html"
]
}
"name": "@chart-parts/parent",
"private": true,
"scripts": {
"clean": "lerna run clean --parallel --stream",
"build": "lerna run build --stream",
"start": "lerna run start --parallel --stream",
"test:packages": "lerna run test --stream",
"release:packages": "lerna run release --stream",
"lint": "essex lint --strict",
"unit_test": "essex test --coverage",
"ci": "run-s lint build unit_test test:packages",
"publish_libs": "lerna publish",
"changelog": "conventional-changelog -p eslint -i CHANGELOG.md -s -r 0",
"release": "run-s clean test publish_libs changelog release:packages"
},
"engines": {
"node": ">=10.0.0"
},
"devDependencies": {
"@essex/eslint-config": "^7.0.3",
"@essex/eslint-plugin": "^7.0.3",
"@essex/scripts": "^7.0.3",
"@typescript-eslint/eslint-plugin": "^3.1.0",
"@typescript-eslint/parser": "^3.1.0",
"conventional-changelog-cli": "^2.0.23",
"cross-env": "^7.0.2",
"jest-html": "^1.5.0",
"lerna": "^3.22.0",
"npm-run-all": "^4.1.5",
"shx": "^0.3.2",
"typescript": "^3.9.3"
},
"workspaces": {
"packages": [
"packages/renderers/*",
"packages/processing/*",
"packages/client/*",
"packages/util/*",
"packages/docs/examples",
"packages/docs/docsite",
"packages/docs/examplesweb",
"packages/docs/testdata"
],
"nohoist": [
"@chart-parts/react-native-svg-renderer/**",
"**/@types/react-native",
"**/@types/reach__router",
"@chart-parts/docsite/**"
]
}
}
4 changes: 3 additions & 1 deletion packages/client/builder/.npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
src/
tsconfig.json
tsconfig.json
tsconfig.typedoc.json
*.tsbuildinfo
2 changes: 1 addition & 1 deletion packages/client/builder/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## Purpose

This library contains the API for specifying visulaization scenes. The scene specification API uses the builder pattern extensively. This is the core of the frontend of the visualization system and is used by the React-based API.
This library contains the API for specifying visualization scenes. The scene specification API uses the builder pattern extensively. This is the core of the frontend of the visualization system and is used by the React-based API.
Loading

0 comments on commit 3365a20

Please sign in to comment.