Skip to content

Commit 405f4fa

Browse files
author
kk.shen
committed
add demo page
1 parent 25aceaa commit 405f4fa

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

generators/app/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ module.exports = Generator.extend({
108108
this.templatePath('README.md'),
109109
this.destinationPath('README.md')
110110
);
111+
this.fs.copy(
112+
this.templatePath('demo/index.html'),
113+
this.destinationPath('demo/index.html')
114+
);
111115
this.fs.copy(
112116
this.templatePath('_tsconfig.json'),
113117
this.destinationPath('tsconfig.json')
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta content='width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0' name='viewport' />
5+
<script src="index.js"></script>
6+
</head>
7+
<body>
8+
<h1> open dev tool and console logs</h1>
9+
</body>
10+
</html>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-node-typescript-webpack",
3-
"version": "0.0.13",
3+
"version": "0.0.14",
44
"description": "A minimal Yeoman Generator for creating NodeJS modules using TypeScript and webpack it",
55
"license": "MIT",
66
"main": "app/index.js",

0 commit comments

Comments
 (0)