README
OhbugExtension starter
Use this template to create your own Ohbug extension.
English | 简体中文
Quick start
- Git clone the repo.
git clone git@github.com:ohbug-org/ohbug-extension-starter.git
- Installation dependencies.
cd ohbug-extension-starter/ yarn
- Start developing.
yarn dev
- Build.
yarn build
What's inside?
A quick look at the directory structure of Ohbug Extension project.
.
├── node_modules
├── src
├── ui
├── .editorconfig
├── .eslintrc.js
├── .gitignore
├── .prettierrc
├── LICENSE
├── package.json
├── README.md
├── rollup.config.js
├── rollup.config.ui.js
└── tsconfig.json
/node_modules
: This directory contains all of the modules of code./src
: This directory will contain the code for collecting data by Ohbug Extension.src
is a convention for “source code”./ui
: This directory will contain a React component, the function of this component is to visualize the data collected in thesrc
directory..editorconfig
: This is a file format and collection of text editor plugins for maintaining consistent coding styles between different editors and IDEs..eslintrc.js
: This is a configuration file for Eslint. Eslint is a tool to find and fix problems in your JavaScript code..gitignore
: This file tells git which files it should not track / not maintain a version history for..prettierrc
: This is a configuration file for Prettier. Prettier is a tool to help keep the formatting of your code consistent.LICENSE
: This ohbug-extension-starter is licensed under the MIT license.package.json
: This file is how npm knows which packages to install for your project. Ohbug will query the extension'sname
,key
, ui-extension'sname
,cdn
and other data from this file.README.md
: A text file containing useful reference information about your project.
package.jsonohbug
field explanation
{
"ohbug": {
// The name of the extension
"name": "OhbugExtensionStarter",
// Unique identifying name of the extension
"key": "starter",
"ui": {
// The name of the UI component corresponding to the extension
"name": "OhbugExtensionUIStarter",
// The cdn link of the corresponding UI component of the extension, the Ohbug online console will obtain the resource file according to the link provided here
// Recommend to use jsdelivr or unpkg
"cdn": "your_cdn"
}
}
}