This repo provides a prebuilt setup for easily creating extensions for the Blockheads MessageBot. By default it is configured for a TypeScript project, but can be easily modified to work with vanilla JavaScript.
Compile with npm run build
. Additionally, npm run build:watch
or npm run build:watch
can be used to watch files for changes and automatically recompile.
- Clone this repo using
git clone --depth=1 https://github.com/Bibliofile/BHMB-Starter.git
- Remove the
.git
folder and rungit init
to create your own project. - Alter the license to the license you want to use.
- Install dependencies with
npm install
- Edit the name, author, and description in
package.json
- Open
src/index.ts
and edit as desired - If you don't use vscode, remove the .vscode directory
- Clone this repo using
git clone --depth=1 https://github.com/Bibliofile/BHMB-Starter.git
- Remove typescript dependencies
npm uninstall --save-dev typescript tslint rollup-plugin-typescript2
- Install remaining dependencies
npm install
- Edit the name, author, and description in
package.json
- Rename
src/index.ts
tosrc/index.js
- Delete
tsconfig.json
andtslint.json
in the root directory andexports.d.ts
in the src directory. - In
rollup.config.js
remove all references torollup-plugin-typescript2
and its imports - If you don't use vscode, remove the .vscode directory