jadjoubran / webdash

🔥 Orchestrate your web project with Webdash the customizable web dashboard
https://webdash.xyz
MIT License
1.55k stars 70 forks source link

Make it possible to work by having a global installation #34

Closed jadjoubran closed 6 years ago

jadjoubran commented 6 years ago

Behavior right now:

screen shot 2018-03-27 at 2 30 56 pm

app-root is returning the global node modules path, where it should look for where it's being run from

jadjoubran commented 6 years ago

This is now available for testing 🎉

if anyone's interested in testing it, please run the following and let me know if it works for you or not:

Install it globally

npm install -g webdash@next
#run webdash serve in your project:
webdash serve

Install it locally

npm install --save-dev webdash@next
npx webdash serve
kakadiadarpan commented 6 years ago

@jadjoubran What about the plugins, do we have to install them locally in our project and maintain the config file there?

jadjoubran commented 6 years ago

the config file should always be in the project.. I don't think it'll ever be possible to move it outside as all the values will change from 1 project to another (for example manifestPath will be different from project to another)

For the plugins, for now yes they have to be installed locally.. does it make sense to allow them to work globally? Especially that they differ from project to project & if we look at other tools (like grunt & webpack) I think they require you to have the plugins installed locally

kakadiadarpan commented 6 years ago

Makes sense! 😄

jadjoubran commented 6 years ago

it seems this is broken because is-global is returning true when webdash is installed with npm install webdash --save-dev which is breaking the paths Will be available in 1.4 instead

jadjoubran commented 6 years ago

Due to the nature of this feature, it must be tested with an npm prerelease: available in version: v1.4.0-2

Test instructions

Local

npm install --save-dev webdash@next npx webdash serve

Global

npm install -g webdash@next webdash serve