From 7f7431a98467c70cfcd495dae65fbbe80de43f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ch=C5=82odnicki?= Date: Mon, 25 Oct 2021 15:21:02 +0200 Subject: [PATCH 1/3] fix: remove unused "config" dependency (#13) --- package.json | 1 - yarn.lock | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/package.json b/package.json index 2076e24..0d58aa6 100755 --- a/package.json +++ b/package.json @@ -53,7 +53,6 @@ }, "dependencies": { "body-parser": "^1.18.3", - "config": "^3.0.1", "express": "^4.16.3" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 4266408..e6a7cf1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3179,13 +3179,6 @@ concordance@^5.0.0: semver "^7.3.2" well-known-symbols "^2.0.0" -config@^3.0.1: - version "3.3.1" - resolved "https://registry.yarnpkg.com/config/-/config-3.3.1.tgz#b6a70e2908a43b98ed20be7e367edf0cc8ed5a19" - integrity sha512-+2/KaaaAzdwUBE3jgZON11L1ggLLhpf2FsGrfqYFHZW22ySGv/HqYIXrBwKKvn+XZh1UBUjHwAcrfsSkSygT+Q== - dependencies: - json5 "^2.1.1" - configstore@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/configstore/-/configstore-5.0.1.tgz#d365021b5df4b98cdd187d6a3b0e3f6a7cc5ed96" @@ -6988,7 +6981,7 @@ json5@^1.0.1: dependencies: minimist "^1.2.0" -json5@^2.1.1, json5@^2.1.2: +json5@^2.1.2: version "2.1.3" resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.3.tgz#c9b0f7fa9233bfe5807fe66fcf3a5617ed597d43" integrity sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA== From cb074d2c48f0a4bd5847329ef6abc3f0c0b4645c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ch=C5=82odnicki?= Date: Mon, 25 Oct 2021 17:28:38 +0200 Subject: [PATCH 2/3] chore(ci): switch to github actions (#14) * chore(ci): switch to github actions The deploy part I'm not sure about so can either investigate later in this PR or separately. * only run coverage once * fix syntax * add publish flow * test before publishing just in case --- .github/workflows/ci.yaml | 35 ++++++++++++++++++++++++++++++++++ .github/workflows/publish.yaml | 21 ++++++++++++++++++++ .travis.yml | 21 -------------------- 3 files changed, 56 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/publish.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..bf1b2a7 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,35 @@ +--- +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + env: + CI: true + strategy: + matrix: + node-version: [12.x, 14.x] + name: Use Node.js ${{ matrix.node-version }} + steps: + - uses: actions/checkout@v2 + - name: Setup node + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: yarn install + run: yarn + - name: Linting + run: yarn lint + - name: Unittesting + run: yarn test + - name: Coverage + if: ${{ matrix.node-version == '14.x' }} + run: yarn nyc:ava && yarn nyc report --reporter=lcov > coverage.lcov && yarn codecov -t ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..55041e3 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,21 @@ +--- +name: Publish +on: + push: + tags: + - v*.*.* +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 14 + registry-url: https://registry.npmjs.org/ + - run: yarn + - run: yarn lint + - run: yarn test + - run: yarn publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0fea942..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: node_js -sudo: false -node_js: - - "10" -install: - - npm install -g nyc ava codecov - - npm install -script: - - npm run lint - - npm test - - nyc ava - - nyc report --reporter=lcov > coverage.lcov - - codecov -t ${CODECOV_TOKEN} -deploy: - - provider: npm - api_key: ${NPM_API_KEY} - email: ${NPM_EMAIL_ADDRESS} - skip_cleanup: true - on: - repo: ezypeeze/nuxt-neo - tags: true From 3431b1bf0cc163e0a3143ab0af47b68ec00997f4 Mon Sep 17 00:00:00 2001 From: Pedro Pereira Date: Mon, 25 Oct 2021 16:30:27 +0100 Subject: [PATCH 3/3] chore(release): 4.2.1 --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a7da21..beb5f4e 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [4.2.1](https://github.com/ezypeeze/nuxt-neo/compare/v4.2.0...v4.2.1) (2021-10-25) + + +### Bug Fixes + +* remove unused "config" dependency ([#13](https://github.com/ezypeeze/nuxt-neo/issues/13)) ([7f7431a](https://github.com/ezypeeze/nuxt-neo/commit/7f7431a98467c70cfcd495dae65fbbe80de43f11)) + ## [4.2.0](https://github.com/ezypeeze/nuxt-neo/compare/v4.1.0...v4.2.0) (2020-07-10) diff --git a/package.json b/package.json index 0d58aa6..8f72f3b 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuxt-neo", - "version": "4.2.0", + "version": "4.2.1", "description": "A nuxt.js module that implements a universal api layer, same-way compatible between server and client side.", "keywords": [ "nuxt",