- Notifications
You must be signed in to change notification settings - Fork478
feat: generate start and test npm scripts#387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -372,24 +372,24 @@ async function init() { | ||
if (needsPinia) { | ||
render('config/pinia') | ||
} | ||
if (needsCypress) { | ||
render('config/cypress') | ||
} | ||
if (needsNightwatch) { | ||
render('config/nightwatch') | ||
} | ||
if (needsPlaywright) { | ||
render('config/playwright') | ||
} | ||
if (needsVitest) { | ||
render('config/vitest') | ||
} | ||
if (needsCypressCT) { | ||
render('config/cypress-ct') | ||
} | ||
if (needsNightwatchCT) { | ||
render('config/nightwatch-ct') | ||
} | ||
cexbrayat marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
if (needsTypeScript) { | ||
render('config/typescript') | ||
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -3,6 +3,7 @@ | ||||||||||||||||||
"type": "module", | ||||||||||||||||||
"scripts": { | ||||||||||||||||||
"dev": "vite", | ||||||||||||||||||
"start": "npm run dev", | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Here you may be able to dynamically obtain the corresponding script commands generated by the package manager. Lines 569 to 576 in9a4dd95
| ||||||||||||||||||
"build": "vite build", | ||||||||||||||||||
"preview": "vite preview" | ||||||||||||||||||
}, | ||||||||||||||||||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"scripts": { | ||
"test:unit": "vitest", | ||
"test": "npm run test:unit" | ||
}, | ||
"dependencies": { | ||
"vue": "^3.4.27" | ||