Skip to content

feat: updating CLI options#1280

Merged
WillHutt merged 8 commits intomainfrom
feat-1271-add-package-manager-option-cli
Jun 16, 2023
Merged

feat: updating CLI options#1280
WillHutt merged 8 commits intomainfrom
feat-1271-add-package-manager-option-cli

Conversation

@jdwilkin4
Copy link
Copy Markdown
Contributor

@jdwilkin4 jdwilkin4 commented Jun 12, 2023

Type of change

  • Documentation change
  • Bug fix
  • feature

Summary of change

  • When initializing a kit you can now choose which package manager
    • Adds a case for deno as it's more unique
  • When initializing a kit it has a committed message that says, "init commit generated by starter.dev CLI"
  • Updates the flow to be
    • Select kit
    • Name project
    • Select package manager
    • download starter
    • cd
    • run install (or equivalent command)
    • git init
    • git add .
    • git commit -m "init commit generated by starter.dev CLI"
    • cd ../

Checklist

@jdwilkin4 jdwilkin4 added the WIP Work in Progress label Jun 12, 2023
@jdwilkin4 jdwilkin4 self-assigned this Jun 12, 2023
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 12, 2023

Deploy Preview for starter-dev canceled.

Name Link
🔨 Latest commit 43f528e
🔍 Latest deploy log https://app.netlify.com/sites/starter-dev/deploys/648b9e315599e600087010b2

@jdwilkin4 jdwilkin4 removed their assignment Jun 12, 2023
@jdwilkin4 jdwilkin4 changed the title feat: adding package manager option to CLI feat: updating CLI options Jun 12, 2023
Comment thread packages/create-starter/src/utils.ts Fixed
Comment thread packages/create-starter/src/utils.ts Fixed
@WillHutt WillHutt removed the WIP Work in Progress label Jun 13, 2023
@WillHutt WillHutt linked an issue Jun 13, 2023 that may be closed by this pull request
Comment on lines 112 to 113
console.log('\nNext steps:');
console.log(` ${bold(cyan(`cd ${options.name}`))}`);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Dustin wanted to update the language here to be this based on the slack thread disucssion:

oh update next steps to say "npm start" (or equivalent based on package manager selected" instead of "npm install"

I double check with him on that.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the kit is created we would still be outside of the newly created directory though and would still need to cd into it.

Comment thread packages/create-starter/src/index.ts
Comment thread packages/create-starter/src/index.ts Outdated
Comment thread packages/create-starter/src/utils.ts Fixed
Comment on lines +21 to +23
`cd ${path} && git init && ${packageManager} ${
packageManager === 'deno' ? 'cache --lock=deno.lock --lock-write deps.ts' : 'install'
} && git add . && git commit -m 'init commit generated by starter.dev CLI' && cd ../`,

Check warning

Code scanning / CodeQL

Shell command built from environment values

This shell command depends on an uncontrolled [absolute path](1).
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@WillHutt WillHutt self-requested a review June 15, 2023 23:28
@WillHutt WillHutt merged commit da72e42 into main Jun 16, 2023
@WillHutt WillHutt deleted the feat-1271-add-package-manager-option-cli branch June 16, 2023 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: when initializing a kit, select the package manager [Feature]: When I run the CLI, init the repo and commit the changes

3 participants