Comments (10)
synth install -b
could have an alias to synth npm install
, this makes so much sense.
from synth.
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 tosynth npm install
, this makes so much sense.Reply to this email directly or view it on GitHub:
#2 (comment)
from synth.
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.
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.
I just experienced this issue. Even worse it printed No synth app detected (missing synth.json).
, which was kinda misleading :)
from synth.
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.
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.
Well, that's a new bug, probably introduced by this commit
from synth.
Probably the way to solve this is to:
- Check for a synth.json, and if not show the current message:
No synth app detected (missing synth.json).
- 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.
Yes, that would be a great solution..
from synth.
Related Issues (20)
- Add a `synth routes` command HOT 2
- synth install -f throws error HOT 1
- Add nghtml2-js HOT 3
- Front End Directory layout and more HOT 10
- Combine Synth with another project HOT 4
- Problem with `npm install synth` HOT 3
- Resource Endpoints must take both req, res HOT 2
- What is missing before an 0.5.4/0.6.0 version can hit npm HOT 23
- No longer require back-app.js
- Can I have a front-end page/endpoing that is not reflecting api? HOT 3
- Synth install front-end packages does not handle package conflicts. HOT 6
- We should have a gitter.im chat channel for synth HOT 1
- How can we make ServerRestart (on gulp watch) more gracefull HOT 3
- Cannot create a new controller HOT 6
- Using Commanderjs instead of your handmade bin file HOT 1
- about the routing path --> Filesytem HOT 3
- Bluebird version HOT 2
- lodash 3.2.0
- Synth was broken when I create a new project or auto restarting server HOT 7
- node request package using in synth HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from synth.