diff --git a/.gitignore b/.gitignore index 403575e70920e362cb5887cea6e68f0c22f677b2..0a3b7f8735c7d35dc3f41e205ef535385079078e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,4 @@ debug.log npm-debug.log *.sublime-workspace - -web/render-test/index.js .idea diff --git a/Dockerfile b/Dockerfile index 0a03541a99355e1902a76547e2b0b550e21a1bb2..9f10bcd80045efad9dedf20db38f7170e3a8dd64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# This is to build a container that demos the Molstar Canvas prototype +# This is to build a container that demos the Mol* canvas app # Source material: https://nodejs.org/en/docs/guides/nodejs-docker-webapp/ # Source material: https://derickbailey.com/2017/05/31/how-a-650mb-node-js-image-for-docker-uses-less-space-than-a-50mb-image/ # Source material: https://hub.docker.com/_/node/ @@ -18,13 +18,10 @@ COPY *.json ./ RUN npm install COPY . . -# Build application and bundle results +# Build library and canvas application then copy results RUN npm run build -COPY build/ build/ - -# Build Canvas application and bundle results RUN npm run build-canvas -COPY build/ build/ +COPY build/canvas/ build/canvas/ # Open ports for HTTP EXPOSE 8080/tcp diff --git a/package-lock.json b/package-lock.json index eef7df4dae9988c64bf224ddff9ae23168532855..a458b41d4130941d70df39f03bcd865bc3364365 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/package.json b/package.json index bf83b6ed96ae7bbc625481cfa8e7fa64284a6433..38c65a8e97642f94610bb00eb82ccc7675da7bbd 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "@types/compression": "0.0.36", "@types/express": "^4.16.0", "@types/jest": "^23.3.2", - "@types/node": "^10.9.4", + "@types/node": "^10.10.1", "@types/node-fetch": "^2.1.2", "@types/react": "^16.4.14", "@types/react-dom": "^16.0.7", @@ -87,8 +87,8 @@ "file-loader": "^2.0.0", "glslify-import": "^3.1.0", "glslify-loader": "^1.0.2", - "graphql-code-generator": "^0.12.2", - "graphql-codegen-typescript-template": "^0.12.2", + "graphql-code-generator": "^0.12.3", + "graphql-codegen-typescript-template": "^0.12.3", "jest": "^23.6.0", "jest-raw-loader": "^1.0.1", "mini-css-extract-plugin": "^0.4.2",