Giter Site home page Giter Site logo

Comments (10)

vicentedealencar avatar vicentedealencar commented on August 30, 2024

synth install -b could have an alias to synth npm install, this makes so much sense.

from synth.

JonAbrams avatar JonAbrams commented on August 30, 2024

Could you make another issue for that and expand what you mean?

On Fri, Jun 6, 2014 at 2:37 AM, Vicente de Alencar
[email protected] wrote:

synth install -b could have an alias to synth npm install, this makes so much sense.

Reply to this email directly or view it on GitHub:
#2 (comment)

from synth.

DanDeMicco avatar DanDeMicco commented on August 30, 2024

Hey Jon,

This is Dan from the meetup @ Box. I just started looking at the project and see you have a way to generate a sample project. After you generate the project you have to cd to it, then do this:

cd my_app # Change the working directory to the root of your new web app
synth install -b # Install third-party back-end packages (using npm)
synth install -f # Install third-pary front-end packages (using bower)

This seems to differ from all node projects I have seen. I was wondering why you went this approach, rather than putting a package.json and bower.json file at the root of the project, and running npm install (like every other node and angular project, that I have seen at least) which you can then add a postinstall script to also run the bower install after?

You could also make it so that when you run synth new my_app it will automatically install dependencies I am sure.

from synth.

JonAbrams avatar JonAbrams commented on August 30, 2024

This seems to differ from all node projects I have seen. I was wondering why you went this approach

Yup. One of the goals of Synth was to simplify the project and keep the front-end code and back-end code in separate directories. You're right that most projects have a package.json and bower.json in their root, but to me this seems confusing and messy. That's why all Synth projects just have 3 top folders: back, front, and synth.json. The stuff in back defines the back-end, the stuff in front is what is served up to the browser.

You could also make it so that when you run synth new my_app it will automatically install dependencies I am sure.

The intention was that I wanted it to be a separate step to force people to learn the install command/step, since it's rather important. Lately though I've been thinking of it doing the install automatically. I noticed Rails has started doing that now too.

from synth.

mikaelhm avatar mikaelhm commented on August 30, 2024

I just experienced this issue. Even worse it printed No synth app detected (missing synth.json)., which was kinda misleading :)

from synth.

JonAbrams avatar JonAbrams commented on August 30, 2024

I'm thinking it'd be good enough to just check if back/node_modules and front/bower_components exist. Thoughts?

On Thu, Aug 14, 2014 at 3:06 PM, Mikael Møller [email protected]
wrote:

I just experienced this issue. Even worse it printed No synth app detected (missing synth.json)., which was kinda misleading :)

Reply to this email directly or view it on GitHub:
#2 (comment)

from synth.

mikaelhm avatar mikaelhm commented on August 30, 2024

No, I think we need show missing packages.

Yesterday, I had installed using synth install -b but I was using a package I forgot to install a new package, and suddenly i got this message:

No synth app detected (missing synth.json).

from synth.

JonAbrams avatar JonAbrams commented on August 30, 2024

Well, that's a new bug, probably introduced by this commit

from synth.

JonAbrams avatar JonAbrams commented on August 30, 2024

Probably the way to solve this is to:

  1. Check for a synth.json, and if not show the current message: No synth app detected (missing synth.json).
  2. Try to load the app, and if there's a MODULE_NOT_FOUND error, then print Could not load all modules. Make sure you run 'synth install -b'

from synth.

mikaelhm avatar mikaelhm commented on August 30, 2024

Yes, that would be a great solution..

from synth.

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.