From 4b000127879722533f57155ba97adba6a0c04e8d Mon Sep 17 00:00:00 2001 From: Dmytro Pustovit Date: Sat, 24 Apr 2021 15:26:08 +0300 Subject: [PATCH] Chore: adds tests for prior node versions --- .mocharc.bundle.json | 13 +++++++++++++ bin/pack-tests.js | 0 package.json | 9 +++++++-- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .mocharc.bundle.json create mode 100755 bin/pack-tests.js diff --git a/.mocharc.bundle.json b/.mocharc.bundle.json new file mode 100644 index 0000000..02824b5 --- /dev/null +++ b/.mocharc.bundle.json @@ -0,0 +1,13 @@ +{ + "diff": true, + "extension": ["js"], + "reporter": "spec", + "slow": 100, + "timeout": 30000, + "ui": "qunit", + "exit": true, + "color": true, + "full-trace": true, + "recursive": true, + "require": ["./tests/test.env.js"] +} \ No newline at end of file diff --git a/bin/pack-tests.js b/bin/pack-tests.js new file mode 100755 index 0000000..e69de29 diff --git a/package.json b/package.json index 746084e..60391b6 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,7 @@ "description": "boilerplate for creating npm packages", "main": "./lib", "scripts": { - "build": "babel src --out-dir ./lib", - "prepare": "npm run build && husky install", + "prepare": "babel src --out-dir ./lib && husky install", "coveralls": "cat ./coverage/lcov.info | coveralls", "test:security": "npm audit && npm run test:lock", "test:lint": "eslint src", @@ -41,6 +40,11 @@ "@babel/runtime": "^7.3.4", "@commitlint/cli": "^12.1.1", "@commitlint/lint": "^12.1.1", + "@rollup/plugin-babel": "^5.3.0", + "@rollup/plugin-commonjs": "^18.0.0", + "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-multi-entry": "^4.0.0", + "@rollup/plugin-node-resolve": "^11.2.1", "@semantic-release/changelog": "^3.0.4", "@semantic-release/commit-analyzer": "^6.1.0", "@semantic-release/git": "^7.0.8", @@ -68,6 +72,7 @@ "lockfile-lint": "^4.6.2", "mocha": "^6.2.3", "nyc": "^14.1.1", + "rollup": "^2.45.2", "semantic-release": "^17.4.2", "uuid": "^3.3.2" }