add build scripts main master
authorRobin Krens <robin@robinkrens.nl>
Wed, 24 Jan 2024 11:25:33 +0000 (12:25 +0100)
committerRobin Krens <robin@robinkrens.nl>
Wed, 24 Jan 2024 11:25:33 +0000 (12:25 +0100)
.gitlab-ci.yml [new file with mode: 0644]
README.md [new file with mode: 0644]
package.json

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644 (file)
index 0000000..1eed508
--- /dev/null
@@ -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 (file)
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``
+
+
index 4345c99..45f0a09 100644 (file)
@@ -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",
   "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": [],
     "test": "echo \"Error: no test specified\" && exit 1"
   },
   "keywords": [],