All Projects → nuxt-contrib → opencollective

nuxt-contrib / opencollective

Licence: MIT License
🤝 Pretty opencollective stats on postinstall!

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to opencollective

github-sponsors
Prompt your users to donate after `npm install`
Stars: ✭ 15 (-37.5%)
Mutual labels:  postinstall, opencollective, npm-script
argon-portfolio
The latest and greatest portfolio site leveraging nuxt.js and argon design system
Stars: ✭ 16 (-33.33%)
Mutual labels:  nuxtjs
nuxt-winston-log
Nuxt module for logging SSR errors using winston
Stars: ✭ 41 (+70.83%)
Mutual labels:  nuxtjs
nuxt-config
Nuxt.js全面配置(持续更新中……)
Stars: ✭ 67 (+179.17%)
Mutual labels:  nuxtjs
nuxt-facebook-pixel-module
Inject Facebook pixel code
Stars: ✭ 82 (+241.67%)
Mutual labels:  nuxtjs
yamlful
YAML-based HTTP client code generation
Stars: ✭ 77 (+220.83%)
Mutual labels:  nuxtjs
fittrak
A data-driven workout tracking tool for the quantified-self 💪 🤓
Stars: ✭ 19 (-20.83%)
Mutual labels:  stats
admin-one-nuxt
Admin One Nuxt - Nuxt.js Bulma Buefy admin dashboard
Stars: ✭ 23 (-4.17%)
Mutual labels:  nuxtjs
nuxt-i18n-boilerplate
A boilerplate for rapid application development using Nuxt i18n.
Stars: ✭ 20 (-16.67%)
Mutual labels:  nuxtjs
Ocelot-Social
Free and open-source social network for active citizenship.
Stars: ✭ 49 (+104.17%)
Mutual labels:  nuxtjs
bodymoji
Draws an emoji on your face! Powered by Nuxt.js, Tensorflow.js and Posenet
Stars: ✭ 21 (-12.5%)
Mutual labels:  nuxtjs
website
My personal website and blog. Made with Nuxt.js and WindiCSS.
Stars: ✭ 19 (-20.83%)
Mutual labels:  nuxtjs
date-fns-module
Modern JavaScript date utility library - date-fns for Nuxt.js
Stars: ✭ 68 (+183.33%)
Mutual labels:  nuxtjs
Qubes-scripts
Scripts that help with administration and usage of Qubes OS
Stars: ✭ 33 (+37.5%)
Mutual labels:  stats
nuxt-content-theme-blog
A blog theme for @nuxt/content
Stars: ✭ 51 (+112.5%)
Mutual labels:  nuxtjs
nuxt-mail
Adds email sending capability to a Nuxt.js app. Adds a server route, an injected variable, and uses nodemailer to send emails.
Stars: ✭ 62 (+158.33%)
Mutual labels:  nuxtjs
nuxt-breaky
Display your Tailwind CSS Breakpoints within Nuxtjs during Development
Stars: ✭ 129 (+437.5%)
Mutual labels:  nuxtjs
stargazer
A app that gives you some statistics about your public Github repositories.
Stars: ✭ 36 (+50%)
Mutual labels:  stats
math-stats
A small library that does the statistics for your numbers.
Stars: ✭ 18 (-25%)
Mutual labels:  stats
nuxt-on-lambda
Nuxt.jsをAWS Lambdaで動かす
Stars: ✭ 78 (+225%)
Mutual labels:  nuxtjs

@nuxtjs/opencollective 🤝 Pretty opencollective stats on postinstall!

npm version npm downloads status

Showcase

📖 Release Notes

Features

Displaying opencollective statistics and a donation URL after users install a package is important for many creators. After problems with current packages that offer similar features, we decided to spin off our one own. Our key goals are:

  • No interference/problems when installing packages. Never break installation because of the package
  • Pretty output for all information
  • Decent configurability
  • Seamless drop-in for common solutions

Setup

  • Add @nuxtjs/opencollective dependency using yarn or npm to your project
  • Add the script to postinstall in your package.json
{
  // ...
  "scripts": {
    "postinstall": "opencollective || exit 0"
  },
  "collective": {
    "url": "https://opencollective.com/nuxtjs"
  }
  // ...
}
  • Configure it

Configuration

Configuration is applied through your project's package.json.

A full configuration looks like:

{
  "collective": {
    "url": "https://opencollective.com/nuxtjs",
    "logoUrl": "https://opencollective.com/nuxtjs/logo.txt?reverse=true&variant=variant2",
    "donation": {
      "slug": "/order/591",
      "amount": "50",
      "text": "Please donate:"
    }
  }
}

Attribute Optional Default Comment
url - The URL to your opencollective page
logo - LEGACY: The URL to the logo that should be displayed. Please use logoUrl instead.
logoUrl - The URL to the ASCII-logo that should be displayed.
donation.slug '/donate' The slug that should be appended to url. Can be used to setup a specific order.
donation.amount - The default amount that should be selected on the opencollective page.
donation.text 'Donate:' The text that will be displayed before your donation url.

Disable message

We know the postinstall messages can be annoying when deploying in production or running a CI pipeline. That's why the message is disabled in those environments by default.

Enabled when one the following environment variables is set:

  • NODE_ENV=dev
  • NODE_ENV=development
  • OPENCOLLECTIVE_FORCE

Strictly Disabled when one the following environment variables is set:

  • OC_POSTINSTALL_TEST
  • OPENCOLLECTIVE_HIDE
  • CI
  • CONTINUOUS_INTEGRATION
  • NODE_ENV (set and not dev or development)
  • DISABLE_OPENCOLLECTIVE (set to any string value that is not 'false' or '0', for compatibility with opencollective-postinstall)

Development

  • Clone this repository
  • Install dependencies using yarn install or npm install
  • Run it manually path/to/project/root/src/index.js path/to/package/you/want/to/try
  • Run tests with npm t or yarn test

Inspiration

This project is heavily inspired by opencollective-cli.

License

MIT License MIT. Made with 💖

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].