Closed gr2m closed 7 years ago
I would like to work on this Invite me to slack. Your invite form is not working on http://hood.ie/chat/
Welcome @gautamkrishnar!
Does that slack form work for you: https://hoodie-slackin-xuhlegfruy.now.sh ?
The issue is all yours :) Iโve invited you to our Camp repository, you can accept my invitation at https://github.com/hoodiehq/camp/invitations
Once accepted, you can assign yourself to this issue and check off the checkboxes above. Enjoy ๐
Thanks. https://hoodie-slackin-xuhlegfruy.now.sh worked for me. I am now going through hoodie docs.
Hey @gautamkrishnar how are things going? Anything we can help with?
Sorry for being late. I was a little busy these days. @gr2m can you please explain me what i need to change.
This statement looks a bit confusing to me:
If the "start" script is set to "hoodie", npm install --save hoodie current sets the "hoodie-start" script. But it should not do anything if the start script is set to "hoodie" or something like "hoodie --inMemory".
no worries, happy to explain. Try this:
mkdir test
cd test
npm init -y
npm install --save hoodie
when itโs done, you will see that the package.json file in the test folder you created has a line "start": "hoodie"
.
now, remove the "dependencies"
key from your package.json and rm -rf node_modules
. Leave the "start": "hoodie"
line and run npm install --save hoodie
again. Open package.json
and now you will see two lines
"start": "hoodie",
"start-hoodie": "hoodie"
This is what this issue is about. If the "start"
script already exists and it is set to "hoodie"
or a value that starts with "hoodie"
, then do not create the "start-hoodie"
script to avoid duplication. The code where all this is happening is in bin/setup.js
Does that help?
Thinks a lot for your explanation. I will try to fix that soon....
On Mon 30 Jan, 2017, 2:33 AM Gregor Martynus, notifications@github.com wrote:
no worries, happy to explain. Try this:
mkdir test cd test npm init -y npm install --save hoodie
when itโs done, you will see that the package.json file in the test folder you created has a line "start": "hoodie".
now, remove the "dependencies" key from your package.json and rm -rf node_modules. Leave the "start": "hoodie" line and run npm install --save hoodie again. Open package.json and now you will see two lines
"start": "hoodie", "start-hoodie": "hoodie"
This is what this issue is about. If the "start" script already exists and it is set to "hoodie" or a value that starts with "hoodie", then do not create the "start-hoodie" script to avoid duplication. The code where all this is happening is in bin/setup.js https://github.com/hoodiehq/hoodie/blob/master/bin/setup.js
Does that help?
โ You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/hoodiehq/camp/issues/103#issuecomment-275945825, or mute the thread https://github.com/notifications/unsubscribe-auth/AIAh2n7uDugERHdIlE6Kxj3L5mvS4qJLks5rXP6pgaJpZM4LWjuq .
๐ค What you will need to know
Basic knowledge of Node.js and npm.
โ The Motivation
We improved the setup experience for new Hoodie apps by directly setting the "start" script in your appโs
package.json
file when you installedhoodie
withnpm install --save hoodie
via https://github.com/hoodiehq/hoodie/pull/592We also made sure that we donโt override an existing "start" script via https://github.com/hoodiehq/hoodie/pull/642, by setting "hoodie-start".
But if the "start" script is set to
"hoodie"
, then we donโt need to do anything.๐ The Bug
If the
"start"
script is set to"hoodie"
,npm install --save hoodie
current sets the"hoodie-start"
script. But it should not do anything if the start script is set to"hoodie"
or something like"hoodie --inMemory"
.:clipboard: Step by Step
Please ๐ only claim if you want to start working on it within a day.
Once claimed we add you as contributor to this repository.
In a nutshell: be patient and actively kind with us ๐
up for grabs
label within progress
."postinstall"
hook, so donโt worry about it. Make the necessary change directly in hoodie/bin/setup.jscloses hoodiehq/camp#103
in the description.If this is your first, welcome :tada: :smile: Here is a great tutorial on how to send a pull request using the terminal.
in progress
label withready
. Ask in comments for a review :)๐คโ Questions
Ping us in the Hoodie Chat or on Twitter