generator-obsidian-plugin

1.6.0 • Public • Published

generator-obsidian-plugin NPM version

Obsidian Plugin Bootstrap

Installation

First, install Yeoman and generator-obsidian-plugin using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-obsidian-plugin

Then generate your new project:

yo obsidian-plugin

Features of this template

  • Enables unofficial TypeScript typings to the internal Obsidian API.
  • Code style is forced via ESLint.
  • Available commands:
    • npm run build: builds the production version of main.js ready for publishing the release.

    • npm run dev: builds the development version of main.js.

      • If the environment variable OBSIDIAN_CONFIG_DIR is set to something like path/to/my/vault/.obsidian, the command automatically copies the compiled version of the plugin there and triggers the Hot Reload plugin if it is installed.
    • npm run lint: verifies the code style and automatically fixes some of the issues.

    • npm run version: updates the plugin's version in multiple places, based on the value from package.json.

License

© Michael Naumov

Package Sidebar

Install

npm i generator-obsidian-plugin

Weekly Downloads

188

Version

1.6.0

License

MIT

Unpacked Size

34.5 kB

Total Files

23

Last publish

Collaborators

  • mnaoumov