Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
Moved source code into src folder. Increased version.
Browse files Browse the repository at this point in the history
  • Loading branch information
TS-Tobias committed Apr 26, 2023
1 parent be6cd17 commit faf800a
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 12 deletions.
14 changes: 7 additions & 7 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import builtins from "builtin-modules";
import esbuild from "esbuild";
import process from "process";
import builtins from "builtin-modules";

const banner =
`/*
const banner = `/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
`;

const prod = (process.argv[2] === "production");
const prod = process.argv[2] === "production";

const context = await esbuild.context({
banner: {
js: banner,
},
entryPoints: ["main.ts"],
entryPoints: ["src/main.ts"],
bundle: true,
external: [
"obsidian",
Expand All @@ -31,7 +30,8 @@ const context = await esbuild.context({
"@lezer/common",
"@lezer/highlight",
"@lezer/lr",
...builtins],
...builtins,
],
format: "cjs",
target: "es2018",
logLevel: "info",
Expand All @@ -45,4 +45,4 @@ if (prod) {
process.exit(0);
} else {
await context.watch();
}
}
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "no-tabs",
"name": "No Tabs",
"version": "1.0.0",
"version": "1.0.3",
"minAppVersion": "0.15.0",
"description": "Obsidian plugin that replaces the previous tab when creating a new note",
"author": "Tobias Schuster",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-no-tabs",
"version": "1.0.1",
"version": "1.0.3",
"description": "Obsidian plugin that replaces the previous tab when creating a new note",
"author": "Tobias Schuster",
"main": "main.js",
Expand Down
2 changes: 1 addition & 1 deletion main.ts → src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Plugin, WorkspaceLeaf } from "obsidian";
import SettingsTab from "settings";
import SettingsTab from "./settings";

interface Data {
settings: Settings;
Expand Down
2 changes: 1 addition & 1 deletion settings.ts → src/settings.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import NoTabsPlugin from "main";
import { App, PluginSettingTab, Setting } from "obsidian";
import NoTabsPlugin from "./main";

export default class SettingsTab extends PluginSettingTab {
private readonly plugin: NoTabsPlugin;
Expand Down
5 changes: 4 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"1.0.0": "0.15.0"
"1.0.0": "0.15.0",
"1.0.1": "0.15.0",
"1.0.2": "0.15.0",
"1.0.3": "0.15.0"
}

0 comments on commit faf800a

Please sign in to comment.