From: Robin Krens Date: Wed, 24 Jan 2024 11:25:33 +0000 (+0100) Subject: add build scripts X-Git-Url: https://robinkrens.nl/gitweb/?a=commitdiff_plain;ds=sidebyside;p=xy-pid-controller add build scripts --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..1eed508 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,11 @@ +image: node:latest + +pages: + stage: deploy + script: + - npm install + - npm run build-gitlab + artifacts: + paths: + - public + diff --git a/README.md b/README.md new file mode 100644 index 0000000..3c1c8cd --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# X-Y PID controller + +## How to install and run + +### Prerequisites +- node.js +- npm package manager +- parcel bundler + +To install dev dependencies: ``npm install`` +To run and develop: ``npm start`` +To build and ship: ``npm build`` + + diff --git a/package.json b/package.json index 4345c99..45f0a09 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,12 @@ { - "name": "pid", + "name": "x-y-pid-controller", "version": "1.0.0", "description": "", "source": "src/index.html", "scripts": { "start": "parcel serve --no-cache", "build": "parcel build", + "build-gitlab": "parcel build --dist-dir public --public-url ./", "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [],