Skip to content

Commit 6be9291

Browse files
committedMay 28, 2019
feat(generators): add generated file templates
1 parent d574846 commit 6be9291

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
 

‎packages/generators/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
**/*.js
33
!*.test.js
44
!/**/*.test.js
5+
!/templates/*.js
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* Application entry point
3+
*/
4+
5+
console.log("Hello World from <%= name %>");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = (isProd) => {
2+
3+
let scripts = {
4+
build: "webpack"
5+
};
6+
if (!isProd) {
7+
scripts.start = "webpack-dev-server";
8+
}
9+
10+
return {
11+
version: "1.0.0",
12+
description: "My webpack project",
13+
scripts,
14+
};
15+
};

0 commit comments

Comments
 (0)
Please sign in to comment.