mattdesl / mattdesl/prot

Stub npm start script

Open
#1 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
200
Forks
5
PR merge metrics
No merged PRs in 30d

Description

It'd be nice, when **prot** stubs out the `package.json`, to add a `"start"` script to the `"scripts"` block as well.

In fact, it'd be extra nice if I started it with:

```
$ prot index.js --css main.css --install --react
```

It would generate:

`./package.json`

``` json
{
"name": "prot-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "prot index.js --css main.css --install --react",
"test": "echo \"Error: no test specified\" && exit 1"
},
"license": "MIT",
"dependencies": {}
}
```

Note: The "start" script would be the same command as I used to start with.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the code that stubs package.json when prot is invoked with the documented index.js, CSS, install, and React options. Update the generated scripts block so it includes the same prot command as a start script, then verify the generated package.json matches the example in this issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli, tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.