Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
e9547f1
Fix lint and test errors
jgroh9 Dec 21, 2020
5269e14
Update couchbase sdk to latest version. Add sinon for testing purposes
jgroh9 Dec 21, 2020
503954c
Refactor existing Couchbase logic to work with the latest Couchbase SDK
jgroh9 Dec 21, 2020
68c4f36
Update Couchbase tests
jgroh9 Dec 21, 2020
b72465c
Add logic to set the scope name and collection name for Couchbase if …
jgroh9 Dec 21, 2020
1ff9283
Update readme documentation
jgroh9 Dec 21, 2020
5129362
Update documentation
jgroh9 Dec 23, 2020
ef9abdf
Fix tests and lint issues
jgroh9 Dec 23, 2020
3e7c174
Update node version engine to be 10 or greater
jgroh9 Dec 23, 2020
b1c6ec7
Merge branch 'fix-tests-and-lint-issues' into update-couchbase-sdk
jgroh9 Dec 23, 2020
478cd55
Make node version less than or equal to 10. Tests fail on node versio…
jgroh9 Dec 23, 2020
9c43c7f
Merge branch 'fix-tests-and-lint-issues' into update-couchbase-sdk
jgroh9 Dec 23, 2020
6394ad9
Update adm-zip to the latest version
jgroh9 Dec 23, 2020
d7f3c58
Update babel packages to the latest versions
jgroh9 Dec 23, 2020
90465e8
update chance and cli-table packages
jgroh9 Dec 23, 2020
6d7a9a0
Update CSON and csv libraries. Fix tests that broke due to changes in…
jgroh9 Dec 23, 2020
12060ff
Update es6 promise libraries, faker, and a few others. Fix broken tests
jgroh9 Dec 23, 2020
1daa974
Update globby, ora, lodash, perfy, and a few other dependencies. Fix …
jgroh9 Dec 24, 2020
0fb6552
Update chalk. Add strip-ansi library and use it instead of stripColor…
jgroh9 Dec 24, 2020
5f9ca19
Update dev dependencies
jgroh9 Dec 24, 2020
add7467
Update commander and fix existing logic to work with the new commande…
jgroh9 Dec 24, 2020
049cb1d
update babel to make latest ava work. fix other tests that broke by u…
jgroh9 Dec 24, 2020
5830940
Update joi to the latest version. Update test due to Joi changes. Cha…
jgroh9 Dec 26, 2020
678738b
Update babal dependencies
jgroh9 Dec 26, 2020
8066526
Merge branch 'update-ava' into update-joi
jgroh9 Dec 26, 2020
9016a50
Updated package-lock
jgroh9 Dec 26, 2020
2de21b5
Add additional tests to increase test coverage for couchbase logic
jgroh9 Dec 28, 2020
107b830
Merge branch 'update-couchbase-sdk' into update-joi
jgroh9 Dec 28, 2020
e336f11
Add missing semi-colon
jgroh9 Dec 28, 2020
91e6d67
Fix a failing test. Fix a documentation typo
jgroh9 Dec 28, 2020
afcef31
Add npmrc file to specify that exact package versions should be insta…
jgroh9 Dec 28, 2020
dd50170
Actually add npmrc file
jgroh9 Dec 28, 2020
5f43623
Add additional readme documentation. Update changelog
jgroh9 Dec 28, 2020
89fecd7
Merge branch 'modernize-library'
jgroh9 Dec 28, 2020
ae10e5e
Update the package version
jgroh9 Dec 28, 2020
4cf6901
Update package version
jgroh9 Dec 28, 2020
d81532d
Make @babel/core a dependency instead of a dev dependency
jgroh9 Dec 28, 2020
a933277
Merge branch 'modernize-library'
jgroh9 Dec 28, 2020
e9c02c6
Update package lock
jgroh9 Dec 28, 2020
d7a99a3
Bump package version
jgroh9 Dec 28, 2020
97007b9
Bump package version
jgroh9 Dec 28, 2020
c368984
Change required node version to be 10 or greater. Fix failing test
jgroh9 Dec 30, 2020
fb1cb45
Merge branch 'upgrade-node' into modernize-library
jgroh9 Dec 30, 2020
59b864c
Update package-lock
jgroh9 Dec 30, 2020
c960ccf
Merge branch 'modernize-library'
jgroh9 Dec 30, 2020
a072d42
Update package version and update required node version to be greater…
jgroh9 Dec 30, 2020
65a1b6c
Update readme
jgroh9 Jan 15, 2021
8459719
Update third party dependencies
jgroh9 Feb 3, 2021
b52368d
Update tests
jgroh9 Feb 3, 2021
5922de2
Bump package version
jgroh9 Feb 3, 2021
bdbbc1f
package lock file updates
jgroh9 Feb 3, 2021
226ca19
Remove scopeName and collectionName cli arguments for Couchbase. Fix …
jgroh9 Feb 4, 2021
cc24641
Remove scope & collection name from the couchbase output
jgroh9 Feb 4, 2021
94c604c
Fix a grammar issue when the document count is 1
jgroh9 Feb 4, 2021
345d941
Fix typo
jgroh9 Feb 4, 2021
7333ff7
Remove scopeName and collectionName property checks
jgroh9 Feb 4, 2021
552aed0
Add logic to read the scope and collection keys from the model defini…
jgroh9 Feb 4, 2021
eae5df6
Add the options object to the output function
jgroh9 Feb 4, 2021
ab213f6
Add the options object to the output function and implement logic to …
jgroh9 Feb 4, 2021
f8c5142
Update README
jgroh9 Feb 4, 2021
0c845e5
Fix lint issues
jgroh9 Feb 4, 2021
5410976
Fix test failures
jgroh9 Feb 4, 2021
a4e047a
Package lock updates
jgroh9 Feb 4, 2021
f48dcba
Update package version
jgroh9 Feb 4, 2021
a3fac27
Bump package version. Update package dependencies. Fix a test failure
jgroh9 Jun 3, 2021
41462cb
Bump package version
jgroh9 Jun 3, 2021
56a033b
Update package dependencies and make an ORA setting change
jgroh9 Jul 19, 2021
c603695
Bump package version. Use -S option to determine if isEnabled should …
jgroh9 Jul 19, 2021
93f2bd9
Set stream to be process.stdout. bump package version
jgroh9 Jul 19, 2021
360ddc7
Swith to yarn. Update Couchbase SDK. Fix a few logging issues
jgroh9 Sep 20, 2021
8e317d4
Update package dependencies
jgroh9 Sep 20, 2021
8ea5f1a
Update package version
jgroh9 Sep 20, 2021
ae0f882
Add additional tests
jgroh9 Oct 6, 2021
c8d6899
Update package dependencies to resolve audit issues
jgroh9 Nov 16, 2021
7d04383
Update package version
jgroh9 Nov 16, 2021
d229703
update package dependencies and implement new lint settings
jgroh9 Feb 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"presets": [
"latest",
"stage-0"
"@babel/preset-env"
],
"plugins": [
"transform-runtime",
"external-helpers",
"array-includes"
[
"@babel/plugin-transform-runtime",
{
"corejs": 3
}
]
]
}
2 changes: 0 additions & 2 deletions .eslintrc.yaml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.log
*.DS_Store
*.bak
.eslintcache
.TemporaryItems
dist/
Thumbs.db
Expand Down
2 changes: 2 additions & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exact "true"
save-prefix ""
29 changes: 16 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ SHELL := /bin/bash
args = $(filter-out $@, $(MAKECMDGOALS))
.PHONY: all install clean deep-clean reinstall setup build compile build-source-maps compile-source-maps docs docs-server docs-build docs-compile watch lint test coverage test-coverage code-coverage report-coverage report-code-coverage ci prepatch patch minor major publish release

all: build test
all:
make build
make test
make lint

install:
npm install
yarn install

# remove the build and log folders
clean:
Expand All @@ -17,7 +20,7 @@ clean:
# remove all files that are ignored by git
deep-clean:
make clean
rm -rf node_modules/ dist/ .nyc_output/ npm-debug.log yarn-error.log
rm -rf node_modules/ dist/ .nyc_output/ npm-debug.log yarn-error.log package-lock.json yarn.lock

# reinstall the node_modules and start with a fresh node build
reinstall setup:
Expand All @@ -27,13 +30,13 @@ reinstall setup:
# build the source files
build compile:
make clean
babel app --out-dir dist $(args)
./node_modules/.bin/babel app --out-dir dist $(args)

# makes it easier to build files with source maps without errors
# from other make commands
build-source-maps compile-source-maps:
make clean
babel app --out-dir dist --source-maps $(args)
./node_modules/.bin/babel app --out-dir dist --source-maps $(args)

# start the server for the documentation
docs docs-server:
Expand All @@ -48,33 +51,33 @@ docs-build docs-compile:
watch:
make build-source-maps -- --watch $(args)

# lint test files
# Lints all the files
lint:
command -v eslint >/dev/null 2>&1 && eslint 'app' 'test' || ./node_modules/lint-rules/node_modules/.bin/eslint 'app' 'test';
./node_modules/.bin/eslint --cache --fix 'app/**/*.{js,jsx}'

# run unit tests
test:
ava $(args)
./node_modules/.bin/ava $(args)

# run coverage for the tests
coverage test-coverage code-coverage:
# if there's no instance source maps files then build the files with source maps
@[ -f ./dist/index.js.map ] || (echo "building files with source maps" && make build-source-maps)
NODE_ENV="test" nyc --silent -- ava --verbose --no-cache
NODE_ENV="test" ./node_modules/.bin/nyc ./node_modules/.bin/ava --verbose --no-cache


# These commands only run the report of the code coverage
report-coverage report-code-coverage:
@if [ -d ./.nyc_output ]; then \
NODE_ENV="test" nyc report; \
NODE_ENV="test" ./node_modules/.bin/nyc report; \
else \
make test-coverage report-coverage; \
fi

# posts code coverage to coveralls
post-coverage:
@if [ -d ./.nyc_output ]; then \
nyc report --reporter=text-lcov | coveralls; \
./node_modules/.bin/nyc report --reporter=text-lcov | coveralls; \
else \
make test-coverage post-coverage; \
fi
Expand All @@ -85,9 +88,9 @@ ci:
# if the tests fail then it will exit with an error
make coverage || exit 1
# show the coverage report
nyc report
./node_modules/.bin/nyc report
# check check-coverage and if it fails then exit
nyc check-coverage --statements 95 --functions 95 --lines 95 || exit 1
./node_modules/.bin/nyc check-coverage --statements 95 --functions 95 --lines 95 || exit 1

publish release:
make reinstall
Expand Down
Loading