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/*.bundle.*
/test/*.css /test/*.css
.cypress .cypress
dist-tsc
# editor files # editor files
.vscode .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, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "bitburner",
"version": "0.52.9", "version": "0.52.9",
"hasInstallScript": true, "hasInstallScript": true,
"license": "SEE LICENSE IN license.txt", "license": "SEE LICENSE IN license.txt",
@ -39258,9 +39259,7 @@
"version": "1.0.6", "version": "1.0.6",
"resolved": "https://registry.npmjs.org/mathjax-react/-/mathjax-react-1.0.6.tgz", "resolved": "https://registry.npmjs.org/mathjax-react/-/mathjax-react-1.0.6.tgz",
"integrity": "sha512-GlkPAhaY0FKc95TMdo33mxNZHb+3xRgfgc3YcnQ0cZxvnM1UaF0o8mRI5y5xIwi3JnioeYuukZJWCbIZkACIVw==", "integrity": "sha512-GlkPAhaY0FKc95TMdo33mxNZHb+3xRgfgc3YcnQ0cZxvnM1UaF0o8mRI5y5xIwi3JnioeYuukZJWCbIZkACIVw==",
"requires": { "requires": {}
"mathjax-full": "^3.0.4"
}
}, },
"mathml-tag-names": { "mathml-tag-names": {
"version": "2.1.0", "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": { "files": [],
"baseUrl": ".", "references": [
"esModuleInterop": true, {
"isolatedModules": true, "path": "./tsconfig.src.json"
"jsx": "react", },
"lib": ["es2016", "dom", "es2017.object", "es2019"], {
"module": "commonjs", "path": "./test/tsconfig.spec.json"
"target": "es6", },
"sourceMap": true, {
"strict": true, "path": "./cypress/tsconfig.json"
"types": ["cypress", "@testing-library/cypress"] }
}, ]
"exclude": ["node_modules"]
} }

4
tsconfig.src.json Normal file

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