Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 09c8e4d

Browse files
authored
Dop 2508 (#562)
* Dop 1986: Instantly see changes on docs on /deploy (#422) =
1 parent 94b4e01 commit 09c8e4d

File tree

77 files changed

+16151
-10619
lines changed

Some content is hidden

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

77 files changed

+16151
-10619
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
],
66
"plugins": [
77
["@babel/plugin-proposal-decorators", { "legacy": true }],
8-
["@babel/plugin-proposal-class-properties", { "loose": true }],
8+
["@babel/plugin-proposal-class-properties"],
99
"@babel/plugin-transform-runtime"
1010
]
1111
}

.eslintrc.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
},
6+
extends: 'plugin:@typescript-eslint/recommended',
7+
globals: {
8+
Atomics: 'readonly',
9+
SharedArrayBuffer: 'readonly',
10+
},
11+
parser: '@typescript-eslint/parser',
12+
parserOptions: {
13+
ecmaVersion: 2018,
14+
sourceType: 'module',
15+
},
16+
rules: {
17+
'no-console': 'off',
18+
},
19+
};

.github/workflows/deploy-dev-ecs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ jobs:
4848
cd infrastructure/ecs-main
4949
npm ci
5050
sls deploy --stage dev
51-
aws ecs update-service --force-new-deployment --service docs-worker-pool-dev --cluster docs-worker-pool-dev
5251
- name: Deploy Lambdas
5352
run: |
5453
npm ci

.github/workflows/deploy-prd-ecs.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ jobs:
6060
npm ci
6161
sls deploy --stage prd
6262
sls deploy --stage dotcomprd
63-
aws ecs update-service --force-new-deployment --service docs-worker-pool-prd --cluster docs-worker-pool-prd
64-
aws ecs update-service --force-new-deployment --service docs-worker-pool-dotcomprd --cluster docs-worker-pool-dotcomprd
6563
- name: Deploy Lambdas
6664
run: |
6765
npm ci

.github/workflows/deploy-stg-ecs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
branches:
44
- "integration"
55
- "master"
6+
- "DOP-2508"
67
pull_request:
78
branches:
89
- master
@@ -65,10 +66,9 @@ jobs:
6566
npm ci
6667
sls deploy --stage stg
6768
sls deploy --stage dotcomstg
68-
aws ecs update-service --force-new-deployment --service docs-worker-pool-stg --cluster docs-worker-pool-stg
69-
aws ecs update-service --force-new-deployment --service docs-worker-pool-dotcomstg --cluster docs-worker-pool-dotcomstg
7069
7170
- name: Deploy Lambdas
7271
run: |
7372
npm ci
7473
sls deploy --stage stg
74+
sls deploy --stage dotcomstg

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"bracketSpacing": true,
3+
"printWidth": 120,
4+
"singleQuote": true,
5+
"tabWidth": 2
6+
}

CHANGELOG.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [v0.4.5] - 2020-08-13
99

1010
### changed
11+
1112
- remove build call (`make next-gen-html`) from S3Publish.js and remove next-gen-publish and next-gen-html-publish targets from all makefiles (DOP-1238)
1213
- next-gen-deploy is always passed the path prefix from the command line
1314

1415
### added
15-
- server writes env.production file for all jobs, but only constructs PATH_PREFIX for production deploy and stagel commit jobs (DOP-1238, DOP-1253)
1616

17+
- server writes env.production file for all jobs, but only constructs PATH_PREFIX for production deploy and stagel commit jobs (DOP-1238, DOP-1253)
1718

1819
## [v0.4.4] - 2020-08-13
1920

@@ -41,8 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4142

4243
- Fastly purge cache functionality (DOP-857)
4344

44-
- Parser failures now propagate to build status (DOP-64)
45-
45+
- Parser failures now propagate to build status (DOP-64)
4646

4747
## [v0.4.1] - 2020-04-29
4848

@@ -52,7 +52,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5252

5353
- update Dockerfiles to only download production modules (DOP-999)
5454

55-
5655
## [v0.4.0] - 2020-04-16
5756

5857
### added
@@ -69,7 +68,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6968

7069
- cmdline interface for non-git builds (DOCSPLAT-522)
7170

72-
7371
## [v0.2.1] - 2020-01-31
7472

7573
### Fixed
@@ -122,7 +120,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
122120

123121
- Refactor in preparation for productin deploy jobs (DOCSP-7001)
124122

125-
126123
## [v0.0.9] - 2019-11-13
127124

128125
### Added
@@ -149,7 +146,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
149146

150147
- Fixed timeout behavior to prevent outages (DOCSP-7729)
151148

152-
153149
## [v0.0.9] - 2019-11-13
154150

155151
### Added

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ RUN python3 -m pip install pip==20.2 flit==3.0.0
5959
RUN git clone https://github.com/mongodb/snooty-parser.git && \
6060
cd snooty-parser && \
6161
git fetch --tags && \
62-
git checkout v0.12.6 && \
62+
git checkout v0.13.0 && \
6363
FLIT_ROOT_INSTALL=1 python3 -m flit install
6464

6565
# install snooty front-end
6666
RUN git clone https://github.com/mongodb/snooty.git snooty
6767
RUN cd snooty && \
6868
git fetch --all && \
69-
git checkout v0.12.5 && \
69+
git checkout v0.13.0 && \
7070
npm install && \
7171
git clone https://github.com/mongodb/docs-tools.git docs-tools && \
7272
mkdir -p ./static/images && \

0 commit comments

Comments
 (0)