The first wildfire plugin template.
You can install this template with wf-cli
.
npm install wf-cli -g
Then init a plugin project with wf-cli
and this template.
wf init first wildfire-my-plugin
You will then be aksed to provide some information. Here are two most important ones:
-
project name
:Use lowercase for
project name
, connect words with-
, and add prefixwf-
. E.g.,wildfire-pinned-comment
. -
module name
:Module name is what we use to reference a plugin in code.
Use PascalCase for
module name
, and add prefixWf
. E.g.,WfPinnedComment
forwildfire-pinned-comment
.
Run the following commands to view an example:
cd PROJECT_NAME
npm run build
open ./example/firebase.html
OR
-
make any change to the source code
-
run
npm run build
to re-build your plugin -
then view your plugin by
open ./example/firebase.html
.