Skip to content

Commit

Permalink
build: update deps in make-module/example scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jul 8, 2019
1 parent e68dc19 commit 88128c0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 7 deletions.
28 changes: 28 additions & 0 deletions scripts/make-example
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ cat << EOF > $MODULE/package.json
"scripts": {
"clean": "rm -rf .cache build out",
"build": "yarn clean && parcel build index.html -d out --public-url ./ --no-source-maps --no-cache --detailed-report --experimental-scope-hoisting",
"build:webpack": "../../node_modules/.bin/webpack --mode production",
"start": "parcel index.html -p 8080 --open"
},
"devDependencies": {
Expand Down Expand Up @@ -110,3 +111,30 @@ Please refer to the [example build instructions](https://github.com/thi-ng/umbre
&copy; 2018 $AUTHOR // Apache Software License 2.0
EOF

echo "writing webpack.config.js..."
cat << EOF > $MODULE/webpack.config.js
module.exports = {
entry: "./src/index.ts",
output: {
filename: "bundle.[hash].js",
path: __dirname + "/out"
},
resolve: {
extensions: [".ts", ".js"]
},
module: {
rules: [
{
test: /\.(png|jpg|gif)$/,
loader: "file-loader",
options: { name: "[path][hash].[ext]" }
},
{ test: /\.ts$/, use: "ts-loader" }
]
},
node: {
process: false
}
};
EOF
14 changes: 7 additions & 7 deletions scripts/make-module
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ cat << EOF > $MODULE/package.json
"pub": "yarn build && yarn publish --access public"
},
"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/node": "^10.12.15",
"mocha": "^5.2.0",
"nyc": "^13.1.0",
"typedoc": "^0.14.0",
"typescript": "^3.2.2"
"@types/mocha": "^5.2.6",
"@types/node": "^12.0.8",
"mocha": "^6.1.4",
"nyc": "^14.0.0",
"typedoc": "^0.14.2",
"typescript": "^3.5.2"
},
"dependencies": {
"@thi.ng/api": "^5.0.1"
"@thi.ng/api": "^6.3.0"
},
"keywords": [
"ES6",
Expand Down

0 comments on commit 88128c0

Please sign in to comment.