Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jassmith committed Nov 24, 2023
1 parent 0ea52f3 commit 9715f3e
Show file tree
Hide file tree
Showing 8 changed files with 2,172 additions and 1,828 deletions.
3 changes: 2 additions & 1 deletion babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
}
],
"@babel/preset-react",
"@babel/preset-typescript"
"@babel/preset-typescript",
"@linaria"
],
"plugins": ["@babel/plugin-proposal-class-properties"],
"comments": false,
Expand Down
3,951 changes: 2,126 additions & 1,825 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@babel/preset-typescript": "^7.9.0",
"@faker-js/faker": "^7.6.0",
"@linaria/babel-preset": "^4.1.3",
"@linaria/cli": "^4.1.3",
"@linaria/core": "^4.1.3",
"@linaria/esbuild": "^4.1.3",
"@linaria/react": "^4.1.3",
Expand Down
3 changes: 3 additions & 0 deletions packages/core/babel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# we want to call babel on dist/esm and dist/cjs so it can run linaria

npx babel dist/esm --out-dir dist/esm-babel --extensions '.js,.jsx' --source-maps --config-file ../../babel.config.json
2 changes: 2 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
},
"scripts": {
"build": "npm run build-js && npm run build-types",
"build-tsc": "tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json",
"build-js": "node build.cjs && tsc-esm-fix --target='dist/js'",
"build-types": "tsc -p tsconfig.types.json",
"build-babel": "./babel.sh",
"lint": "npm run cycle-check && eslint src --ext .ts,.tsx",
"cycle-check": "ts-helper -p ./tsconfig.json -r ./src/index.ts -c",
"test": "jest",
Expand Down
17 changes: 17 additions & 0 deletions packages/core/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "../../tsconfig.json",
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist/cjs",
"declarationDir": "./dist/dts",
"sourceMap": true
},
"typedocOptions": {
"entryPoints": ["src/index.ts"],
"out": "docs",
"categorizeByGroup": false,
"name": "Glide Data Grid",
"categoryOrder": ["DataEditor", "*"]
}
}
19 changes: 19 additions & 0 deletions packages/core/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"extends": "../../tsconfig.json",
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist/esm",
"declarationDir": "./dist/dts",
"sourceMap": true,
"declaration": true,
"declarationMap": true
},
"typedocOptions": {
"entryPoints": ["src/index.ts"],
"out": "docs",
"categorizeByGroup": false,
"name": "Glide Data Grid",
"categoryOrder": ["DataEditor", "*"]
}
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"esModuleInterop": true,
"composite": true,
"jsx": "react",
"moduleResolution": "node",
"moduleResolution": "node", // make node-16
"module": "esnext",
"noImplicitAny": true,
"noUnusedLocals": true,
"skipLibCheck": true,
"importsNotUsedAsValues": "error",
"noUnusedParameters": true,
"strict": true,
"target": "es6",
"target": "es6", // es2022
"types": ["jest", "node"]
}
}

0 comments on commit 9715f3e

Please sign in to comment.