npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cluedinprovidergenerator

v1.0.95

Published

This module is used to configure how the process of adding an Integration should behave.

Downloads

3

Readme

#Provider Generator

This module is used to configure how the process of adding an Integration should behave.

##Config File

The config file has the information on how the integration should behave when you add/edit one.

You can find it under ./src/config

It has several parameters:

###name

The name of the integration.

###displayName

The name that will be displayed in the main app.

###description

The description that will be displayed by the app when adding an integration.

###icon

The icon you want to show when the user will update the app.

###oauth (true or false, false by default)

If the integration is using oauth to connect the integration.

###url

####initial

The first call that should be done when adding an integraiton.

####callback

The call that should be called when the APP is getting back from the integration website.

###initialProperties

The initialProperties parameter is an array of the fields you want to collect before adding the integration. Generally, it is username and password.

Each property can have different type. A simple input (the default), a password (password), a tree (flattree).

Ex:

	initialProperties: [{
		displayName: 'User Name',
		name: 'username'
	}, {
		displayName: 'Password',
        name: 'password',
        type: 'password'
    } ],

###properties

Properties is used to define what property the user needs to configure before adding the Integration (list of folders, list of projects,....)

Ex:

	properties: [ { displayName: 'Folders to include', name: 'folders', type: 'flattree' } ],

###published (true or false, false by default)

Is telling the webapp if he needs to create the pages for that Integration or not.

###customEdit

Property used to tell if the configuration for the modifying an integration should be ignore and use the one from the app. (the pages won't be automatically populated, you need to manually add the routes, the controller, the templates,...)

##How to deliver a new version?

  1. Generate the tempaltes

Once your changes are done, you need to execute the script which generates the templates.

node index.js

  1. Publish the package

Once that is done, you need to update the package.json (in the root folder) by incrementing the version number.

When the version number has been incremented, you can now publish the package on NPM.

npm publish ./

  1. Install the package in CluedIn.WebApp

3.a Delete the folder providerGenerator located in the /node_modules/ folder of the CluedIn.WebApp project. 3.b Update the package.json file updating the version number of providerGenerator located in the dependencies object. 3.c install the new package

npm install cluedinprovidergenerator

3.d You now need to call the main 'gulp' of the CluedIn.WebApp to package everything.

3.e depending on your environment, you need to publish the changes.

In dev:

gulp publishdev

In test:

gulp publish

In prod:

gulp publishprod