Skip to content

Commit

Permalink
Update guess-webpack to v.0.4.8 (#24)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
daliborgogic authored Oct 3, 2019
1 parent 084ccf8 commit e1f75ed
Show file tree
Hide file tree
Showing 10 changed files with 8,802 additions and 5,101 deletions.
31 changes: 0 additions & 31 deletions .circleci/config.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Module Cross-platform CI

on: [push]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Module ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install and test
run: |
npm i
npm test
env:
CI: true

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: |
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@daliborgogic'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GH_TOKEN}}
55 changes: 0 additions & 55 deletions CHANGELOG.md

This file was deleted.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

>[ 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)
[![CircleCI](https://circleci.com/gh/daliborgogic/guess-module.svg?style=svg)](https://circleci.com/gh/daliborgogic/guess-module)
![](https://github.com/daliborgogic/guess-module/workflows/Module%20Cross-platform%20CI/badge.svg)

## Setup

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

```javascript
{
export default {
modules: [
[ '@nuxtjs/guess', { GA: 'XXXXXXX' }]
]
},
// Nuxt > 2.4.0
router: {
],
// Nuxt > 2.4.0
router: {
prefetchLinks: false
}
}
```

Expand Down
2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { resolve } = require('path')
const { GuessPlugin } = require('guess-webpack')

module.exports = function module (moduleOptions) {
let options = this.options['guess'] || moduleOptions
const options = this.options.guess || moduleOptions

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

0 comments on commit e1f75ed

Please sign in to comment.