-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
690 additions
and
416 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
node_modules | ||
|
||
packages/core/lib/ | ||
packages/ui/lib/ | ||
packages/styles/lib/ | ||
apps/**/dist | ||
|
||
**/node_modules | ||
**/dist | ||
**/*.tsbuildinfo | ||
**/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.gitkeep": true, | ||
"**/node_modules": true | ||
}, | ||
"prettier.configPath": ".prettierrc", | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"eslint.rules.customizations": [{ "rule": "*", "severity": "error" }], | ||
"scss.lint.unknownAtRules": "ignore", | ||
"typescript.tsdk": "./node_modules/typescript/lib" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"extends": "../../tsconfig.ui.json", | ||
"extends": "@web3uikit/config/tsconfig.ui.json", | ||
"compilerOptions": { | ||
"noEmit": true, | ||
"rootDir": "src" | ||
"baseUrl": ".", | ||
"rootDir": "src", | ||
}, | ||
"include": ["src"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "@web3uikit/config", | ||
"version": "0.1.0", | ||
"sideEffects": false, | ||
"devDependencies": { | ||
"@types/node": "^17.0.36", | ||
"@vitejs/plugin-react": "^1.3.2", | ||
"vite": "^2.9.9", | ||
"vite-plugin-dts": "^1.2.0", | ||
"vite-tsconfig-paths": "^3.5.0" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import react from '@vitejs/plugin-react'; | ||
import tsconfigPaths from 'vite-tsconfig-paths'; | ||
|
||
import { UserConfigExport } from 'vite'; | ||
import dts from 'vite-plugin-dts'; | ||
|
||
/** | ||
* | ||
* @param cwd | ||
* @param external | ||
*/ | ||
const config = (cwd: string, external?: string[]): UserConfigExport => { | ||
return { | ||
root: cwd, | ||
plugins: [ | ||
react(), | ||
tsconfigPaths({ root: cwd }), | ||
dts({ entryRoot: cwd + "/src", outputDir: cwd + "/dist" }), | ||
], | ||
build: { | ||
emptyOutDir: true, | ||
lib: { | ||
entry: cwd + '/src/index.ts', | ||
fileName: 'index', | ||
formats: ['es', 'cjs'], | ||
}, | ||
outDir: cwd + '/dist', | ||
rollupOptions: { | ||
external, | ||
}, | ||
}, | ||
}; | ||
}; | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
{ | ||
"extends": "../../tsconfig.ui.json", | ||
"extends": "@web3uikit/config/tsconfig.ui.json", | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"declarationDir": "lib", | ||
"emitDeclarationOnly": true, | ||
"rootDir": "src" | ||
}, | ||
"include": ["src"], | ||
"exclude": ["node_modules", "package.json"] | ||
"include": ["src", "index.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,4 @@ | ||
import path from 'path'; | ||
import react from '@vitejs/plugin-react'; | ||
import tsconfigPaths from 'vite-tsconfig-paths'; | ||
|
||
import { defineConfig } from 'vite'; | ||
const { name, version } = require('./package.json'); | ||
|
||
import dts from 'vite-plugin-dts'; | ||
import config from './node_modules/@web3uikit/config/vite.config'; | ||
|
||
export default defineConfig({ | ||
define: { | ||
pkgJson: { name, version }, | ||
}, | ||
plugins: [react(), tsconfigPaths(), dts({ entryRoot: './src' })], | ||
build: { | ||
lib: { | ||
entry: path.resolve(__dirname, 'src/index.ts'), | ||
fileName: 'index', | ||
formats: ['es'], | ||
}, | ||
outDir: './lib', | ||
rollupOptions: { | ||
// externalize deps that shouldn't be bundled | ||
external: ['react', 'react-dom'], | ||
output: { | ||
// global vars to use in UMD build for externalized deps | ||
globals: { | ||
react: 'React', | ||
'react-dom': 'ReactDOM', | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); | ||
export default defineConfig({ ...config(__dirname) }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
{ | ||
"extends": "../../tsconfig.ui.json", | ||
"extends": "@web3uikit/config/tsconfig.ui.json", | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"declarationDir": "lib", | ||
"emitDeclarationOnly": true, | ||
"rootDir": "src" | ||
"rootDir": "src", | ||
}, | ||
"include": ["src"], | ||
"exclude": ["node_modules", "package.json"] | ||
"include": ["src"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,4 @@ | ||
import path from 'path'; | ||
import react from '@vitejs/plugin-react'; | ||
import tsconfigPaths from 'vite-tsconfig-paths'; | ||
|
||
import { defineConfig } from 'vite'; | ||
const { name, version } = require('./package.json'); | ||
|
||
import dts from 'vite-plugin-dts'; | ||
import config from './node_modules/@web3uikit/config/vite.config'; | ||
|
||
export default defineConfig({ | ||
define: { | ||
pkgJson: { name, version } | ||
}, | ||
plugins: [react(), tsconfigPaths(), dts({ entryRoot: './src' })], | ||
build: { | ||
lib: { | ||
entry: path.resolve(__dirname, 'src/index.ts'), | ||
fileName: 'index', | ||
formats: ['es'] | ||
}, | ||
outDir: './lib', | ||
rollupOptions: { | ||
// externalize deps that shouldn't be bundled | ||
external: ['react', 'react-dom'], | ||
output: { | ||
// global vars to use in UMD build for externalized deps | ||
globals: { | ||
react: 'React', | ||
'react-dom': 'ReactDOM' | ||
} | ||
} | ||
} | ||
} | ||
}); | ||
export default defineConfig({ ...config(__dirname) }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.