diff --git a/package.json b/package.json index 59177668..1f7b265d 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", "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" } } diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 00000000..263450dd --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,10 @@ +const path = require("path"); + +module.exports = { + entry: "./index.js", + target: "node", + output: { + filename: "bundle.js", + path: path.resolve(__dirname, "out") + } +}; \ No newline at end of file