Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dsebastien committed May 13, 2024
1 parent 7edddc9 commit c778b83
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions TEMPLATE_USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Usage

- Copy this project
- Modify package.json (name, description, scripts, PLUGIN_NAME, etc)
- Modify the plugin name in manifest.json
- Modify the plugin name in .github/workflows/release.yml
- Install the project dependencies using ´npm install`
- Run `npx nx connect` to generate a Nx Cloud access token, then make sure to connect the workspace to your Nx cloud organization
2 changes: 1 addition & 1 deletion apps/plugin/src/assets/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/* ... */
/* Plugin Styles */
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"build:dev": "nx build plugin && npm run copy:assets && npm run update:local_plugin",
"update:local_plugin": "npx mkdirp ${OBSIDIAN_VAULT_LOCATION}/.obsidian/plugins/PLUGIN_NAME && cp -r ./dist/apps/plugin/* ${OBSIDIAN_VAULT_LOCATION}/.obsidian/plugins/PLUGIN_NAME/ && touch ${OBSIDIAN_VAULT_LOCATION}/.obsidian/plugins/PLUGIN_NAME/.hotreload",
"prebuild:prod": "npm run prepare:dist_folder",
"build:prod": "nx build plugin --prod",
"build:prod": "nx build plugin --prod && zip -r ./dist/apps/plugin/PLUGIN_NAME.zip ./dist/apps/plugin/",
"postbuild:prod": "npm run version && npm run copy:assets",
"prepare": "npx husky install",
"copy:assets": "cp -r ./apps/plugin/src/assets/* ./dist/apps/plugin/ && cp ./manifest.json ./dist/apps/plugin/ && cp versions.json ./dist/apps/plugin/",
Expand Down

0 comments on commit c778b83

Please sign in to comment.