Skip to content

Commit

Permalink
Upgrade ocular-dev-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Feb 29, 2024
1 parent ed10fc8 commit 6be3dab
Show file tree
Hide file tree
Showing 26 changed files with 77 additions and 266 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ dist/
node_modules/
coverage/
.nyc_output/
examples/
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const {getESLintConfig} = require('ocular-dev-tools/configuration');
module.exports = getESLintConfig({
react: '16.8.2',
overrides: {
parser: '',
parserOptions: {
project: ['./tsconfig.json']
},
Expand Down
5 changes: 4 additions & 1 deletion .ocularrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* @type import('ocular-dev-tools').OcularConfig */
export default {
babel: false,

typescript: {
project: 'tsconfig.modules.json'
project: 'tsconfig.build.json'
},

lint: {
Expand Down
19 changes: 0 additions & 19 deletions babel.config.cjs

This file was deleted.

1 change: 0 additions & 1 deletion modules/bench/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"src"
],
"dependencies": {
"@babel/runtime": "^7.0.0",
"@probe.gl/log": "4.0.6"
},
"gitHead": "95541d68783bfd50cbaf9b2a15b3cb41f1ff8284"
Expand Down
2 changes: 1 addition & 1 deletion modules/bench/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.build.json",
"extends": "../../tsconfig.module.json",
"include": ["src/**/*"],
"exclude": ["node_modules"],
"compilerOptions": {
Expand Down
1 change: 0 additions & 1 deletion modules/env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"./src/lib/globals.js"
],
"dependencies": {
"@babel/runtime": "^7.0.0"
},
"gitHead": "95541d68783bfd50cbaf9b2a15b3cb41f1ff8284"
}
2 changes: 1 addition & 1 deletion modules/env/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.build.json",
"extends": "../../tsconfig.module.json",
"include": ["src/**/*"],
"exclude": ["node_modules"],
"compilerOptions": {
Expand Down
1 change: 0 additions & 1 deletion modules/log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
],
"browser": {},
"dependencies": {
"@babel/runtime": "^7.0.0",
"@probe.gl/env": "4.0.6"
},
"gitHead": "95541d68783bfd50cbaf9b2a15b3cb41f1ff8284"
Expand Down
2 changes: 1 addition & 1 deletion modules/log/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.build.json",
"extends": "../../tsconfig.module.json",
"include": ["src/**/*"],
"exclude": ["node_modules"],
"compilerOptions": {
Expand Down
1 change: 0 additions & 1 deletion modules/react-bench/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"src"
],
"dependencies": {
"@babel/runtime": "^7.0.0",
"css-loader": "^2.1.1",
"react-table": "^6.10.0",
"style-loader": "^1.1.3"
Expand Down
2 changes: 1 addition & 1 deletion modules/react-bench/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.build.json",
"extends": "../../tsconfig.module.json",
"include": ["src/**/*"],
"exclude": ["node_modules"],
"compilerOptions": {
Expand Down
2 changes: 1 addition & 1 deletion modules/seer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.build.json",
"extends": "../../tsconfig.module.json",
"include": ["src/**/*"],
"exclude": ["node_modules"],
"compilerOptions": {
Expand Down
1 change: 0 additions & 1 deletion modules/stats-widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
],
"sideEffects": false,
"dependencies": {
"@babel/runtime": "^7.0.0"
},
"peerDependencies": {
"@probe.gl/stats": "^4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion modules/stats-widget/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.build.json",
"extends": "../../tsconfig.module.json",
"include": ["src/**/*"],
"exclude": ["node_modules"],
"compilerOptions": {
Expand Down
1 change: 0 additions & 1 deletion modules/stats/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"src"
],
"dependencies": {
"@babel/runtime": "^7.0.0"
},
"gitHead": "95541d68783bfd50cbaf9b2a15b3cb41f1ff8284"
}
2 changes: 1 addition & 1 deletion modules/stats/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.build.json",
"extends": "../../tsconfig.module.json",
"include": ["src/**/*"],
"exclude": ["node_modules"],
"compilerOptions": {
Expand Down
1 change: 0 additions & 1 deletion modules/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"puppeteer": false
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"@probe.gl/log": "4.0.6",
"@types/pngjs": "^6.0.1",
"pixelmatch": "^4.0.2"
Expand Down
2 changes: 1 addition & 1 deletion modules/test-utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.build.json",
"extends": "../../tsconfig.module.json",
"include": ["src/**/*"],
"exclude": ["node_modules"],
"compilerOptions": {
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
"scripts": {
"bootstrap": "yarn && ocular-bootstrap",
"clean": "ocular-clean",
"build": "npm run clean && time ocular-build",
"lint": "tsc && ocular-lint",
"build": "ocular-build",
"lint": "ocular-lint",
"publish": "ocular-publish",
"test": "ocular-test",
"test-fast": "ocular-test fast",
"version": "ocular-build core"
"version": "ocular-build env"
},
"devDependencies": {
"@types/tape-promise": "^4.0.1",
"jsdoc-to-markdown": "^3.0.0",
"jsdom": "^16.5.0",
"ocular-dev-tools": "2.0.0-alpha.22",
"ocular-dev-tools": "2.0.0-alpha.26",
"pre-commit": "^1.2.2",
"puppeteer": "^22.0.0",
"react-dom": "^16.13.1",
Expand Down
24 changes: 16 additions & 8 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,22 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"build": true,
"target": "es2020",
"module": "es2020",
"esModuleInterop": true,
"declaration": true,
"declarationMap": true,
"noEmit": false,
"emitDeclarationOnly": true
// Uncomment to debug
// "listEmittedFiles": true
}
},
"references": [
{"path": "modules/bench"},
{"path": "modules/env"},
{"path": "modules/log"},
{"path": "modules/react-bench"},
{"path": "modules/seer"},
{"path": "modules/stats"},
{"path": "modules/stats-widget"},
{"path": "modules/test-utils"}
],
"include": [
"modules/core/src"
],
"exclude": [
]
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"compilerOptions": {
"target": "es2020",
"module": "esnext",
"module": "es2020",
"jsx": "react",
"allowJs": true,
"checkJs": true,
Expand Down
24 changes: 24 additions & 0 deletions tsconfig.module.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// This is a base TS config for the individual packages, mainly for building .d.ts files
{
"extends": "./tsconfig.json",
"compilerOptions": {
"build": true,
"declaration": true,
"declarationMap": true,
"noEmit": false,
"useDefineForClassFields": false,
"plugins": [
{
"transform": "ocular-dev-tools/ts-transform-version-inline"
},
{
"transform": "ocular-dev-tools/ts-transform-append-extension",
"after": true
},
{
"transform": "ocular-dev-tools/ts-transform-append-extension",
"afterDeclarations": true
}
]
}
}
35 changes: 0 additions & 35 deletions tsconfig.modules.json

This file was deleted.

100 changes: 0 additions & 100 deletions webpack.config.js

This file was deleted.

Loading

0 comments on commit 6be3dab

Please sign in to comment.