@mnaoumov/create-obsidian-plugin 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mnaoumov/create-obsidian-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Create Obsidian plugin from modern templates.",
|
|
5
5
|
"homepage": "https://github.com/mnaoumov/create-obsidian-plugin#readme",
|
|
6
6
|
"bugs": "https://github.com/mnaoumov/create-obsidian-plugin/issues",
|
|
7
|
-
"repository":
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/mnaoumov/create-obsidian-plugin.git"
|
|
10
|
+
},
|
|
8
11
|
"license": "MIT",
|
|
9
12
|
"author": "Michael Naumov <mnaoumov@gmail.com>",
|
|
10
13
|
"type": "module",
|
|
11
14
|
"main": "src/main.ts",
|
|
12
|
-
"bin":
|
|
15
|
+
"bin": {
|
|
16
|
+
"create-obsidian-plugin": "dist/main.js"
|
|
17
|
+
},
|
|
13
18
|
"files": [
|
|
14
19
|
"dist/",
|
|
15
20
|
"templates/",
|
|
@@ -27,7 +32,7 @@
|
|
|
27
32
|
"lint": "jiti scripts/lint.ts",
|
|
28
33
|
"lint:fix": "jiti scripts/lint-fix.ts",
|
|
29
34
|
"prepare": "jiti scripts/prepare.ts",
|
|
30
|
-
"prepublishOnly": "npm run verify:tarball",
|
|
35
|
+
"prepublishOnly": "npm run verify:upstream-links && npm run verify:tarball",
|
|
31
36
|
"render:case": "jiti scripts/render-one-case.ts",
|
|
32
37
|
"spellcheck": "jiti scripts/spellcheck.ts",
|
|
33
38
|
"test": "jiti scripts/test.ts",
|
|
@@ -35,7 +40,8 @@
|
|
|
35
40
|
"verify:plugin-drift": "jiti scripts/verify-plugin-drift.ts",
|
|
36
41
|
"verify:projects": "jiti scripts/verify-generated-projects.ts",
|
|
37
42
|
"verify:rendering": "jiti scripts/verify-rendering.ts",
|
|
38
|
-
"verify:tarball": "jiti scripts/verify-tarball.ts"
|
|
43
|
+
"verify:tarball": "jiti scripts/verify-tarball.ts",
|
|
44
|
+
"verify:upstream-links": "jiti scripts/verify-upstream-links.ts"
|
|
39
45
|
},
|
|
40
46
|
"overrides": {
|
|
41
47
|
"eslint": "$eslint",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* You can remove this file if you don't need any styles
|
|
4
4
|
* See default library styles: https://github.com/mnaoumov/obsidian-dev-utils/blob/main/src/styles/main.scss
|
|
5
|
-
* See available library css classes: https://github.com/mnaoumov/obsidian-dev-utils/blob/main/src/
|
|
5
|
+
* See available library css classes: https://github.com/mnaoumov/obsidian-dev-utils/blob/main/src/obsidian/css-class.ts
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
.<%= pluginId %>.obsidian-dev-utils {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* You can remove this file if you don't need any styles
|
|
3
3
|
* See default library styles: https://github.com/mnaoumov/obsidian-dev-utils/blob/main/src/styles/main.scss
|
|
4
|
-
* See available library css classes: https://github.com/mnaoumov/obsidian-dev-utils/blob/main/src/
|
|
4
|
+
* See available library css classes: https://github.com/mnaoumov/obsidian-dev-utils/blob/main/src/obsidian/css-class.ts
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
.<%= pluginId %>.obsidian-dev-utils {
|
|
@@ -16,7 +16,7 @@ WebAssembly is how you use code written in Rust, C, Go or AssemblyScript from a
|
|
|
16
16
|
|
|
17
17
|
## Replacing it with your own
|
|
18
18
|
|
|
19
|
-
1. Build a `.wasm` and put it in this folder. With Rust: install [Rust](https://www.rust-lang.org/tools/install) and [wasm-pack](https://
|
|
19
|
+
1. Build a `.wasm` and put it in this folder. With Rust: install [Rust](https://www.rust-lang.org/tools/install) and [wasm-pack](https://wasm-bindgen.github.io/wasm-pack/installer/), `wasm-pack new my-wasm`, `wasm-pack build --target web`. With [AssemblyScript](https://www.assemblyscript.org/): `npm install assemblyscript`, then `npx asc assembly/index.ts --outFile src/wasm/module.wasm`.
|
|
20
20
|
2. Point `answer.ts` at it and name your own exports. `src/wasm.d.ts` declares what a `.wasm` import yields under this project's bundler — that differs between bundlers, which is why the file is generated rather than copied.
|
|
21
21
|
3. Keep something in `src/` calling into it, for the tree-shaking reason above.
|
|
22
22
|
|