commit c4cdd3bd398797edf53ec6eeb2f68492929f1bc9 Author: Tim Stallard Date: Tue Feb 14 10:26:27 2017 +0000 Start diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..204a52d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +client/build diff --git a/client/src/index.html b/client/src/index.html new file mode 100644 index 0000000..980a0d5 --- /dev/null +++ b/client/src/index.html @@ -0,0 +1 @@ +Hello World! diff --git a/client/src/index.js b/client/src/index.js new file mode 100644 index 0000000..5047e06 --- /dev/null +++ b/client/src/index.js @@ -0,0 +1 @@ +alert("Hello World 2"); diff --git a/client/webpack.config.js b/client/webpack.config.js new file mode 100644 index 0000000..e80d329 --- /dev/null +++ b/client/webpack.config.js @@ -0,0 +1,16 @@ +var path = require("path"); +var HtmlWebpackPlugin = require("html-webpack-plugin"); +var webpack = require("webpack"); +module.exports = { + context: path.join(__dirname, "src"), + entry: "./index.js", + output: { + path: path.join(__dirname, "build"), + filename: "app.js" + }, + plugins: [ + new HtmlWebpackPlugin({ + template: "./index.html" + }) + ] +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..f963229 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name": "crypto-assist", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "build": "webpack --config client/webpack.config.js", + "build-dev": "webpack --config client/webpack.config.js --watch --progress --colors" + }, + "repository": { + "type": "git", + "url": "git+https://TimStallard@github.com/TimStallard/CryptoAssist.git" + }, + "author": "", + "license": "UNLICENCED", + "bugs": { + "url": "https://github.com/TimStallard/CryptoAssist/issues" + }, + "homepage": "https://github.com/TimStallard/CryptoAssist#readme", + "devDependencies": { + "html-webpack-plugin": "^2.28.0", + "webpack": "^2.2.1" + } +}