Skip to content

Commit

Permalink
fix: create new project with clean git repo
Browse files Browse the repository at this point in the history
ruslanguns committed Jan 19, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 4738c29 commit de59e70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cli/src/lib/commands/workspace-init.ts
Original file line number Diff line number Diff line change
@@ -56,6 +56,10 @@ export async function workspaceInit({
const initProject = `yarn nx g @nxpm/stack:init web --web-style-library ${webStyleLibrary}`
runCommand(initProject, target)

log('Rewrite git history')
const rewriteGitHistory = `git checkout -B main && git commit --amend -CHEAD --no-verify`
runCommand(rewriteGitHistory)

info('Installation finished')
info(`To get started : ${gray(`cd ${name}`)}`)
info(`Start database servers : ${gray(`docker-compose up`)}`)

0 comments on commit de59e70

Please sign in to comment.