From bf435d6e7cc5b9ad47cb14c72abc6fba95e78a78 Mon Sep 17 00:00:00 2001 From: Robin Krens Date: Wed, 24 Jan 2024 12:25:33 +0100 Subject: [PATCH] add build scripts --- .gitlab-ci.yml | 11 +++++++++++ README.md | 14 ++++++++++++++ package.json | 3 ++- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml create mode 100644 README.md 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": [], -- 2.7.4