From 5df6511eef56d838dc4bb3f5bf8f3652afe9ce80 Mon Sep 17 00:00:00 2001 From: ryanml Date: Thu, 8 Apr 2021 02:31:32 -0700 Subject: [PATCH] Repo standardization * Enforcing minimum node version 12 via .nvmrc, circleci, and the package file * Adding basic .editorconfig file * Adding basic .gitattributes file --- .circleci/config.yml | 8 ++++---- .editorconfig | 9 +++++++++ .gitattributes | 3 +++ .nvmrc | 2 +- package.json | 3 +++ 5 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.circleci/config.yml b/.circleci/config.yml index 3f6791c..f3c148b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,7 +18,7 @@ workflows: jobs: prep-deps: docker: - - image: circleci/node:10 + - image: circleci/node:12 steps: - checkout - run: @@ -37,7 +37,7 @@ jobs: test-lint: docker: - - image: circleci/node:10 + - image: circleci/node:12 steps: - checkout - attach_workspace: @@ -48,7 +48,7 @@ jobs: test-build-unit: docker: - - image: circleci/node:10 + - image: circleci/node:12 steps: - checkout - attach_workspace: @@ -59,7 +59,7 @@ jobs: all-tests-pass: docker: - - image: circleci/node:10 + - image: circleci/node:12 steps: - run: name: All tests passed diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..c6c8b36 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..bf5e085 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +* text=auto + +yarn.lock linguist-generated=false diff --git a/.nvmrc b/.nvmrc index e338b86..dae199a 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v10 +v12 diff --git a/package.json b/package.json index 36d975f..64f4f33 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,9 @@ "files": [ "dist" ], + "engines": { + "node": ">=12.0.0" + }, "scripts": { "build": "tsc --project .", "test": "yarn build && node test/index.js",