Skip to content

Commit

Permalink
Merge pull request #2 from Exabyte-io/chore/first-pass
Browse files Browse the repository at this point in the history
fix: lessons learned
  • Loading branch information
tjduigna authored Jun 1, 2022
2 parents 0d3f244 + e02b4e6 commit a6cc727
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"all": true,
"include": [
"src/**/*.js",
"src/**/*.jsx"
]
}

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"lint": "eslint src tests && prettier --write src tests",
"lint:fix": "eslint --fix --cache src tests && prettier --write src tests",
"transpile": "babel --out-dir dist src",
"postinstall": "npm run transpile",
"prepare": "husky install"
"postinstall": "npm run transpile"
},
"repository": {
"type": "git",
Expand Down
9 changes: 7 additions & 2 deletions template.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
"PROJECT_DESCRIPTION",
]

descriptions = [
"(Ex. made.js, code.js, ...)",
"(Ex. 'COre DEfinitions')",
]

readme = """\
[![npm version](https://badge.fury.io/js/%40exabyte-io%2FPROJECT_NAME.svg)](https://badge.fury.io/js/%40exabyte-io%2FPROJECT_NAME)
[![License: Apache](https://img.shields.io/badge/License-Apache-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
Expand Down Expand Up @@ -64,8 +69,8 @@
"""

values = {}
for param in params:
values[param] = input(f"Please provide a value for {param}: ")
for param, desc in zip(params, descriptions):
values[param] = input(f"Please provide a value for {param} {desc}: ")


def replace(content, values):
Expand Down

0 comments on commit a6cc727

Please sign in to comment.