Skip to content

Commit

Permalink
Add webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel.csollei committed Jul 12, 2018
1 parent a102ec5 commit 4faa731
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gtools",
"version": "1.0.1",
"version": "0.0.1",
"description": "Small library including utils methods for easier life",
"main": "./index",
"homepage": "https://github.com/G43riko/GTools#readme",
Expand All @@ -24,24 +24,27 @@
"coverage": "nyc --extension=.ts --extension=.js --exclude=src/**/*.spec.ts npm test && nyc report --reporter=text-lcov | coveralls",
"coverage2": "nyc --extension=.ts --extension=.js --exclude=src/**/*.spec.ts --reporter=lcov npm test",
"build": "tsc",
"pack": "webpack",
"lint": "tslint --project ."
},
"author": "Gabriel Csollei<gcsollei@hotmail.com>",
"license": "ISC",
"devDependencies": {
"nyc": "^12.0.2",
"@types/chai": "^4.1.4",
"@types/mocha": "^5.2.4",
"@types/node": "^10.5.2",
"chai": "^4.1.2",
"mocha": "^5.2.0",
"nyc": "^12.0.2",
"ts-node": "^7.0.0",
"tslint": "^5.10.0",
"ts-node": "^7.0.0"
"webpack-cli": "^3.0.8"
},
"dependencies": {
"coveralls": "^3.0.2",
"mocha-lcov-reporter": "^1.3.0",
"moment": "^2.22.2",
"typescript": "^2.9.1"
"typescript": "^2.9.1",
"webpack": "^4.16.0"
}
}
10 changes: 10 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const path = require("path");

module.exports = {
entry: "./index.js",
target: "node",
output: {
filename: "bundle.js",
path: path.resolve(__dirname, "out")
}
};

0 comments on commit 4faa731

Please sign in to comment.