1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-07-18 02:20:12 +02:00

build(deps): update latest

This commit is contained in:
Divlo 2023-05-13 18:48:23 +02:00
parent 76bb060ecd
commit 399ba8a913
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9
16 changed files with 664 additions and 473 deletions

View File

@ -1,6 +0,0 @@
node_modules
challenges
templates
temp
tmp
build

View File

@ -1,6 +1,6 @@
<!-- Please first discuss the change you wish to make via issue before making a change. It might avoid a waste of your time. --> <!-- Please first discuss the change you wish to make via issue before making a change. It might avoid a waste of your time. -->
## What changes this PR introduce? # What changes this PR introduce?
## List any relevant issue numbers ## List any relevant issue numbers

View File

@ -11,23 +11,23 @@ jobs:
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- uses: 'actions/checkout@v3.5.0' - uses: 'actions/checkout@v3.5.2'
with: with:
fetch-depth: 0 fetch-depth: 0
- name: 'Use Docker' - name: 'Setup Docker'
uses: 'actions-hub/docker/cli@master' uses: 'actions-hub/docker/cli@master'
env: env:
SKIP_LOGIN: true SKIP_LOGIN: true
- name: 'Use Node.js' - name: 'Setup Node.js'
uses: 'actions/setup-node@v3.6.0' uses: 'actions/setup-node@v3.6.0'
with: with:
node-version: 'lts/*' node-version: 'lts/*'
cache: 'npm' cache: 'npm'
- name: 'Install' - name: 'Install dependencies'
run: 'npm install' run: 'npm clean-install'
- name: 'Build' - name: 'Build'
run: 'npm run build' run: 'npm run build'

View File

@ -10,16 +10,16 @@ jobs:
lint: lint:
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
steps: steps:
- uses: 'actions/checkout@v3.5.0' - uses: 'actions/checkout@v3.5.2'
- name: 'Use Node.js' - name: 'Setup Node.js'
uses: 'actions/setup-node@v3.6.0' uses: 'actions/setup-node@v3.6.0'
with: with:
node-version: 'lts/*' node-version: 'lts/*'
cache: 'npm' cache: 'npm'
- name: 'Install' - name: 'Install dependencies'
run: 'npm install' run: 'npm clean-install'
- run: 'npm run lint:commit -- --to "${{ github.sha }}"' - run: 'npm run lint:commit -- --to "${{ github.sha }}"'
- run: 'npm run lint:editorconfig' - run: 'npm run lint:editorconfig'
@ -29,16 +29,16 @@ jobs:
build: build:
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
steps: steps:
- uses: 'actions/checkout@v3.5.0' - uses: 'actions/checkout@v3.5.2'
- name: 'Use Node.js' - name: 'Setup Node.js'
uses: 'actions/setup-node@v3.6.0' uses: 'actions/setup-node@v3.6.0'
with: with:
node-version: 'lts/*' node-version: 'lts/*'
cache: 'npm' cache: 'npm'
- name: 'Install' - name: 'Install dependencies'
run: 'npm install' run: 'npm clean-install'
- name: 'Build' - name: 'Build'
run: 'npm run build' run: 'npm run build'
@ -48,21 +48,21 @@ jobs:
test: test:
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
steps: steps:
- uses: 'actions/checkout@v3.5.0' - uses: 'actions/checkout@v3.5.2'
- name: 'Use Docker' - name: 'Setup Docker'
uses: 'actions-hub/docker/cli@master' uses: 'actions-hub/docker/cli@master'
env: env:
SKIP_LOGIN: true SKIP_LOGIN: true
- name: 'Use Node.js' - name: 'Setup Node.js'
uses: 'actions/setup-node@v3.6.0' uses: 'actions/setup-node@v3.6.0'
with: with:
node-version: 'lts/*' node-version: 'lts/*'
cache: 'npm' cache: 'npm'
- name: 'Install' - name: 'Install dependencies'
run: 'npm install' run: 'npm clean-install'
- name: 'Build' - name: 'Build'
run: 'npm run build' run: 'npm run build'

View File

@ -1,4 +1,11 @@
{ {
"config": {
"extends": "markdownlint/style/prettier",
"relative-links": true,
"default": true,
"MD024": false,
"MD033": false
},
"globs": ["**/*.{md,mdx}"], "globs": ["**/*.{md,mdx}"],
"ignores": ["**/node_modules"], "ignores": ["**/node_modules"],
"customRules": ["markdownlint-rule-relative-links"] "customRules": ["markdownlint-rule-relative-links"]

View File

@ -1,8 +0,0 @@
{
"default": true,
"relative-links": true,
"extends": "markdownlint/style/prettier",
"MD024": false,
"MD033": false,
"MD041": false
}

View File

@ -60,7 +60,7 @@ representative at an online or offline event.
Instances of abusive, harassing, or otherwise unacceptable behavior may be Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at reported to the community leaders responsible for enforcement at
contact@divlo.fr. <contact@divlo.fr>.
All complaints will be reviewed and investigated promptly and fairly. All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the All community leaders are obligated to respect the privacy and security of the

View File

@ -2,6 +2,14 @@
Thanks a lot for your interest in contributing to **programming-challenges**! 🎉 Thanks a lot for your interest in contributing to **programming-challenges**! 🎉
## Code of Conduct
**programming-challenges** adopted the [Contributor Covenant](https://www.contributor-covenant.org/) as its Code of Conduct, and we expect project participants to adhere to it. Please read [the full text](./CODE_OF_CONDUCT.md) so that you can understand what actions will and will not be tolerated.
## Open Development
All work on **programming-challenges** happens directly on this repository. Both core team members and external contributors send pull requests which go through the same review process.
## Types of contributions ## Types of contributions
- [Submit a challenge](#submit-a-challenge) - [Submit a challenge](#submit-a-challenge)
@ -50,34 +58,7 @@ If you're adding new features to **programming-challenges**, please include test
## Commits ## Commits
The commit message guidelines respect [@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional) and [Semantic Versioning](https://semver.org/) for releases. The commit message guidelines adheres to [Conventional Commits](https://www.conventionalcommits.org/) and [Semantic Versioning](https://semver.org/) for releases. |
### Types
Types define which kind of changes you made to the project.
| Types | Description |
| -------- | ------------------------------------------------------------------------------------------------------------ |
| feat | A new feature. |
| fix | A bug fix. |
| docs | Documentation only changes. |
| style | Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc). |
| refactor | A code change that neither fixes a bug nor adds a feature. |
| perf | A code change that improves performance. |
| test | Adding missing tests or correcting existing tests. |
| build | Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm). |
| ci | Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs). |
| chore | Other changes that don't modify src or test files. |
| revert | Reverts a previous commit. |
### Scopes
Scopes define what part of the code changed.
- cli
- challenges
- solutions
- languages
### Examples ### Examples

View File

@ -47,7 +47,7 @@ Gitpod will automatically setup an environment for you.
#### Prerequisites #### Prerequisites
- [Node.js](https://nodejs.org/) >= 18.0.0 - [Node.js](https://nodejs.org/) >= 18.0.0
- [npm](https://npmjs.com/) >= 8.0.0 - [npm](https://npmjs.com/) >= 9.0.0
- [Docker](https://www.docker.com/) - [Docker](https://www.docker.com/)
#### Installation #### Installation

985
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,7 @@
}, },
"engines": { "engines": {
"node": ">=18.0.0", "node": ">=18.0.0",
"npm": ">=8.0.0" "npm": ">=9.0.0"
}, },
"main": "build/index.js", "main": "build/index.js",
"bin": "build/index.js", "bin": "build/index.js",
@ -23,13 +23,13 @@
"lint:commit": "commitlint", "lint:commit": "commitlint",
"lint:editorconfig": "editorconfig-checker", "lint:editorconfig": "editorconfig-checker",
"lint:markdown": "markdownlint-cli2", "lint:markdown": "markdownlint-cli2",
"lint:eslint": "eslint \".\"", "lint:eslint": "eslint \"cli\" --ignore-path \".gitignore\"",
"test": "tap" "test": "tap"
}, },
"dependencies": { "dependencies": {
"chalk": "5.2.0", "chalk": "5.2.0",
"clipanion": "3.2.0", "clipanion": "3.2.0",
"date-and-time": "2.4.3", "date-and-time": "3.0.0",
"execa": "7.1.1", "execa": "7.1.1",
"log-symbols": "5.1.0", "log-symbols": "5.1.0",
"ora": "6.3.0", "ora": "6.3.0",
@ -39,34 +39,34 @@
"validate-npm-package-name": "5.0.0" "validate-npm-package-name": "5.0.0"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "17.5.1", "@commitlint/cli": "17.6.3",
"@commitlint/config-conventional": "17.4.4", "@commitlint/config-conventional": "17.6.3",
"@swc/cli": "0.1.62", "@swc/cli": "0.1.62",
"@swc/core": "1.3.44", "@swc/core": "1.3.57",
"@tsconfig/strictest": "2.0.0", "@tsconfig/strictest": "2.0.1",
"@types/date-and-time": "0.13.0", "@types/date-and-time": "0.13.0",
"@types/mock-fs": "4.13.1", "@types/mock-fs": "4.13.1",
"@types/ms": "0.7.31", "@types/ms": "0.7.31",
"@types/node": "18.15.11", "@types/node": "20.1.4",
"@types/sinon": "10.0.13", "@types/sinon": "10.0.14",
"@types/tap": "15.0.8", "@types/tap": "15.0.8",
"@types/validate-npm-package-name": "4.0.0", "@types/validate-npm-package-name": "4.0.0",
"@typescript-eslint/eslint-plugin": "5.57.0", "@typescript-eslint/eslint-plugin": "5.59.5",
"@typescript-eslint/parser": "5.57.0", "@typescript-eslint/parser": "5.59.5",
"editorconfig-checker": "5.0.1", "editorconfig-checker": "5.0.1",
"eslint": "8.37.0", "eslint": "8.40.0",
"eslint-config-conventions": "8.0.0", "eslint-config-conventions": "9.0.0",
"eslint-plugin-import": "2.27.5", "eslint-plugin-import": "2.27.5",
"eslint-plugin-promise": "6.1.1", "eslint-plugin-promise": "6.1.1",
"eslint-plugin-unicorn": "46.0.0", "eslint-plugin-unicorn": "47.0.0",
"get-stream": "6.0.1", "get-stream": "6.0.1",
"markdownlint-cli2": "0.6.0", "markdownlint-cli2": "0.7.1",
"markdownlint-rule-relative-links": "1.1.2", "markdownlint-rule-relative-links": "1.2.0",
"mock-fs": "5.2.0", "mock-fs": "5.2.0",
"ms": "2.1.3", "ms": "2.1.3",
"rimraf": "4.4.1", "rimraf": "5.0.0",
"sinon": "15.0.3", "sinon": "15.0.4",
"tap": "16.3.4", "tap": "16.3.4",
"typescript": "5.0.3" "typescript": "5.0.4"
} }
} }

View File

@ -1,4 +1,4 @@
FROM dart:2.19.6 AS builder FROM dart:3.0.0 AS builder
WORKDIR /usr/src/application WORKDIR /usr/src/application
COPY ./ ./ COPY ./ ./
RUN dart compile exe solution.dart -o solution RUN dart compile exe solution.dart -o solution

View File

@ -1 +1 @@
/target target

View File

@ -1,4 +1,4 @@
FROM rust:1.68.2 AS builder FROM rust:1.69.0 AS builder
WORKDIR /usr/src/rust_application WORKDIR /usr/src/rust_application
# Cache dependencies # Cache dependencies

View File

@ -1,9 +1,9 @@
FROM node:18.15.0 AS builder-dependencies FROM node:18.16.0 AS builder-dependencies
WORKDIR /usr/src/application WORKDIR /usr/src/application
COPY ./package*.json ./ COPY ./package*.json ./
RUN npm install RUN npm install
FROM node:18.15.0 AS builder FROM node:18.16.0 AS builder
WORKDIR /usr/src/application WORKDIR /usr/src/application
COPY --from=builder-dependencies /usr/src/application/node_modules ./node_modules COPY --from=builder-dependencies /usr/src/application/node_modules ./node_modules
COPY ./ ./ COPY ./ ./

View File

@ -4,7 +4,7 @@
"build": "tsc" "build": "tsc"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "latest", "@types/node": "20.1.4",
"typescript": "latest" "typescript": "5.0.4"
} }
} }