Code Monkey home page Code Monkey logo

Comments (8)

mirnovov avatar mirnovov commented on August 22, 2024

If installing from source, you need to compile main.ts into main.js yourself. Use npm run build to do so. (If you were trying to do this because it wouldn't install via the plugins browser, I messed something up that meant it wouldn't work. Sorry about that, it should be fixed now.)

from obsidian-homepage.

dbrianhendrix avatar dbrianhendrix commented on August 22, 2024

from obsidian-homepage.

mirnovov avatar mirnovov commented on August 22, 2024

compile.

I didn’t see any instructions at Github to compile.

now there are instructions ;). I thought it would be kinda obvious, but I guess it isn't. I'd just install it from the plugin browser though, now that I've fixed the issues with that.

from obsidian-homepage.

mirnovov avatar mirnovov commented on August 22, 2024

To clarify, if you haven't used the Node ecosystem before, you'll have to run npm i beforehand to initialise things first. I'll put that in the readme as well.

from obsidian-homepage.

dbrianhendrix avatar dbrianhendrix commented on August 22, 2024

from obsidian-homepage.

mirnovov avatar mirnovov commented on August 22, 2024

As the installation instructions state, you can also install it using Obsidian's built-in plugin browser. I would recommend doing that if you don't have any experience with Node - it would be much easier.

If you still can't use that version of the plugin, let me know, and I'll do my best to help fix the issue.

from obsidian-homepage.

dbrianhendrix avatar dbrianhendrix commented on August 22, 2024

from obsidian-homepage.

mirnovov avatar mirnovov commented on August 22, 2024

That was since it takes a bit for plugins to be included in the plugin browser. Each plugin has to be manually approved by the Obsidian devs.

Is there somewhere you can point me to that explains the “npm i” process for “compiling”? I’ll be googling as well.

Basically, NPM is a package manager for using JavaScript outside the browser as a scripting language similar to Python. Though it's commonly associated with the Node runtime, it can be used for other JavaScript projects as well, like Obsidian. If you have Homebrew or MacPorts, it can be obtained from there.

npm i downloads all packages for the project and sets up a few system files; NPM is rather poorly designed unusual that it installs all the packages on a per-project basis by default, so this has to be done for each project (ie. each plugin) separately. One of these packages is TypeScript, a version of JavaScript by Microsoft that is a strongly typed language. npm build uses it in tandem with another package, Rollup,* to compile all the plugin's TypeScript files into a single JavaScript file.

*Though since this is a rather small plugin with only one TS file, it's not strictly necessary.

from obsidian-homepage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.