Skip to content

Commit

Permalink
build: update make-example script
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jul 27, 2019
1 parent dae0608 commit 9303307
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/make-example
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ if (process.env.NODE_ENV !== "production") {
}
EOF

cat << EOF > $MODULE/src/webpack.d.ts
declare module "*.jpg";
declare module "*.png";
declare module "*.svg";
EOF

echo "writing package.json..."
cat << EOF > $MODULE/package.json
{
Expand Down Expand Up @@ -88,8 +94,9 @@ cat << EOF > $MODULE/index.html
<style>
</style>
</head>
<body>
<body class="sans-serif">
<div id="app"></div>
<div><a class="link" href="https://github.com/thi-ng/umbrella/tree/master/examples/$1">Source code</a></div>
<script type="text/javascript" src="./src/index.ts"></script>
</body>
</html>
Expand All @@ -109,7 +116,7 @@ Please refer to the [example build instructions](https://github.com/thi-ng/umbre
## License
&copy; 2018 $AUTHOR // Apache Software License 2.0
&copy; 2019 $AUTHOR // Apache Software License 2.0
EOF

echo "writing webpack.config.js..."
Expand Down

0 comments on commit 9303307

Please sign in to comment.