You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.
Given I have cloned the boilerplate under the name of my new project, I would like to run a script that rewrites package.json with the information I want for my project and reinitialises git.
Currently the shells script does this, but it is incredibly brittle and completely screws the package.json file up if characters that sed has special rules for are entered. For example, adding the author name with an email in the form John Doe <[email protected]> deletes a number of lines below it.
Ideally, it should be replaced with a node script that can run [automatically?] pre- or post- npm install.
This then means the example tests can be actually meaningful and useful as examples.
It should:
take a valid name for the project
take a valid descpition for the project
take a valid author name & contact details
make the version number 0.0.1
Delete current keywords & add more if necessary.
These should be injected into a template, which then overrwrites the original package.json. The tamplete should then be deleted.
Anything that needs to be validated should be, and there should be sensible defaults.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently the shells script does this, but it is incredibly brittle and completely screws the package.json file up if characters that sed has special rules for are entered. For example, adding the author name with an email in the form
John Doe <[email protected]>
deletes a number of lines below it.Ideally, it should be replaced with a node script that can run [automatically?] pre- or post- npm install.
This then means the example tests can be actually meaningful and useful as examples.
It should:
These should be injected into a template, which then overrwrites the original package.json. The tamplete should then be deleted.
Anything that needs to be validated should be, and there should be sensible defaults.
The text was updated successfully, but these errors were encountered: