properly set up storage lib

This commit is contained in:
Matthew Russell 2022-02-23 19:19:18 -08:00
parent 473f74adca
commit bd77e15092
6 changed files with 97 additions and 2 deletions

View File

@ -0,0 +1,4 @@
{
"name": "@vegaprotocol/storage",
"version": "0.0.1"
}

43
libs/storage/project.json Normal file
View File

@ -0,0 +1,43 @@
{
"root": "libs/storage",
"sourceRoot": "libs/storage/src",
"projectType": "library",
"tags": [],
"targets": {
"build": {
"executor": "@nrwl/web:rollup",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/storage",
"tsConfig": "libs/storage/tsconfig.lib.json",
"project": "libs/storage/package.json",
"entryFile": "libs/storage/src/index.ts",
"external": ["react/jsx-runtime"],
"rollupConfig": "@nrwl/react/plugins/bundle-rollup",
"compiler": "babel",
"assets": [
{
"glob": "libs/storage/README.md",
"input": ".",
"output": "."
}
]
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/storage/**/*.{ts,js}"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/libs/storage"],
"options": {
"jestConfig": "libs/storage/jest.config.js",
"passWithNoTests": true
}
}
}
}

View File

@ -0,0 +1,25 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"jsx": "react-jsx",
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

View File

@ -0,0 +1,22 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": ["node"]
},
"files": [
"../../node_modules/@nrwl/react/typings/cssmodule.d.ts",
"../../node_modules/@nrwl/react/typings/image.d.ts"
],
"exclude": [
"**/*.spec.ts",
"**/*.test.ts",
"**/*.spec.tsx",
"**/*.test.tsx",
"**/*.spec.js",
"**/*.test.js",
"**/*.spec.jsx",
"**/*.test.jsx"
],
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
}

View File

@ -1,6 +1,6 @@
{
"root": "libs/ui-toolkit/src",
"sourceRoot": "libs/ui-toolkit",
"root": "libs/ui-toolkit",
"sourceRoot": "libs/ui-toolkit/src",
"projectType": "library",
"tags": [],
"targets": {

View File

@ -4,6 +4,7 @@
"explorer": "apps/explorer",
"explorer-e2e": "apps/explorer-e2e",
"react-helpers": "libs/react-helpers",
"storage": "libs/storage",
"tailwindcss-config": "libs/tailwindcss-config",
"trading": "apps/trading",
"trading-e2e": "apps/trading-e2e",