diff --git a/.circleci/config.yml b/.circleci/config.yml index ca0feb6b..321882e2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,6 +21,8 @@ jobs: - node_modules key: v1-dependencies-{{ checksum "package.json" }} + - run: yarn build - run: NODE_ENV=test yarn test:coverage + - run: yarn codecov - store_artifacts: path: ~/app/coverage/lcov-apprt/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 39e7086d..afff84a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ 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. +## [0.1.1](https://github.com/potato4d/nuxt-dayjs-module/compare/v0.1.0...v0.1.1) (2019-03-07) + + +### Bug Fixes + +* Fix test bug ([b18f558](https://github.com/potato4d/nuxt-dayjs-module/commit/b18f558)) + + + # 0.1.0 (2019-03-07) diff --git a/README.md b/README.md index 45f30e22..1c33204e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,18 @@ # nuxt-dayjs-module -My supreme Nuxt.js project +[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) +[![donate: Patreon](https://img.shields.io/badge/donate-patreon-orange.svg?style=flat-square)](https://www.patreon.com/potato4d) +[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](https://opensource.org/licenses/MIT) +[![NPM version](https://img.shields.io/npm/v/nuxt-dayjs-module-blue.svg?style=flat-square)](https://npmjs.com/package/nuxt-dayjs-module) +[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors) +[![NPM downloads](https://img.shields.io/npm/dm/nuxt-dayjs-module.svg?style=flat)](https://npmjs.com/package/nuxt-dayjs-module) +[![codecov](https://codecov.io/gh/potato4d/nuxt-dayjs-module/branch/master/graph/badge.svg)](https://codecov.io/gh/potato4d/nuxt-dayjs-module) + +> The best way for use Day.js easily in your Nuxt.js project. + + + + ## Installation diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..765e05d2 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,7 @@ +comment: + layout: "reach, diff, flags, files" + behavior: default + require_changes: false # if true: only post the comment if coverage changes + require_base: no # [yes :: must have a base report to post] + require_head: yes # [yes :: must have a head report to post] + branches: null diff --git a/package.json b/package.json index 0c676ce4..042421e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuxt-dayjs-module", - "version": "0.1.0", + "version": "0.1.1", "description": "The best way for use Day.js easily in your Nuxt.js project.", "author": { "name": "Takuma HANATANI(potato4d)" @@ -27,6 +27,7 @@ "@types/jest": "^23.3.13", "@types/jsdom": "^12.2.1", "@types/node": "^10.12.21", + "codecov": "^3.2.0", "jest": "^23.4.1", "nuxt": "^2.4.0", "prettier": "^1.16.1", diff --git a/renovate.json b/renovate.json new file mode 100644 index 00000000..f45d8f11 --- /dev/null +++ b/renovate.json @@ -0,0 +1,5 @@ +{ + "extends": [ + "config:base" + ] +} diff --git a/test/system/module.spec.ts b/test/system/module.spec.ts index d00763e0..38ba2301 100644 --- a/test/system/module.spec.ts +++ b/test/system/module.spec.ts @@ -18,8 +18,8 @@ describe('module E2E test', () => { nuxt = new Nuxt(config) const createNuxt = async () => { - // await new Builder(nuxt).build() - // await nuxt.listen(3000) + await new Builder(nuxt).build() + await nuxt.listen(3000) } const createBrowser = async () => { browser = await puppeteer.launch({ diff --git a/yarn.lock b/yarn.lock index 1a610b5b..ec1e5fc6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1352,6 +1352,11 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" +argv@^0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/argv/-/argv-0.0.2.tgz#ecbd16f8949b157183711b1bda334f37840185ab" + integrity sha1-7L0W+JSbFXGDcRsb2jNPN4QBhas= + arr-diff@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" @@ -2193,6 +2198,17 @@ code-point-at@^1.0.0: resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c= +codecov@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/codecov/-/codecov-3.2.0.tgz#4465ee19884528092d8c313e1f9e4bdc7d3065cd" + integrity sha512-3NJvNARXxilqnqVfgzDHyVrF4oeVgaYW1c1O6Oi5mn93exE7HTSSFNiYdwojWW6IwrCZABJ8crpNbKoo9aUHQw== + dependencies: + argv "^0.0.2" + ignore-walk "^3.0.1" + js-yaml "^3.12.0" + teeny-request "^3.7.0" + urlgrey "^0.4.4" + collection-visit@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" @@ -5901,7 +5917,7 @@ no-case@^2.2.0: dependencies: lower-case "^1.1.1" -node-fetch@^2.3.0: +node-fetch@^2.2.0, node-fetch@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.3.0.tgz#1a1d940bbfb916a1d3e0219f037e89e71f8c5fa5" integrity sha512-MOd8pV3fxENbryESLgVIeaGKrdl+uaYhCSSVkjeOb/31/njTpcis5aWfdqgNlHIrKOLRbMnfPINPOML2CIFeXA== @@ -8394,6 +8410,15 @@ tar@^4: safe-buffer "^5.1.2" yallist "^3.0.2" +teeny-request@^3.7.0: + version "3.11.3" + resolved "https://registry.yarnpkg.com/teeny-request/-/teeny-request-3.11.3.tgz#335c629f7645e5d6599362df2f3230c4cbc23a55" + integrity sha512-CKncqSF7sH6p4rzCgkb/z/Pcos5efl0DmolzvlqRQUNcpRIruOhY9+T1FsIlyEbfWd7MsFpodROOwHYh2BaXzw== + dependencies: + https-proxy-agent "^2.2.1" + node-fetch "^2.2.0" + uuid "^3.3.2" + term-size@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/term-size/-/term-size-1.2.0.tgz#458b83887f288fc56d6fffbfad262e26638efa69" @@ -8781,6 +8806,11 @@ url@^0.11.0: punycode "1.3.2" querystring "0.2.0" +urlgrey@^0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/urlgrey/-/urlgrey-0.4.4.tgz#892fe95960805e85519f1cd4389f2cb4cbb7652f" + integrity sha1-iS/pWWCAXoVRnxzUOJ8stMu3ZS8= + use@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"