publiclab / matcher-cli

Node-based CLI utility for local matcher-core configs headless testing 🎈
GNU General Public License v3.0
1 stars 7 forks source link

Localize server setup #9

Open rexagod opened 5 years ago

rexagod commented 5 years ago

Hi, this is a first-timers-only issue. This means we've worked to make it more legible to folks who either haven't contributed to our codebase before, or even folks who haven't contributed to open source before.

If that's you, we're interested in helping you take the first step and can answer questions and help you out as you do. Note that we're especially interested in contributions from people from groups underrepresented in free and open source software!

We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you πŸ’

If you have contributed before, consider leaving this one for someone new, and looking through our general help wanted issues. Thanks!

πŸ€” What you will need to know.

Nothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.

πŸ“‹ Step by Step

  1. If you are familiar with the terminal or would like to learn it, here is a great tutorial on how to send a pull request using the terminal.

  2. You can also edit files directly in your browser and open a pull request from there.

πŸ€”β“ Questions?

Leave a comment below!

Is someone else already working on this?

We encourage you to link to this issue by mentioning the issue # in your pull request, so we can see if someone's already started on it. If someone seem stuck, offer them some help! Otherwise, take a look at some other issues you can help with. Thanks!

MohamedAssaf commented 5 years ago

Hello, I'm taking this issue I'll update it shortly.

MohamedAssaf commented 5 years ago

Hello, I'm very new at this so I could use some help I edited the file to look like this :

const envVars = require('../.env_vars'); const path = require('path'); const liveServer = path.join('../node_modules', 'live-server');

exports.matcherInitQuery = ${liveServer} ${envVars.MATCHER_PATH} --no-browser --quiet --port=${envVars.PORT} &;

and I created a local branch but I got permission denied. Now if you can help me out with two things: 1) does this correctly address the issue? 2)what to do with the permission denied that I'm getting

moki298 commented 4 years ago

Can you share more info regarding your permission denied error? Where exactly did you get this error? A picture snapshot or error stack trace would be helpful.

  1. path.join is not required here and at least the way you used it doesn't help. Use this instead: const liveServerNPMModulePath = require('../node_modules/live-server/live-server');

  2. If the permission denied error is occurring when you git commit, it's because you are trying to commit to publiclab/matcher-cli directly, instead you should try to fork the publiclab/matcher-cli first and then create a feature branch on your own repository and then do a pull request from your forked repo feature branch to the publiclab/macther-cli master branch. More on this here: https://publiclab.org/notes/warren/11-22-2017/use-git-and-github-to-contribute-and-improve-public-lab-software

Also @rexagod there appear to be some lint errors occurring in the matcher-summon.js file due to unused functions.

ant-plotnikov commented 4 years ago

Hello @rexagod Could I take it in progress? As I see husky prevents me from commit as per unused function declarations in src/matcher-summon.js. Should I remove them as well in a separate commit?

moki298 commented 4 years ago

@ant-plotnikov I think you should go ahead and do a pull request. I am not sure about the unused code though.

ant-plotnikov commented 4 years ago

PR opened

neeraj-2 commented 4 years ago

https://github.com/publiclab/matcher-cli/pull/17 I have attached here the pull request for the same.