Skip to content

Commit fbc3c84

Browse files
committed
Updates on docs
1 parent 64d0a50 commit fbc3c84

File tree

197 files changed

+863232
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+863232
-151
lines changed

.github/workflows/lint-md.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Check Markdown links
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.md'
7+
8+
jobs:
9+
lint-md:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- run: npm install
14+
- run: npx remark --use validate-links --frail . .github
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Update support window diagram
2+
3+
on:
4+
# When our dependencies change
5+
push:
6+
paths:
7+
- .github/workflows/support-window.yml
8+
- package.json
9+
- scripts/support-window.ts
10+
# Manually, when TypeScript is released
11+
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
12+
workflow_dispatch:
13+
14+
jobs:
15+
support-window:
16+
if: github.repository == 'AlexRogalskiy/java-patterns'
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-node@v3
21+
#with:
22+
# cache: npm
23+
- run: npm install
24+
- name: Fetch TypeScript versions and release dates from npm
25+
run: |
26+
npm view --json typescript time |
27+
jq '
28+
to_entries
29+
# Earliest non-pre-release <major>.<minor>
30+
| map(
31+
(.key |= capture("^(?<version>[0-9]+\\.[0-9]+)\\.[0-9]+$").version)
32+
| select(.key)
33+
)
34+
| unique_by(.key)
35+
| from_entries
36+
' > docs/support-window.json
37+
- name: Make SVG diagram
38+
run: node --experimental-json-modules scripts/support-window > docs/support-window.svg
39+
- run: git add docs/support-window.json docs/support-window.svg
40+
- run: git config user.name .github/workflows/support-window.yml
41+
- run: git config user.email bot@typescriptlang.org
42+
- run: |
43+
git diff --quiet --cached ||
44+
git commit \
45+
--message "[README] 🤖 Update support window diagram" \
46+
--message "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" \
47+
- run: git push

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ pids
5050
# Build and temp folders
5151
.settings/
5252
.idea/
53+
.cache/
5354
.reporting/
5455
bin/
5556
tmp/

.mergify.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
pull_request_rules:
2-
- name: "approve automated PRs that have passed checks"
2+
- name: 'approve automated PRs that have passed checks'
33
conditions:
4-
- "#files<=6"
5-
- "base=master"
4+
- '#files<=6'
5+
- 'base=master'
66
actions:
77
review:
8-
type: "APPROVE"
9-
message: "We've automatically approved this PR because the checks from the automated Pull Request have passed."
8+
type: 'APPROVE'
9+
message:
10+
"We've automatically approved this PR because the checks from the
11+
automated Pull Request have passed."
1012
label:
1113
add:
12-
- "auto-approved"
14+
- 'auto-approved'
1315

1416
- name: automatic merge on CI success require review
1517
conditions:
@@ -52,8 +54,8 @@ pull_request_rules:
5254
merge:
5355
method: merge
5456
strict: false
55-
dismiss_reviews: { }
56-
delete_head_branch: { }
57+
dismiss_reviews: {}
58+
delete_head_branch: {}
5759

5860
- name: automatic merge on CI success for TemplateControl
5961
conditions:
@@ -69,7 +71,7 @@ pull_request_rules:
6971
conditions:
7072
- merged
7173
actions:
72-
delete_head_branch: { }
74+
delete_head_branch: {}
7375

7476
- name: Automatically approve Dependabot PRs
7577
conditions:
@@ -83,24 +85,26 @@ pull_request_rules:
8385
review:
8486
type: APPROVE
8587

86-
- name: "delete the head branch after merge"
88+
- name: 'delete the head branch after merge'
8789
conditions:
88-
- "merged"
90+
- 'merged'
8991
actions:
90-
delete_head_branch: { }
92+
delete_head_branch: {}
9193

92-
- name: "ask to resolve conflict"
94+
- name: 'ask to resolve conflict'
9395
conditions:
94-
- "conflict"
96+
- 'conflict'
9597
actions:
9698
comment:
97-
message: "This pull request now has conflicts. Could you fix it @{{author}}? 🙏"
99+
message:
100+
'This pull request now has conflicts. Could you fix it @{{author}}? 🙏'
98101

99-
- name: "remove outdated reviews"
102+
- name: 'remove outdated reviews'
100103
conditions:
101-
- "base=master"
104+
- 'base=master'
102105
actions:
103106
dismiss_reviews:
104107
changes_requested: true
105108
approved: true
106-
message: "This Pull Request has been updated, so we're dismissing all reviews."
109+
message:
110+
"This Pull Request has been updated, so we're dismissing all reviews."

.nodemonignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.git/*
2+
*.backup

.npmrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ init-author-url=http://sensiblemetrics.io
44
init-version=0.0.0
55
init-license=MIT
66

7-
scripts-prepend-node-path=true
8-
97
registry=https://registry.npmjs.org/
108
tag-version-prefix=""
9+
1110
package-lock=false
1211
save-exact=false
1312
legacy-peer-deps=true
13+
scripts-prepend-node-path=auto

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.14.2
1+
17.1.0

codecov.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
1+
# validate this file:
2+
# curl --data-binary @.codecov.yml https://codecov.io/validate
3+
14
codecov:
25
require_ci_to_pass: true
36

47
coverage:
58
precision: 2
69
round: down
7-
range:
8-
- 70.0
9-
- 100.0
10+
range: '70.0 - 100.0'
1011
status:
1112
changes: false
1213
project:
1314
default:
1415
informational: true
16+
threshold: 1%
17+
if_not_found: success # no commit found? still set a success
1518
patch:
1619
default:
1720
informational: true
21+
if_not_found: success
1822

1923
parsers:
2024
javascript:
21-
enable_partials: false
25+
enable_partials: yes
2226
gcov:
2327
branch_detection:
2428
conditional: yes

distribution/docker-images/dev.Dockerfile

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,12 @@ ARG DATA_DIR="/usr/src/data"
5757
ARG TEMP_DIR="${TEMP_DIR:-/tmp}"
5858

5959
ARG INSTALL_PACKAGES="git curl tini dos2unix locales"
60+
ARG INSTALL_OPTIONS="--assume-yes --no-install-recommends --only-upgrade"
6061

6162
## setup image labels
62-
LABEL "com.github.image.title"="$IMAGE_NAME" \
63+
LABEL "name"="$IMAGE_NAME" \
64+
"version"="$IMAGE_VERSION" \
65+
"com.github.image.title"="$IMAGE_NAME" \
6366
"com.github.image.description"="$IMAGE_DESCRIPTION" \
6467
"com.github.image.vendor"="$IMAGE_VENDOR" \
6568
"com.github.image.url"="$IMAGE_URL" \
@@ -72,7 +75,7 @@ LABEL "com.github.image.title"="$IMAGE_NAME" \
7275
"com.github.image.created"="$IMAGE_BUILD_DATE"
7376

7477
## setup shell options
75-
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
78+
SHELL ["/bin/bash", "-exo", "pipefail", "-c"]
7679

7780
## setup environment variables
7881
ENV PYTHON_VERSION=$PYTHON_VERSION \
@@ -82,16 +85,16 @@ ENV PYTHON_VERSION=$PYTHON_VERSION \
8285

8386
ENV DEBIAN_FRONTEND=noninteractive \
8487
TERM="xterm" \
88+
PAGER=cat \
8589
TZ=UTC \
8690
LC_ALL="en_US.UTF-8" \
8791
LANG=$LC_ALL \
88-
LANGUAGE=$LC_ALL \
89-
LC_CTYPE=$LC_ALL
92+
LANGUAGE="en_US:en" \
93+
LC_CTYPE=$LC_ALL \
9094
PYTHONIOENCODING=UTF-8 \
9195
PYTHONLEGACYWINDOWSSTDIO=UTF-8 \
9296
PYTHONUNBUFFERED=1 \
9397
PYTHONDONTWRITEBYTECODE=1 \
94-
DEBIAN_FRONTEND=noninteractive \
9598
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 \
9699
PIP_DISABLE_PIP_VERSION_CHECK=1 \
97100
PIP_NO_CACHE_DIR=1 \
@@ -101,7 +104,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
101104
NODE_NO_WARNINGS='1' \
102105
NODE_TLS_REJECT_UNAUTHORIZED='0' \
103106
NODE_OPTIONS="--max-old-space-size=8192" \
104-
IN_DOCKER=true
107+
IN_DOCKER=True
105108

106109
ENV USER=${USER:-'devbot'} \
107110
UID=${UID:-5000} \
@@ -118,6 +121,11 @@ RUN adduser \
118121
"$USER" \
119122
|| exit 0
120123

124+
# Run commands as user
125+
RUN whoami && \
126+
# opt-out of the new security feature, not needed in a CI environment
127+
git config --global --add safe.directory '*'
128+
121129
## mount volumes
122130
VOLUME ["$APP_DIR", "$DATA_DIR", "$TEMP_DIR"]
123131

@@ -129,7 +137,7 @@ RUN echo "**** Installing build packages ****"
129137
## RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
130138
RUN apt-get update \
131139
&& apt-get upgrade -yqq \
132-
&& apt-get install --assume-yes --no-install-recommends --only-upgrade $INSTALL_PACKAGES 2>&1 > /dev/null \
140+
&& apt-get install $INSTALL_OPTIONS $INSTALL_PACKAGES 2>&1 > /dev/null \
133141
&& apt-get -yqq autoclean \
134142
&& apt-get -yqq clean \
135143
&& apt-get -yqq autoremove \

0 commit comments

Comments
 (0)