Giter Club home page Giter Club logo

localhost-proxy's Introduction

Hi ๐Ÿ‘‹, I'm Amy

Lover of dogs, speaker of tech, organiser of communities, champion of Twilio , MVP of Microsoft

Amy wears many hats as a business owner, senior engineer, mentor and conference addict. She regularly shares her knowledge with her peers and the next generation of developers by mentoring, speaking at and organising events as well as mentoring up and coming developers within her business.

Amy can be found volunteering her time with DDD Perth as Vice Chair and Director of Conference Content, organising Perth Azure User Group and mentoring at various SheCodes events. She has been recognised as a Twilio Champion and a Microsoft MVP since 2019 and has been nominated for the WiTWA awards previously.

In her spare time Amy shares her knowledge and experience writing blogs, speaking at conferences and running workshops on a variety of topics across front end development, accessibility, mental health and more. She has previously given keynotes at international events and conferences around the world.

localhost-proxy's People

Contributors

amykapernick avatar glennsarti avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

glennsarti

localhost-proxy's Issues

Add basic unit and integration tests

Currently there are no tests to ensure that the utility behaves as expected, particularly in a cross platform way. As noted on the Readme it is unknown if this works on Windows.

This issue will track the work to add the test dependencies and the tests themselves to the project.

Running `localhost run ... ` using the npm command doesn't work on Windows

On a Windows 10 computer, given a site configuration that has a script like npm run server. Using localhost run mysite throws an error like

PS> localhost run mysite
Error: spawn npm ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn npm',
  path: 'npm',
  spawnargs: [ 'run', 'index' ]
}

But running npm manually works

PS> npm run index

> [email protected] index C:\Source\localhost-proxy\tests\fixtures\project
> node ./index.js

DEBUG TEST MESSAGE
ERROR TEST MESSAGE
WARN TEST MESSAGE
INFO TEST MESSAGE
LOG TEST MESSAGE

Add GitHub Action to actually run the tests

Now that we have some tests, we should probably actually exercise them. This ticket will track the work add some GitHub Actions to run the tests on Windows, Mac and *Nix.

localhost --help is missing tunnel and run commands

Running localhost --help only shows localhost set and is missing run and tunnel

localhost <command>

Commands:
  localhost set [script]  Set up site config

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]

Getting help from yargs shows "index.js" instead of "localhost"

When running localhost --help I get the following output:

PS> localhost --help
index.js [command]

Commands:
  index.js set [script]  Set up site config

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

Note the name of the script is "index.js" not localhost.

This is confusing as a user as surely I should be calling localhost ... not index.js

Cannot specify a non-default location for site configuration

Currently the site configuration directory must always be in the users home directory, however there may be cases where users may want to use a non-default location.

Ideally there should be a --sitedir option where a user can pass in the directory for site configuration

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.