ravpacheco / cra-template-blip-plugin

Blip plugin template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BLiP plugin template

NPM Version Downloads License

BLiP plugin it's a technology-agnostic way to plug unnoficial features to enhance the portal capabilities.

This project aims to give the initial skill needed to develop and build your own plugins.

File Structure

Assuming your folder is called blip-plugin-project. Whatever name you choose will replace all occurrences of that string in the project

πŸ“blip-plugin-project
β”œβ”€β”€β”€πŸ“charts
β”‚   β””β”€β”€β”€πŸ“blip-plugin-project
β”‚       β”œβ”€β”€β”€πŸ“templates
β”‚       β”‚   β”œβ”€β”€β”€_helpers.tpl
β”‚       β”‚   β”œβ”€β”€β”€autoscale.yaml
β”‚       β”‚   β”œβ”€β”€β”€deployment.yaml
β”‚       β”‚   β”œβ”€β”€β”€ingress.yaml
β”‚       β”‚   β”œβ”€β”€β”€NOTES.txt
β”‚       β”‚   β”œβ”€β”€β”€secrets.yaml
β”‚       β”‚   └───service.yaml
β”‚       β”œβ”€β”€β”€.helmignore
β”‚       β”œβ”€β”€β”€Chart.yaml
β”‚       └───values.yaml
β”œβ”€β”€β”€πŸ“public
β”‚   └───...
β”œβ”€β”€β”€πŸ“src
β”‚   β”œβ”€β”€β”€πŸ“assets
β”‚   β”‚   β”œβ”€β”€β”€πŸ“images
β”‚   β”‚   β”‚   └───...
β”‚   β”‚   β””β”€β”€β”€πŸ“styles
β”‚   β”‚        └───app.scss
β”‚   β”œβ”€β”€β”€πŸ“components
β”‚   β”‚   β””β”€β”€β”€πŸ“SomeComponent
β”‚   β”‚        β”œβ”€β”€β”€SomeComponent.js
β”‚   β”‚        └───index.js
β”‚   β”œβ”€β”€β”€πŸ“config
β”‚   β”‚   β”œβ”€β”€β”€πŸ“constants
β”‚   β”‚   β”‚   β”œβ”€β”€β”€application-actions.js
β”‚   β”‚   β”‚   └───...
β”‚   β”‚   β”œβ”€β”€β”€πŸ“jest
β”‚   β”‚   β”‚   └───fileTransform.js
β”‚   β”‚   β”œβ”€β”€β”€πŸ“scripts
β”‚   β”‚   β”‚   └───charts-config.js
β”‚   β”‚   β”œβ”€β”€β”€βš™οΈappsettings.json
β”‚   β”‚   └───index.js
β”‚   β”œβ”€β”€β”€πŸ“factory
β”‚   β”‚   └───api.js
β”‚   β”œβ”€β”€β”€πŸ“hooks
β”‚   β”‚   β”œβ”€β”€β”€store.js
β”‚   β”‚   β”œβ”€β”€β”€useCombinedReducers.js
β”‚   β”‚   └───useFetch.js
β”‚   β”œβ”€β”€β”€πŸ“pages
β”‚   β”‚   β””β”€β”€β”€πŸ“Home
β”‚   β”‚       β”œβ”€β”€β”€πŸ“components
β”‚   β”‚       β”‚   β””β”€β”€β”€πŸ“Header
β”‚   β”‚       β”‚        β”œβ”€β”€β”€Header.jsx
β”‚   β”‚       β”‚        └───index.js
β”‚   β”‚       β”œβ”€β”€β”€Home.js
β”‚   β”‚       └───index.js
β”‚   β”œβ”€β”€β”€πŸ“routes
β”‚   β”‚   β”œβ”€β”€β”€Analyticts.js
β”‚   β”‚   β”œβ”€β”€β”€index.js
β”‚   β”‚   └───Routes.js
β”‚   β”œβ”€β”€β”€πŸ“services
β”‚   β”‚   β”œβ”€β”€β”€application-service.js
β”‚   β”‚   └───...
β”‚   β”œβ”€β”€β”€πŸ“store
β”‚   β”‚   β”œβ”€β”€β”€πŸ“actions
β”‚   β”‚   β”‚   β”œβ”€β”€β”€application.js
β”‚   β”‚   β”‚   └───...
β”‚   β”‚   β”œβ”€β”€β”€πŸ“reducers
β”‚   β”‚   β”‚   β”œβ”€β”€β”€application.js
β”‚   β”‚   β”‚   └───...
β”‚   β”‚   β”œβ”€β”€β”€connect.js
β”‚   β”‚   └───index.js
β”‚   β”œβ”€β”€β”€πŸ“utils
β”‚   β”‚   └───...
β”‚   β”œβ”€β”€β”€App.js
β”‚   └───index.js
β”œβ”€β”€β”€βš™οΈ.env
β”œβ”€β”€β”€βš™οΈ.eslintignore
β”œβ”€β”€β”€βš™οΈ.eslintrc
β”œβ”€β”€β”€βš™οΈ.gitignore
β”œβ”€β”€β”€βš™οΈ.prettierrc
β”œβ”€β”€β”€βš™οΈpackage.json
β””β”€β”€β”€βš™οΈREADME.md

Usage

npx create-react-app PROJECT_NAME --template blip-plugin

#or

yarn create react-app PROJECT_NAME --template blip-plugin

Note: npx command installs most recent stable version of CRA from npm. --template parameter points to this template, note that cra-template- prefix is omitted.

Access the project folder.

cd PROJECT_NAME

Configure ./charts according your project. Replace PLUGIN_NAME with the correct plugin name.

npm run config:charts

#or

yarn config:charts

Then, run the project.

npm start

#or

yarn start

Now just add the plugin to your chatbot and enjoy!

More information

Blip plugin template

About

Blip plugin template

License:MIT License


Languages

Language:JavaScript 92.7%Language:HTML 2.9%Language:SCSS 2.0%Language:Mustache 1.8%Language:Dockerfile 0.4%Language:Shell 0.1%