Roll back to single workspace environment

This commit is contained in:
Manuel Thalmann 2022-12-15 00:57:54 +01:00
parent 6df42d2e3f
commit e34ae6d1c3
No known key found for this signature in database
GPG key ID: 5FD9AD3CCDDBD27B
24 changed files with 36 additions and 271 deletions

View file

@ -7,11 +7,14 @@ module.exports = {
`plugin:${PluginName}/${PresetName.RecommendedWithTypeChecking}` `plugin:${PluginName}/${PresetName.RecommendedWithTypeChecking}`
], ],
env: { env: {
node: true node: true,
browser: true
}, },
parserOptions: { parserOptions: {
project: [ project: [
join(__dirname, "eslint.jsconfig.json") join(__dirname, "app.jsconfig.json"),
join(__dirname, "eslint.jsconfig.json"),
join(__dirname, "gulp.tsconfig.json")
] ]
} }
}; };

View file

@ -1,11 +1,6 @@
{ {
"folders": [ "folders": [
{ {
"name": "ConnectForce",
"path": "./packages/game"
},
{
"name": "Solution Items",
"path": "." "path": "."
} }
], ],
@ -31,7 +26,7 @@
"label": "Build", "label": "Build",
"type": "shell", "type": "shell",
"options": { "options": {
"cwd": "${workspaceFolder:Solution Items}" "cwd": "${workspaceFolder}"
}, },
"command": "npm", "command": "npm",
"args": [ "args": [
@ -68,7 +63,7 @@
"label": "Rebuild", "label": "Rebuild",
"type": "shell", "type": "shell",
"options": { "options": {
"cwd": "${workspaceFolder:Solution Items}" "cwd": "${workspaceFolder}"
}, },
"command": "npm", "command": "npm",
"args": [ "args": [
@ -84,7 +79,7 @@
"label": "Lint", "label": "Lint",
"type": "shell", "type": "shell",
"options": { "options": {
"cwd": "${workspaceFolder:Solution Items}" "cwd": "${workspaceFolder}"
}, },
"command": "npm", "command": "npm",
"args": [ "args": [
@ -109,10 +104,10 @@
"request": "launch", "request": "launch",
"name": "Launch Website in Chrome", "name": "Launch Website in Chrome",
"url": "http://localhost:3000", "url": "http://localhost:3000",
"webRoot": "${workspaceFolder:ConnectForce}/lib/static", "webRoot": "${workspaceFolder}/lib/static",
"preLaunchTask": "Build", "preLaunchTask": "Build",
"pathMapping": { "pathMapping": {
"/": "${workspaceFolder:ConnectForce}/src" "/": "${workspaceFolder}/src"
} }
} }
] ]

View file

@ -1,26 +1,31 @@
{ {
"name": "connect-force", "name": "connect-force",
"private": true, "version": "0.0.0",
"files": [], "type": "module",
"workspaces": { "description": "A selfmade Connect Four game.",
"packages": [ "author": "Manuel Thalmann <m@nuth.ch>",
"./packages/*"
]
},
"scripts": { "scripts": {
"rebuild": "npm run --workspaces rebuild", "gulp": "cross-env NODE_OPTIONS=\"--loader ts-node/esm\" gulp --",
"watch": "concurrently --raw \"npm run --workspaces --if-present watch\"", "build": "npm run gulp Build",
"clean": "npm run --workspaces clean", "rebuild": "npm run clean && npm run build",
"lint-local": "eslint --max-warnings 0 .eslintrc.cjs", "watch": "npm run gulp Watch",
"lint-local-ide": "npm run lint-local || exit 0", "clean": "rimraf ./lib",
"lint": "npm run lint-local && npm run --workspaces lint", "lint": "eslint --max-warnings 0 ./src .eslintrc.cjs",
"lint-ide": "npm run lint-local-ide && npm run --workspaces lint-ide", "lint-ide": "npm run lint || exit 0",
"test": "npm run --workspaces test",
"prepare": "npm run rebuild" "prepare": "npm run rebuild"
}, },
"devDependencies": { "devDependencies": {
"@manuth/eslint-plugin-typescript": "^4.0.1", "@manuth/eslint-plugin-typescript": "^4.0.1",
"concurrently": "^7.6.0", "@manuth/tsconfig": "^3.0.2",
"eslint": "^8.29.0" "@types/browser-sync": "^2.26.3",
"@types/gulp": "^4.0.10",
"@types/node": "^18.11.11",
"browser-sync": "^2.27.10",
"cross-env": "^7.0.3",
"eslint": "^8.29.0",
"gulp": "^4.0.2",
"rimraf": "^3.0.2",
"ts-node": "^10.9.1",
"upath": "^2.0.1"
} }
} }

View file

@ -1,14 +0,0 @@
const { join } = require("node:path");
module.exports = {
env: {
browser: true
},
parserOptions: {
project: [
join(__dirname, "app.jsconfig.json"),
join(__dirname, "eslint.jsconfig.json"),
join(__dirname, "gulp.tsconfig.json")
]
}
};

View file

@ -1,168 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional stylelint cache
.stylelintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# vuepress v2.x temp and cache directory
.temp
.cache
# Docusaurus cache and generated files
.docusaurus
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
# Source-files
[Ss]rc/
# TypeScript config-files
tsconfig.json
tsconfig.*.json
# Lint config-files
.eslintrc
.eslintrc.*
# Source-maps
[Ll]ib/**/*.map
# Unit-Tests
.mocharc.*
[Ll]ib/tests/
# Visual Studio Code-Environment
.vscode/
# GitHub configuration
.github/
# CI configuration
.drone.yml
.woodpecker.yml
# Build Environment
gulp/
gulpfile.ts
# Temporary release-assets
.tagName.txt
.tagHeading.txt
.releaseNotes.md
.releaseTitle.md

View file

@ -1,10 +0,0 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"allowJs": true,
"checkJs": true
},
"include": [
"./.eslintrc.cjs"
]
}

View file

@ -1,31 +0,0 @@
{
"name": "connect-force",
"version": "0.0.0",
"type": "module",
"description": "A selfmade Connect Four game.",
"author": "Manuel Thalmann <m@nuth.ch>",
"scripts": {
"gulp": "cross-env NODE_OPTIONS=\"--loader ts-node/esm\" gulp --",
"build": "npm run gulp Build",
"rebuild": "npm run clean && npm run build",
"watch": "npm run gulp Watch",
"clean": "rimraf ./lib",
"lint": "eslint --max-warnings 0 ./src .eslintrc.cjs",
"lint-ide": "npm run lint || exit 0",
"prepare": "npm run rebuild"
},
"devDependencies": {
"@manuth/eslint-plugin-typescript": "^4.0.1",
"@manuth/tsconfig": "^3.0.2",
"@types/browser-sync": "^2.26.3",
"@types/gulp": "^4.0.10",
"@types/node": "^18.11.11",
"browser-sync": "^2.27.10",
"cross-env": "^7.0.3",
"eslint": "^8.29.0",
"gulp": "^4.0.2",
"rimraf": "^3.0.2",
"ts-node": "^10.9.1",
"upath": "^2.0.1"
}
}

View file

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.base.json"
}

View file

@ -1,15 +0,0 @@
{
"extends": "./tsconfig.base.json",
"references": [
{
"path": "./app.jsconfig.json"
},
{
"path": "./eslint.jsconfig.json"
},
{
"path": "./gulp.tsconfig.json"
}
],
"include": []
}

View file

@ -1,11 +1,14 @@
{ {
"extends": "./tsconfig.base.json", "extends": "./tsconfig.base.json",
"references": [ "references": [
{
"path": "./app.jsconfig.json"
},
{ {
"path": "./eslint.jsconfig.json" "path": "./eslint.jsconfig.json"
}, },
{ {
"path": "./packages/game" "path": "./gulp.tsconfig.json"
} }
], ],
"include": [] "include": []