Skip to content

Commit e1f75ed

Browse files
authored
Update guess-webpack to v.0.4.8 (#24)
* fix(deps): update dependency guess-webpack to ^0.4.8 * feat: actions initial * chore(deps): bump esm from 3.0.84 to 3.2.25 (#23) Bumps [esm](https://github.com/standard-things/esm) from 3.0.84 to 3.2.25. - [Release notes](https://github.com/standard-things/esm/releases) - [Commits](standard-things/esm@3.0.84...3.2.25) Signed-off-by: dependabot[bot] <support@github.com> * fix: pipeline is not valid * lint fixes * workflow badge * fix: repo name * v.1.0.8 * action npm 2fa workaround * fix: could not find expected ':' * use token instead 2fa * publish on pkg github * cannot publish over the previously published versions
1 parent 084ccf8 commit e1f75ed

File tree

10 files changed

+8802
-5101
lines changed

10 files changed

+8802
-5101
lines changed

.circleci/config.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Module Cross-platform CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest, windows-latest, macOS-latest]
11+
node-version: [12.x]
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Use Module ${{ matrix.node-version }} on ${{ matrix.os }}
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: ${{ matrix.node-version }}
18+
- name: npm install and test
19+
run: |
20+
npm i
21+
npm test
22+
env:
23+
CI: true
24+
25+
publish-npm:
26+
needs: build
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v1
30+
- uses: actions/setup-node@v1
31+
with:
32+
node-version: 12
33+
registry-url: https://registry.npmjs.org/
34+
- run: |
35+
npm publish
36+
env:
37+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
38+
39+
publish-gpr:
40+
needs: build
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v1
44+
- uses: actions/setup-node@v1
45+
with:
46+
node-version: 12
47+
registry-url: https://npm.pkg.github.com/
48+
scope: '@daliborgogic'
49+
- run: npm publish
50+
env:
51+
NODE_AUTH_TOKEN: ${{secrets.GH_TOKEN}}

CHANGELOG.md

Lines changed: 0 additions & 55 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
>[ Guess.js](https://github.com/guess-js/guess) integration for [Nuxt.js](https://github.com/nuxt/nuxt.js/) with [guess-webpack](https://www.npmjs.com/package/guess-webpack)
44
5-
[![CircleCI](https://circleci.com/gh/daliborgogic/guess-module.svg?style=svg)](https://circleci.com/gh/daliborgogic/guess-module)
5+
![](https://github.com/daliborgogic/guess-module/workflows/Module%20Cross-platform%20CI/badge.svg)
66

77
## Setup
88

@@ -11,14 +11,14 @@
1111
- If using Nuxt > 2.4.0, set `router.prefetchLinks` to `false` in `nuxt.config.js`
1212

1313
```javascript
14-
{
14+
export default {
1515
modules: [
1616
[ '@nuxtjs/guess', { GA: 'XXXXXXX' }]
17-
]
18-
},
19-
// Nuxt > 2.4.0
20-
router: {
17+
],
18+
// Nuxt > 2.4.0
19+
router: {
2120
prefetchLinks: false
21+
}
2222
}
2323
```
2424

lib/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { resolve } = require('path')
22
const { GuessPlugin } = require('guess-webpack')
33

44
module.exports = function module (moduleOptions) {
5-
let options = this.options['guess'] || moduleOptions
5+
const options = this.options.guess || moduleOptions
66

77
// Hints Guess to not perform pre-fetching and delegate this logic to its consumer.
88
options.runtime = options.runtime || {

0 commit comments

Comments
 (0)