diff --git a/README.md b/README.md index 6f6d784b..9d6d9fec 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Agent is in a preliminary state. You can click around, and most interactions wil git clone git@github.com:UltimateHackingKeyboard/agent.git cd agent npm install +npm run build ``` In the repository you can find a `gulpfile.js` for running [browsersync](https://www.browsersync.io/), which speeds up the development process. You can fire it up with `gulp serve`. diff --git a/config-serializer/README.md b/config-serializer/README.md index f77ada4e..d2a02f45 100644 --- a/config-serializer/README.md +++ b/config-serializer/README.md @@ -6,7 +6,7 @@ The configuration of the UHK is unusually complex for a keyboard, and is compose ## Setup -Given that the development dependencies are installed on your system you should be able to build the configuration serializer by executing `tsc` in this directory, then test it with `node test-serializer.js`. +Given that the development dependencies are installed on your system you should be able to build the configuration serializer tester by executing `npm run build:test` in this directory, then start the test with running `node test-serializer.js`. ## Configuration representations diff --git a/config-serializer/webpack.config.js b/config-serializer/webpack.config.js index 7712a7f2..8ad39493 100644 --- a/config-serializer/webpack.config.js +++ b/config-serializer/webpack.config.js @@ -2,7 +2,7 @@ module.exports = { entry: { - main: './test-serializer.ts' + main: __dirname + '/test-serializer.ts' }, target: 'node', output: { diff --git a/package.json b/package.json index a352a590..3ce7db94 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,8 @@ "postinstall": "typings install", "lint": "tslint 'src/**/*.ts' 'config-serializer/**/*.ts'", "typings": "typings", + "build": "webpack", + "build:test": "webpack --config 'config-serializer/webpack.config.js'", "webpack": "webpack", "webpack-dev-server": "webpack-dev-server" }