Skip to content

Commit

Permalink
clean up the root directory (#293)
Browse files Browse the repository at this point in the history
* refactor: move dockerfile to scripts

* refactor: move `.nycrc` configuration to `package.json`

* refactor: move `typedoc.json` to the `package.json`

* refactor: move the `.eslintrc.json` to the `package.json`

* fix: remove comment in package.json

* refactor: ci should not trigger on `synchronize` as it does already on push
  • Loading branch information
EagleoutIce authored Sep 14, 2023
1 parent 4c5ebb9 commit 4c5b260
Show file tree
Hide file tree
Showing 7 changed files with 169 additions and 170 deletions.
108 changes: 0 additions & 108 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/check-broken-links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: check for broken links
- '**/*.md'
- 'wiki/**'
pull_request:
types: [ opened, synchronize ]
types: [ opened ]
branches: [ main ]
workflow_dispatch:
schedule:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Build the image
run: |
docker build -t flowr -f Dockerfile .
docker build -t flowr -f scripts/Dockerfile .
- name: Test that the image works
timeout-minutes: 5
Expand Down
10 changes: 0 additions & 10 deletions .nycrc

This file was deleted.

166 changes: 165 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,177 @@
"export-quads": "ts-node src/cli/export-quads-app.ts",
"build": "tsc --project .",
"lint": "eslint src/ test/",
"doc": "typedoc --options typedoc.json",
"doc": "typedoc",
"test": "nyc --no-clean mocha --require ts-node/register --timeout 10000 \"test/**/*.spec.ts\"",
"test-full": "npm run test -- --test-installation"
},
"keywords": [],
"author": "Florian Sihler",
"license": "ISC",
"nyc": {
"all": true,
"per-file": true,
"check-coverage": false,
"skip-full": false,
"lines": 70,
"extension": [".ts"],
"include": "src/**/*.ts",
"reporter": ["html", "text", "lcov", "cobertura"]
},
"typedocOptions": {
"includeVersion": true,
"plugin": [
"typedoc-umlclass",
"typedoc-plugin-missing-exports",
"typedoc-theme-hierarchy"
],
"entryPoints": [
"src",
"test/helper"
],
"entryPointStrategy": "expand",
"exclude": [
"**/node_modules/**/*"
],
"theme": "hierarchy",
"out": "doc",
"readme": "README.md",
"umlClassDiagram": {
"type": "detailed",
"location": "embed",
"format": "svg",
"position": "below",
"legendType": "none",
"hideEmptyMembers": false,
"generatorProcessCount": 4
},
"lightHighlightTheme": "light-plus",
"darkHighlightTheme": "dark-plus",
"hideGenerator": false,
"searchInComments": true,
"useTsLinkResolution": true,
"categorizeByGroup": true,
"sort": [ "static-first", "alphabetical" ],
"visibilityFilters": {
"protected": true,
"private": true,
"inherited": true,
"external": true
},
"validation": {
"notExported": true,
"invalidLink": true,
"notDocumented": true
},
"treatValidationWarningsAsErrors": false
},
"eslintConfig": {
"root": true,
"env": {
"browser": false,
"node": true,
"es2022": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict",
"plugin:@typescript-eslint/recommended"
],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"eslint-plugin-tsdoc"
],
"rules": {
"indent": "off",
"@typescript-eslint/indent": [
"error",
"tab",
{
"FunctionDeclaration": {
"parameters": "first"
},
"ObjectExpression": 1,
"SwitchCase": 1
}
],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-warning-comments": ["error", {
"terms": ["todo", "fixme", "xxx"],
"location": "anywhere"
}],
"@typescript-eslint/non-nullable-type-assertion-style": "off",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"@typescript-eslint/key-spacing": [
"error",
{
"align": "value"
}
],
"semi": [
"error",
"never"
],
"space-before-function-paren": [
"error",
"never"
],
"keyword-spacing": "off",
"@typescript-eslint/keyword-spacing": [
"error",
{
"before": true,
"after": true,
"overrides": {
"if": {
"after": false
},
"for": {
"after": false
},
"while": {
"after": false
},
"do": {
"after": false
},
"catch": {
"after": false
},
"switch": {
"after": false
},
"default": {
"after": false
},
"throw": {
"after": false
}
}
}
],
"@typescript-eslint/space-before-function-paren": [
"error",
"never"
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"tsdoc/syntax": "error"
}
},
"devDependencies": {
"@types/chai": "^4.3.5",
"@types/chai-as-promised": "^7.1.5",
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile → scripts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM node:20 AS builder

WORKDIR /app

COPY ./src/ /app/src/
COPY ../src /app/src/
COPY ./package*.json ./tsconfig.json /app/

RUN npm install
Expand All @@ -20,7 +20,7 @@ WORKDIR /app
RUN apk add --no-cache R

# we keep the package.json for module resolution
COPY package.json LICENSE /app/
COPY ../package.json LICENSE /app/
RUN npm install --only=production

COPY --from=builder /app/dist/src /app/dist
Expand Down
47 changes: 0 additions & 47 deletions typedoc.json

This file was deleted.

0 comments on commit 4c5b260

Please sign in to comment.