Giter Club home page Giter Club logo

guess-module's Introduction

guess-module

David-DM Standard JS Github Actions Codecov npm version npm downloads

Guess.js module for Nuxt 2

๐Ÿ“– Release Notes

TODO:

Setup

  • Add @nuxtjs/guess-module dependency using yarn or npm to your project
  • Add @nuxtjs/guess-module to modules section of nuxt.config.js
  • Config 'options' as options of guess-webpack
  • Note: the default reportProvider when there is no GA and reportProvider specifed is the content of router.json under rootDir or srcDir
{
  modules: [
    // Simple usage
    '@nuxtjs/guess-module',

    // With options
    ['@nuxtjs/guess-module', {
      GA: 'XXXXXX'
    }],
 ]
}

Development

  • Clone this repository
  • Install dependencies using yarn install or npm install
  • Start development server using npm run dev

Credits

This module is inspired by guest-nuxt by @daliborgogic.

Links

License

MIT License

Copyright (c) Clark Du [email protected]

guess-module's People

Contributors

clarkdo avatar harlan-zw avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

kissge

guess-module's Issues

Cannot read property 'guess' of undefined

Hi, I am trying to use this module but got this error:

TypeError: Cannot read property 'guess' of undefined
    at e.guess (e96bd19dbebbbac099cc.js:2)
    at 6a0ee43a16107d108e65.js:1
    at Array.<anonymous> (83e9f3a0721c8ff5d8f5.js:2)
    at Gt (83e9f3a0721c8ff5d8f5.js:2)

The nuxt.config:

['@nuxtjs/guess', {
  GA: process.env.GA_VIEW_ID,
  jwt: {
    private_key: process.env.GA_PRIVATE_KEY,
    client_email: process.env.GA_CLIENT_EMAIL
  },
  period: {
    startDate: new Date('2018-09-01'),
    endDate: new Date('2018-10-09')
  },
  runtime: {
    delegate: true,
    prefetchConfig: {
      '4g': 0.3,
      '3g': 0.3,
      '2g': 0.3,
      'slow-2g': 0.3
    }
  }
}]

I am on nuxt 2.2.0

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency @nuxtjs/eslint-config to v12
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency nuxt to v3
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yaml
  • actions/checkout v2
  • actions/setup-node v2
  • actions/cache v2
npm
package.json
  • guess-webpack ^0.4.22
  • @nuxtjs/eslint-config 6.0.0
  • babel-eslint 10.1.0
  • codecov 3.8.1
  • eslint 7.21.0
  • jest 26.6.3
  • nuxt 2.15.3
  • standard-version 9.1.1

  • Check this box to trigger a request for Renovate to run again on this repository

Nuxt 3 Support

Hey ๐Ÿ‘‹ It looks like this module hasn't been updated for Nuxt 3. In an effort to improve the developer experience of modules, I've updated the module to clarify that it only supports Nuxt 2.

If Nuxt 3 support is added it will be moved to the https://github.com/nuxt-modules organisation.

@clarkdo Is Nuxt 3 support something you have planned? If not, perhaps we can deprecate this module?

Please let us know and thanks for your work!

Feature request: purpose of the library

Is there any chance the readme could contains a sentence which elaborates what this library is for? I know there is a reference linked but that's hidden behind a login, but...I don't think Circle CI tells me much about what the lib does ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.