Git Product home page Git Product logo

Comments (4)

erkyrath avatar erkyrath commented on September 13, 2024

Not actually working the way I thought, since the install occurs in a staging directory which has never had "git init".

from lectrote.

erkyrath avatar erkyrath commented on September 13, 2024

Think I have it working. I wound up with this line, for which I apologize sincerely:

"preinstall": "if [ -f quixe/LICENSE ]; then echo Quixe already installed; elif [ -d .git ]; then git submodule init; git submodule update; else git clone https://github.com/erkyrath/quixe.git; fi",

Covers these cases:

npm install -g https://github.com/erkyrath/lectrote.git

Check out, npm install, npm install -g

from lectrote.

curiousdannii avatar curiousdannii commented on September 13, 2024

If you changed it to a postinstall script, then you wouldn't need that check?

Another option would be to just publish quixe on npm. The build script (and main.js I guess) could check if the quixe folder exists and use it if it does, falling back to node_modules if it doesn't.

You should be able to use the npm_config_binroot config var in cli.sh - if you're asking for npm root -g then it won't work when it's running locally, won't it? (I'm writing all of this without testing it, so if it does work then just ignore!)

from lectrote.

erkyrath avatar erkyrath commented on September 13, 2024

I tried postinstall first, but it was not sufficient. The install location doesn't have .git either.

I may publish on npm eventually, but not today.

I figure if you're running locally you're not using cli.sh, but rather npm start game.ulx.

from lectrote.

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.