create-renoun 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +28 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -153,7 +153,34 @@ function shouldRefreshCache() {
|
|
|
153
153
|
log.error('Failed to reformat package.json.');
|
|
154
154
|
throw error;
|
|
155
155
|
}
|
|
156
|
-
writeFileSync(join(workingDirectory, '.gitignore'),
|
|
156
|
+
writeFileSync(join(workingDirectory, '.gitignore'), `# dependencies
|
|
157
|
+
node_modules
|
|
158
|
+
|
|
159
|
+
# testing
|
|
160
|
+
coverage
|
|
161
|
+
|
|
162
|
+
# next.js
|
|
163
|
+
.next
|
|
164
|
+
out
|
|
165
|
+
|
|
166
|
+
# production
|
|
167
|
+
build
|
|
168
|
+
dist
|
|
169
|
+
|
|
170
|
+
# misc
|
|
171
|
+
.DS_Store
|
|
172
|
+
|
|
173
|
+
# debug
|
|
174
|
+
npm-debug.log*
|
|
175
|
+
|
|
176
|
+
# local env files
|
|
177
|
+
.env
|
|
178
|
+
.env.local
|
|
179
|
+
|
|
180
|
+
# typescript
|
|
181
|
+
*.tsbuildinfo
|
|
182
|
+
next-env.d.ts
|
|
183
|
+
`, 'utf-8');
|
|
157
184
|
const introInstallInstructions = workingDirectory === process.cwd() ? `Run ${color.bold(`${packageManager ?? 'npm'} install`)} to install the dependencies and get started.` : `Change to the directory (cd ${color.bold(workingDirectory)}) and run ${color.bold(`${packageManager ?? 'npm'} install`)} to install the dependencies and get started.`;
|
|
158
185
|
log.success(`Example ${color.bold(directoryName)} fetched and configured successfully! ${introInstallInstructions}`);
|
|
159
186
|
return true;
|