Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Build script #4

Open
DanCouper opened this issue Nov 18, 2016 · 0 comments
Open

Build script #4

DanCouper opened this issue Nov 18, 2016 · 0 comments

Comments

@DanCouper
Copy link
Owner

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:

  1. take a valid name for the project
  2. take a valid descpition for the project
  3. take a valid author name & contact details
  4. make the version number 0.0.1
  5. 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant