Skip to content

Commit

Permalink
Fix: release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
noam-sc committed Jul 5, 2024
1 parent d3427c1 commit d4b7ffa
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
gh release create "$tag" \
--title="$tag" \
--draft \
main.js manifest.json styles.css
main.js manifest.json src/styles.css
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,3 @@ data.json

# Exclude macOS Finder (System Explorer) View States
.DS_Store

# For env variables
env.mjs
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ To install the plugin manually, you need to download the latest release from the

To customize this project for your needs, you can clone it and then install all dependencies with `yarn`.

After the installation, you need to create a `env.mjs` file in the root directory. Fill the file with the following content:
After the installation, you need to edit the `env.mjs` file in the root directory. Fill the file with the following content:

```js
export const obsidianExportPath =
Expand Down
1 change: 1 addition & 0 deletions env.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const obsidianExportPath = '<path-to-obsidian-vault>/.obsidian/plugins/obsidian-enhanced-symbols-prettifier';
20 changes: 12 additions & 8 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ if you want to view the source, please visit the github repository of this plugi

const prod = process.argv[2] === 'production';

const plugins = prod
? []
: [
copyFilesPlugin({
'./main.js': `${obsidianExportPath}/main.js`,
'./manifest.json': `${obsidianExportPath}/manifest.json`,
'./src/styles.css': `${obsidianExportPath}/styles.css`,
}),
];

esbuild
.build({
banner: {
Expand Down Expand Up @@ -55,12 +65,6 @@ esbuild
sourcemap: prod ? false : 'inline',
treeShaking: true,
outfile: 'main.js',
plugins: [
copyFilesPlugin({
'./main.js': `${obsidianExportPath}/main.js`,
'./manifest.json': `${obsidianExportPath}/manifest.json`,
'./src/styles.css': `${obsidianExportPath}/styles.css`,
}),
],
plugins,
})
.catch(() => process.exit(1));
.catch(() => process.exitCode = 1);
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "enhanced-symbols-prettifier",
"id": "obsidian-enhanced-symbols-prettifier",
"name": "Enhanced Symbols Prettifier",
"version": "1.0",
"version": "1.0.0",
"minAppVersion": "0.9.12",
"description": "Replace/substitute the symbols with actual symbols you commonly type. It also works for emojis shortcuts, abbreviations, greek letters, math symbols or other snippets/aliases you define",
"author": "Noam Schmitt",
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "obsidian-symbols-prettifier",
"version": "1.1.4",
"description": "This plugin enables to prettify common text symbols like arrows.",
"name": "obsidian-enhanced-symbols-prettifier",
"version": "1.0.0",
"description": "Replace/substitute the symbols with actual symbols you commonly type. It also works for emojis shortcuts, abbreviations, greek letters, math symbols or other snippets/aliases you define",
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
Expand All @@ -13,9 +13,9 @@
"keywords": [],
"repository": {
"type": "git",
"url": "git+https://github.com/FlorianWoelki/obsidian-symbols-prettifier.git"
"url": "git+https://github.com/noam-sc/obsidian-enhanced-symbols-prettifier.git"
},
"author": "Florian Woelki",
"author": "Noam Schmitt",
"license": "MIT",
"devDependencies": {
"@types/node": "^16.11.6",
Expand Down

0 comments on commit d4b7ffa

Please sign in to comment.