Skip to content

Commit f7d4be7

Browse files
authored
Revert "NODE-2716, NODE-2718, NODE-2719, NODE-2721: Convert to Typescript (#388)"
This reverts commit bdc046f.
1 parent bdc046f commit f7d4be7

Some content is hidden

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

74 files changed

+6362
-6091
lines changed

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"extends": [
3+
"eslint:recommended"
4+
],
5+
"env": {
6+
"node": true,
7+
"mocha": true
8+
},
9+
"globals": {
10+
"Promise": true,
11+
"Uint8Array" : true,
12+
"ArrayBuffer" : true,
13+
"Set": true,
14+
"Map": true
15+
},
16+
"parserOptions": {
17+
"ecmaVersion": 2017
18+
},
19+
"plugins": [
20+
"prettier"
21+
],
22+
"rules": {
23+
"prettier/prettier": ["error", {
24+
"singleQuote": true,
25+
"tabWidth": 2,
26+
"printWidth": 100
27+
}],
28+
29+
"no-console": 0,
30+
"eqeqeq": ["error", "always", {"null": "ignore"}],
31+
"strict": ["error", "global"]
32+
}
33+
}

.eslintrc.json

Lines changed: 0 additions & 43 deletions
This file was deleted.

.evergreen/config.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,6 @@ functions:
7171
${PREPARE_SHELL}
7272
echo "NODE_VERSION=${NODE_VERSION} TEST_TARGET=${TEST_TARGET}"
7373
NODE_VERSION=${NODE_VERSION} ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh ${TEST_TARGET}
74-
run checks:
75-
- command: shell.exec
76-
type: test
77-
params:
78-
working_dir: src
79-
script: |
80-
${PREPARE_SHELL}
81-
echo "NODE_VERSION=${NODE_VERSION} TEST_TARGET=${TEST_TARGET}"
82-
bash ${PROJECT_DIRECTORY}/.evergreen/run-checks.sh
83-
8474
8575
tasks:
8676
- name: node-tests-v6
@@ -143,15 +133,6 @@ tasks:
143133
- func: run tests
144134
vars:
145135
TEST_TARGET: browser
146-
- name: run-checks
147-
tags:
148-
- run-checks
149-
commands:
150-
- func: fetch source
151-
vars:
152-
NODE_MAJOR_VERSION: 12
153-
- func: install dependencies
154-
- func: run checks
155136

156137
buildvariants:
157138
- name: linux
@@ -166,8 +147,3 @@ buildvariants:
166147
display_name: Windows 64
167148
run_on: windows-64-vsMulti-small
168149
tasks: [".node"]
169-
- name: lint
170-
display_name: lint
171-
run_on: rhel70
172-
tasks:
173-
- run-checks

.evergreen/install-dependencies.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,14 @@ path: $NVM_SYMLINK
4141
EOT
4242

4343
nvm install ${NODE_VERSION}
44-
nvm install 10.22.0 # install lts for compilation only
4544
nvm on
4645
else
4746
curl -o- $NVM_URL | bash
4847
[ -s "${NVM_DIR}/nvm.sh" ] && \. "${NVM_DIR}/nvm.sh"
4948

5049
nvm install --no-progress ${NODE_VERSION}
51-
nvm install --no-progress 10.22.0 # install lts for compilation only
5250
fi
53-
nvm use 10.22.0 # use lts for setup, runtime node can be different
51+
nvm use ${NODE_VERSION}
5452

5553
# setup npm cache in a local directory
5654
cat <<EOT > .npmrc
@@ -62,5 +60,4 @@ registry=https://registry.npmjs.org
6260
EOT
6361

6462
# install node dependencies
65-
npm install # npm prepare runs after install and will compile the library
66-
nvm use ${NODE_VERSION} # Switch to the node version we want to test against
63+
npm install

.evergreen/run-checks.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

.evergreen/run-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ fi
1818

1919
case $1 in
2020
"node")
21-
npm run test-node
21+
npm run lint && npm run test-node
2222
;;
2323
"browser")
24-
npm run test-browser
24+
npm run lint && npm run test-browser
2525
;;
2626
*)
2727
npm test

.gitignore

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,3 @@ builderror.log
1515

1616
bson.sublime-project
1717
bson.sublime-workspace
18-
19-
lib
20-
types/
21-
.nyc_output/
22-
coverage/
23-
*.d.ts
24-
*.tgz
25-
docs/public

.mocharc.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

.nycrc.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)