mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-19 10:14:24 -05:00
Cleanup Monorepo Build and packaging
This commit is contained in:
@@ -9,5 +9,10 @@
|
||||
"noEmit": true,
|
||||
"jsx": "react"
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": "../utils/tsconfig.json"
|
||||
}
|
||||
],
|
||||
"include": ["src"]
|
||||
}
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"start": "node ./dist/index.js",
|
||||
"build": "tsc",
|
||||
"build": "tsc -b",
|
||||
"dev": "ts-node-dev --exit-child --respawn --transpileOnly src/index.ts",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"typecheck": "yarn build",
|
||||
"precommit": "yarn lint-staged"
|
||||
},
|
||||
"author": "",
|
||||
|
||||
@@ -1,8 +1,15 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "./src",
|
||||
"outDir": "./dist"
|
||||
"rootDir": "src",
|
||||
"outDir": "dist",
|
||||
"tsBuildInfoFile": "dist/.tsbuildinfo",
|
||||
"incremental": true
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": "../utils"
|
||||
}
|
||||
],
|
||||
"include": ["./src"]
|
||||
}
|
||||
|
||||
@@ -1,8 +1,17 @@
|
||||
{
|
||||
"name": "@metafam/design-system",
|
||||
"name": "@metafam/ds",
|
||||
"version": "0.1.0",
|
||||
"main": "src/index.js",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"storybook": "start-storybook -p 6006",
|
||||
"build-storybook": "build-storybook",
|
||||
"prepare": "yarn build",
|
||||
"typecheck": "yarn build",
|
||||
"build": "tsc",
|
||||
"precommit": "yarn lint-staged"
|
||||
},
|
||||
"dependencies": {
|
||||
"@chakra-ui/core": "^0.8.0",
|
||||
"@emotion/core": "^10.0.28",
|
||||
@@ -20,9 +29,5 @@
|
||||
"babel-loader": "^8.1.0",
|
||||
"fork-ts-checker-webpack-plugin": "^5.0.9",
|
||||
"ts-loader": "^8.0.1"
|
||||
},
|
||||
"scripts": {
|
||||
"storybook": "start-storybook -p 6006",
|
||||
"build-storybook": "build-storybook"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export { ThemeProvider } from '@chakra-ui/core';
|
||||
export { metaTheme as theme } from './theme';
|
||||
export { theme } from './theme';
|
||||
export { GlobalStyle } from './GlobalStyle';
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
import { theme } from '@chakra-ui/core';
|
||||
import { theme as chakraTheme } from '@chakra-ui/core';
|
||||
|
||||
export const metaTheme = {
|
||||
...theme,
|
||||
export const theme: typeof chakraTheme = {
|
||||
...chakraTheme,
|
||||
colors: {
|
||||
...theme.colors,
|
||||
...chakraTheme.colors,
|
||||
},
|
||||
fonts: {
|
||||
body: '"IBM Plex Sans", sans-serif',
|
||||
heading: '"IBM Plex Sans", sans-serif',
|
||||
mono: '"IBM Plex Mono", monospace',
|
||||
meta: '"Press Start 2P"',
|
||||
heading: '"IBM Plex Mono", monospace',
|
||||
mono: '"Press Start 2P"',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -41,8 +41,5 @@ export const Fonts = () => (
|
||||
<Text fontSize="lg" fontFamily="mono" fontWeight="bold">
|
||||
In love with MetaGame - Mono Bold
|
||||
</Text>
|
||||
<Text fontSize="lg" fontFamily="meta">
|
||||
In love with MetaGame - Meta
|
||||
</Text>
|
||||
</Stack>
|
||||
);
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"module": "esnext",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"isolatedModules": true,
|
||||
"allowJs": true,
|
||||
"noEmit": true,
|
||||
"jsx": "react"
|
||||
"jsx": "react",
|
||||
"composite": true,
|
||||
"rootDir": "src",
|
||||
"outDir": "dist",
|
||||
"tsBuildInfoFile": "dist/.tsbuildinfo"
|
||||
},
|
||||
"exclude": ["node_modules"],
|
||||
"include": ["src"]
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"start": "yarn dev",
|
||||
"build": "tsc",
|
||||
"dev": "tsc -w",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"typecheck": "yarn build",
|
||||
"prepare": "yarn build",
|
||||
"precommit": "yarn lint-staged"
|
||||
},
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"rootDir": "src",
|
||||
"outDir": "./dist"
|
||||
"outDir": "dist",
|
||||
"tsBuildInfoFile": "dist/.tsbuildinfo"
|
||||
},
|
||||
"include": ["./src"]
|
||||
"include": ["src"]
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
@@ -9,6 +9,13 @@
|
||||
"lib": ["dom", "es2017"],
|
||||
"noEmit": true
|
||||
},
|
||||
"exclude": ["node_modules"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../utils/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../design-system/tsconfig.json"
|
||||
}
|
||||
],
|
||||
"include": ["**/*.ts", "**/*.tsx", "next-env.d.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user