Separate src, test, cypress

This commit is contained in:
David Edmondson 2021-09-07 12:04:01 -07:00
parent c97fece747
commit 0c0adf29d5
7 changed files with 43 additions and 16 deletions

1
.gitignore vendored

@ -8,6 +8,7 @@ Netburner.txt
/test/*.bundle.*
/test/*.css
.cypress
dist-tsc
# editor files
.vscode

7
cypress/tsconfig.json Normal file

@ -0,0 +1,7 @@
{
"extends": "../tsconfig.base.json",
"include": ["**/*"],
"compilerOptions": {
"types": ["cypress", "@testing-library/cypress"]
}
}

5
package-lock.json generated

@ -5,6 +5,7 @@
"requires": true,
"packages": {
"": {
"name": "bitburner",
"version": "0.52.9",
"hasInstallScript": true,
"license": "SEE LICENSE IN license.txt",
@ -39258,9 +39259,7 @@
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/mathjax-react/-/mathjax-react-1.0.6.tgz",
"integrity": "sha512-GlkPAhaY0FKc95TMdo33mxNZHb+3xRgfgc3YcnQ0cZxvnM1UaF0o8mRI5y5xIwi3JnioeYuukZJWCbIZkACIVw==",
"requires": {
"mathjax-full": "^3.0.4"
}
"requires": {}
},
"mathml-tag-names": {
"version": "2.1.0",

4
test/tsconfig.spec.json Normal file

@ -0,0 +1,4 @@
{
"extends": "../tsconfig.base.json",
"include": ["**/*"]
}

13
tsconfig.base.json Normal file

@ -0,0 +1,13 @@
{
"compilerOptions": {
"outDir": "./dist-tsc/",
"esModuleInterop": true,
"isolatedModules": true,
"jsx": "react",
"lib": ["es2016", "dom", "es2017.object", "es2019"],
"module": "commonjs",
"target": "es6",
"sourceMap": true,
"strict": true
}
}

@ -1,15 +1,14 @@
{
"compilerOptions": {
"baseUrl": ".",
"esModuleInterop": true,
"isolatedModules": true,
"jsx": "react",
"lib": ["es2016", "dom", "es2017.object", "es2019"],
"module": "commonjs",
"target": "es6",
"sourceMap": true,
"strict": true,
"types": ["cypress", "@testing-library/cypress"]
},
"exclude": ["node_modules"]
"files": [],
"references": [
{
"path": "./tsconfig.src.json"
},
{
"path": "./test/tsconfig.spec.json"
},
{
"path": "./cypress/tsconfig.json"
}
]
}

4
tsconfig.src.json Normal file

@ -0,0 +1,4 @@
{
"extends": "./tsconfig.base.json",
"exclude": ["node_modules", "cypress", "test"]
}