mafintosh / mafintosh/create-project

Alternative variable token (for use in package.json for example)

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
33
Forks
14
PR merge metrics
No merged PRs in 30d

Description

I'm interested in adding an alternative variable token identifier to `create-project`: one that allows me to add variables to package.json's `name` field, in a way that doesn't cause npm to fail an `npm install` step inside a template repo.

Need to research how I could do this still, but basically in addition to `{{ variable }}`, there could be some other identifier that doesn't make npm mad e.g. (`cpt--variable--cpt`) or something.

The goal is that a template repo can install dependencies and run scripts.

I would be willing to implement and submit if you are willing to merge.

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 create-project variable-token handling and investigate how package.json name values interact with npm install in a generated template repository. Define an alternative token alongside {{ variable }} without causing npm validation failures. Done means a template repository can install dependencies and run its scripts successfully with the substituted package.json name.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.