Skip to content

egoist/docute-plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docute Plugins

Official Docute Plugins

Community Plugins

  • PR to add here..

Add an Official Plugin

  1. Create a folder inside ./packages
  2. Create a package.json with following contents:
{
  "name": "docute-foo",
  "version": "0.0.0",
  "scripts": {
    "build": "bili",
    "prepublishOnly": "yarn build"
  },
  "main": "dist/index.min.js",
  "files": [
    "dist"
  ],
  "license": "MIT",
  "devDependencies": {
    "bili": "^4.7.2"
  }
}
  1. Create a bili.config.ts with following contents:
import {Config} from 'bili'

const config: Config = {
  output: {
    fileName: 'index[min].js',
    format: ['umd', 'umd-min'],
    moduleName: '{{ replace this with moduleName }}'
  }
}

export default config
  1. Create src/index.js

About

List of Docute Plugins.

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published