Skip to content

Commit

Permalink
Revert "NODE-2716, NODE-2718, NODE-2719, NODE-2721: Convert to Typesc…
Browse files Browse the repository at this point in the history
…ript (#388)" (#390)

This reverts commit bdc046f.
  • Loading branch information
nbbeeken authored Sep 14, 2020
1 parent bdc046f commit 314c05d
Show file tree
Hide file tree
Showing 74 changed files with 6,362 additions and 6,091 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

33 changes: 33 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"extends": [
"eslint:recommended"
],
"env": {
"node": true,
"mocha": true
},
"globals": {
"Promise": true,
"Uint8Array" : true,
"ArrayBuffer" : true,
"Set": true,
"Map": true
},
"parserOptions": {
"ecmaVersion": 2017
},
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": ["error", {
"singleQuote": true,
"tabWidth": 2,
"printWidth": 100
}],

"no-console": 0,
"eqeqeq": ["error", "always", {"null": "ignore"}],
"strict": ["error", "global"]
}
}
43 changes: 0 additions & 43 deletions .eslintrc.json

This file was deleted.

24 changes: 0 additions & 24 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,6 @@ functions:
${PREPARE_SHELL}
echo "NODE_VERSION=${NODE_VERSION} TEST_TARGET=${TEST_TARGET}"
NODE_VERSION=${NODE_VERSION} ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh ${TEST_TARGET}
run checks:
- command: shell.exec
type: test
params:
working_dir: src
script: |
${PREPARE_SHELL}
echo "NODE_VERSION=${NODE_VERSION} TEST_TARGET=${TEST_TARGET}"
bash ${PROJECT_DIRECTORY}/.evergreen/run-checks.sh
tasks:
- name: node-tests-v6
Expand Down Expand Up @@ -143,15 +133,6 @@ tasks:
- func: run tests
vars:
TEST_TARGET: browser
- name: run-checks
tags:
- run-checks
commands:
- func: fetch source
vars:
NODE_MAJOR_VERSION: 12
- func: install dependencies
- func: run checks

buildvariants:
- name: linux
Expand All @@ -166,8 +147,3 @@ buildvariants:
display_name: Windows 64
run_on: windows-64-vsMulti-small
tasks: [".node"]
- name: lint
display_name: lint
run_on: rhel70
tasks:
- run-checks
7 changes: 2 additions & 5 deletions .evergreen/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,14 @@ path: $NVM_SYMLINK
EOT

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

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

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

# install node dependencies
npm install # npm prepare runs after install and will compile the library
nvm use ${NODE_VERSION} # Switch to the node version we want to test against
npm install
9 changes: 0 additions & 9 deletions .evergreen/run-checks.sh

This file was deleted.

4 changes: 2 additions & 2 deletions .evergreen/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ fi

case $1 in
"node")
npm run test-node
npm run lint && npm run test-node
;;
"browser")
npm run test-browser
npm run lint && npm run test-browser
;;
*)
npm test
Expand Down
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,3 @@ builderror.log

bson.sublime-project
bson.sublime-workspace

lib
types/
.nyc_output/
coverage/
*.d.ts
*.tgz
docs/public
13 changes: 0 additions & 13 deletions .mocharc.json

This file was deleted.

5 changes: 0 additions & 5 deletions .nycrc.json

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc.json

This file was deleted.

51 changes: 0 additions & 51 deletions api-extractor.json

This file was deleted.

11 changes: 9 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"name": "bson",
"description": "A bson parser for node.js and the browser",
"keywords": ["mongodb", "bson", "parser"],
"keywords": [
"mongodb",
"bson",
"parser"
],
"author": "Christian Amor Kvalheim <[email protected]>",
"main": "./dist/bson.js",
"license": "Apache-2.0",
"moduleType": ["globals", "node"],
"moduleType": [
"globals",
"node"
],
"ignore": [
"**/.*",
"alternate_parsers",
Expand Down
19 changes: 0 additions & 19 deletions etc/prepare.js

This file was deleted.

Loading

0 comments on commit 314c05d

Please sign in to comment.