GithubHelp home page GithubHelp logo

theknarf / yarn-plugin-envinfo Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 50.04 MB

Yarn plugin so that you can run `envinfo` in your project based on a local `.envinfo` project config file.

Home Page: https://www.npmjs.com/package/yarn-plugin-envinfo

License: MIT License

TypeScript 83.47% JavaScript 16.53%
yarn yarn3 yarn-plugin plugin

yarn-plugin-envinfo's Introduction

Yarn Plugin Envinfo

license GitHub branch checks state npm

This is a yarn plugin so that you can run envinfo in your project. It'll read a project local configuration file so that different projects can ask for different info. Useful for helping new developers when onboarding them into your project.

Installation

yarn plugin import https://unpkg.com/yarn-plugin-envinfo

Then you can create a .envinfo file in your project:

{
	System: ['OS', 'CPU', 'Memory', 'Container', 'Shell'],
	Binaries: ['Node', 'Yarn', 'npm'],
	Browsers: [
		'Brave Browser',
		'Chrome',
		'Chrome Canary',
		'Chromium',
		'Edge',
		'Firefox',
		'Firefox Developer Edition',
		'Firefox Nightly',
		'Internet Explorer',
		'Safari',
		'Safari Technology Preview',
	],
	npmGlobalPackages: true,
}

And finally you can test it out by running:

yarn envinfo

For more information about what you can turn on and off in .envinfo check out the following full example.

Development

yarn install # first time setup
yarn build # builds the plugin
yarn postbuild
# uncomment the line in `.yarnrc.yml` to test
yarn envinfo

yarn-plugin-envinfo's People

Contributors

theknarf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

yarn-plugin-envinfo's Issues

support .envinfo.json5

I'm not sure I'm expecting it to be parsed as json5, you could totally even document that, it would just improve IDE support of syntax highlighting without having to change file associations.

by the way, thanks for this.

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.