diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b0b14c..ad3bd80 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,5 +25,6 @@ jobs: uses: actions/setup-node@v4.0.2 with: node-version: ${{ matrix.node-version }} + - run: pipx install ninja - run: npm ci - run: npm run build --if-present diff --git a/CMakeLists.txt b/CMakeLists.txt index 43860a0..5f61d94 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,8 +3,8 @@ cmake_minimum_required(VERSION 3.19...3.28) # detailed description project( - DDVis - VERSION 1.5.1 + mqt-ddvis + VERSION 1.7.0 DESCRIPTION "MQT DDVis - A Tool for Visualizing Decision Diagrams for Quantum Computing" LANGUAGES CXX) diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c0d0e32 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +# Use an official Node.js runtime as the base image +FROM node:20-alpine + +# Add gcc and cmake +RUN apk add build-base cmake ninja + +# Set the working directory in the container to /app +WORKDIR /app + +# Copy package.json and package-lock.json into the directory /app in the container +COPY package*.json ./ + +# Install any needed packages specified in package.json +RUN npm install + +# Copy the rest of the application code into the container +COPY . . + +# Install the project +RUN npm run build + +# Make port 3000 available to the outside world +EXPOSE 3000 + +# Define the command to run the application +CMD [ "npm", "run", "run" ] diff --git a/cpp/mqt-core b/cpp/mqt-core index 4db8776..6ab9ffa 160000 --- a/cpp/mqt-core +++ b/cpp/mqt-core @@ -1 +1 @@ -Subproject commit 4db8776fc03a79e2369be5d7174e51943b82a89e +Subproject commit 6ab9ffa3e5e99514090bc57f13a5c7bd4d5d6102 diff --git a/datamanager.js b/datamanager.js index 6bec7e7..ba753d0 100644 --- a/datamanager.js +++ b/datamanager.js @@ -1,4 +1,4 @@ -const qddVis = require("./build/Release/DDVis"); +const qddVis = require("./build/Release/mqt-ddvis"); //const data = new Map(); //saves the QDDVis-objects needed for simulation diff --git a/package.json b/package.json index 9201b24..f8a3df1 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,10 @@ { - "name": "ddvis", - "version": "1.6.1", + "name": "mqt-ddvis", + "version": "1.7.0", "description": "MQT DDVis - A Tool for Visualizing Decision Diagrams for Quantum Computing", "main": "server.js", "scripts": { - "build": "cmake-js compile --config Release --CDCMAKE_BUILD_PARALLEL_LEVEL=4", - "prerun": "npm run build", + "build": "cmake-js compile --config Release -G Ninja --target mqt-ddvis", "run": "node ./bin/www" }, "repository": {