Initialize a new project
This commit is contained in:
parent
bb1826aab5
commit
2d56c2e2e4
14 changed files with 3502 additions and 4 deletions
18
.eslintrc.cjs
Normal file
18
.eslintrc.cjs
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
const { join } = require("node:path");
|
||||||
|
const { PluginName, PresetName } = require("@manuth/eslint-plugin-typescript");
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
extends: [
|
||||||
|
`plugin:${PluginName}/${PresetName.RecommendedWithTypeChecking}`
|
||||||
|
],
|
||||||
|
env: {
|
||||||
|
node: true,
|
||||||
|
es6: true
|
||||||
|
},
|
||||||
|
parserOptions: {
|
||||||
|
project: [
|
||||||
|
join(__dirname, "jsconfig.json"),
|
||||||
|
join(__dirname, "eslint.jsconfig.json")
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
11
.gitignore
vendored
11
.gitignore
vendored
|
@ -1,4 +1,6 @@
|
||||||
# ---> Node
|
# Build results
|
||||||
|
[Ll]ib/
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
logs
|
logs
|
||||||
*.log
|
*.log
|
||||||
|
@ -94,7 +96,7 @@ dist
|
||||||
|
|
||||||
# Gatsby files
|
# Gatsby files
|
||||||
.cache/
|
.cache/
|
||||||
# Comment in the public line in if your project uses Gatsby and not Next.js
|
# 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
|
# https://nextjs.org/blog/next-9-1#public-directory-support
|
||||||
# public
|
# public
|
||||||
|
|
||||||
|
@ -130,3 +132,8 @@ dist
|
||||||
.yarn/install-state.gz
|
.yarn/install-state.gz
|
||||||
.pnp.*
|
.pnp.*
|
||||||
|
|
||||||
|
# Temporary release-assets
|
||||||
|
.tagName.txt
|
||||||
|
.tagHeading.txt
|
||||||
|
.releaseNotes.md
|
||||||
|
.releaseTitle.md
|
||||||
|
|
164
.npmignore
Normal file
164
.npmignore
Normal file
|
@ -0,0 +1,164 @@
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# Temporary release-assets
|
||||||
|
.tagName.txt
|
||||||
|
.tagHeading.txt
|
||||||
|
.releaseNotes.md
|
||||||
|
.releaseTitle.md
|
8
.vscode/extensions.json
vendored
Normal file
8
.vscode/extensions.json
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"dbaeumer.vscode-eslint",
|
||||||
|
"hbenl.test-adapter-converter",
|
||||||
|
"hbenl.vscode-mocha-test-adapter",
|
||||||
|
"hbenl.vscode-test-explorer"
|
||||||
|
]
|
||||||
|
}
|
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
|
||||||
|
"javascript.format.placeOpenBraceOnNewLineForControlBlocks": true,
|
||||||
|
"javascript.format.placeOpenBraceOnNewLineForFunctions": true
|
||||||
|
}
|
16
.vscode/tasks.json
vendored
Normal file
16
.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||||
|
// for the documentation about the tasks.json format
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Lint",
|
||||||
|
"type": "npm",
|
||||||
|
"script": "lint-ide",
|
||||||
|
"problemMatcher": "$eslint-stylish",
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "never"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
8
CHANGELOG.md
Normal file
8
CHANGELOG.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# Changelog
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## ConnectForce [Unreleased]
|
||||||
|
- Initial release
|
|
@ -1,3 +1,2 @@
|
||||||
# ConnectForce
|
# ConnectForce
|
||||||
|
A selfmade Connect Four game.
|
||||||
A selfmade Connect Four game.
|
|
||||||
|
|
7
base.jsconfig.json
Normal file
7
base.jsconfig.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"extends": "@manuth/tsconfig/recommended",
|
||||||
|
"compilerOptions": {
|
||||||
|
"allowJs": true,
|
||||||
|
"checkJs": true
|
||||||
|
}
|
||||||
|
}
|
6
eslint.jsconfig.json
Normal file
6
eslint.jsconfig.json
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extends": "./base.jsconfig.json",
|
||||||
|
"include": [
|
||||||
|
"./.eslintrc.cjs"
|
||||||
|
]
|
||||||
|
}
|
13
jsconfig.json
Normal file
13
jsconfig.json
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"extends": "./base.jsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"allowJs": true,
|
||||||
|
"checkJs": true,
|
||||||
|
"lib": [
|
||||||
|
"DOM"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"./src/**/*"
|
||||||
|
]
|
||||||
|
}
|
3230
package-lock.json
generated
Normal file
3230
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
17
package.json
Normal file
17
package.json
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"name": "connect-force",
|
||||||
|
"private": true,
|
||||||
|
"version": "0.0.0",
|
||||||
|
"type": "module",
|
||||||
|
"description": "A selfmade Connect Four game.",
|
||||||
|
"author": "Manuel Thalmann <m@nuth.ch>",
|
||||||
|
"scripts": {
|
||||||
|
"lint": "eslint --max-warnings 0 ./src .eslintrc.cjs",
|
||||||
|
"lint-ide": "npm run lint || exit 0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@manuth/eslint-plugin-typescript": "^4.0.0",
|
||||||
|
"@manuth/tsconfig": "^3.0.2",
|
||||||
|
"eslint": "^8.23.1"
|
||||||
|
}
|
||||||
|
}
|
0
src/main.js
Normal file
0
src/main.js
Normal file
Loading…
Reference in a new issue