mirror of
https://github.com/pedersen/obsidian-testing-vault.git
synced 2026-07-22 07:30:23 +00:00
Moving .ts files to src. Renaming plugin ids.
This commit is contained in:
parent
0295ff4346
commit
03d3ca5b57
6 changed files with 26 additions and 27 deletions
44
.gitignore
vendored
44
.gitignore
vendored
|
|
@ -1,22 +1,22 @@
|
|||
# vscode
|
||||
.vscode
|
||||
|
||||
# Intellij
|
||||
*.iml
|
||||
.idea
|
||||
|
||||
# npm
|
||||
node_modules
|
||||
|
||||
# Don't include the compiled main.js file in the repo.
|
||||
# They should be uploaded to GitHub releases instead.
|
||||
main.js
|
||||
|
||||
# Exclude sourcemaps
|
||||
*.map
|
||||
|
||||
# obsidian
|
||||
data.json
|
||||
|
||||
# Exclude macOS Finder (System Explorer) View States
|
||||
.DS_Store
|
||||
# vscode
|
||||
.vscode
|
||||
|
||||
# Intellij
|
||||
*.iml
|
||||
.idea
|
||||
|
||||
# npm
|
||||
node_modules
|
||||
|
||||
# Don't include the compiled main.js file in the repo.
|
||||
# They should be uploaded to GitHub releases instead.
|
||||
main.js
|
||||
|
||||
# Exclude sourcemaps
|
||||
*.map
|
||||
|
||||
# obsidian
|
||||
data.json
|
||||
|
||||
# Exclude macOS Finder (System Explorer) View States
|
||||
.DS_Store
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ esbuild.build({
|
|||
banner: {
|
||||
js: banner,
|
||||
},
|
||||
entryPoints: ['main.ts'],
|
||||
entryPoints: ['src/main.ts'],
|
||||
bundle: true,
|
||||
external: [
|
||||
'obsidian',
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export default class TestingVaultPlugin extends Plugin {
|
|||
async onload() {
|
||||
// Create a single randomized note of lorem ipsum.
|
||||
this.addCommand({
|
||||
id: 'testing-vault-single-note',
|
||||
id: 'single-note',
|
||||
name: 'Make a single randomized note in your vault',
|
||||
callback: () => {
|
||||
let note = newLoremNote({});
|
||||
|
|
@ -28,15 +28,14 @@ export default class TestingVaultPlugin extends Plugin {
|
|||
});
|
||||
|
||||
this.addCommand({
|
||||
id: 'testing-vault-fill-vault',
|
||||
id: 'fill-vault',
|
||||
name: 'Make a group of randomized notes in your vault',
|
||||
callback: () => {
|
||||
const maxnotes = 1000;
|
||||
new TestingVaultModal(this.app).open();
|
||||
}
|
||||
});
|
||||
this.addCommand({
|
||||
id: 'testing-vault-destroy-vault',
|
||||
id: 'destroy-vault',
|
||||
name: 'Destroy everything in this vault',
|
||||
callback: () => {
|
||||
this.deleteVaultContents();
|
||||
Loading…
Reference in a new issue