Skip to content

Commit f2aaec8

Browse files
authored
Merge pull request #6 from moleculemaker/lambert8/bugfix/remove-marvinjs-dependency
fix: remove marvinjs dependency to fix failing build
2 parents 77f83e0 + d4834ff commit f2aaec8

File tree

10 files changed

+12
-161
lines changed

10 files changed

+12
-161
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ name: Docker
55
# latest and develop
66
# - when a pull request is created and updated to make sure the
77
# Dockerfile is still valid.
8-
# To be able to push to dockerhub, this execpts the following
8+
# To be able to push to dockerhub, this expects the following
99
# secrets to be set in the project:
10-
# - NPM_TOKEN : NPM auth token for accessing private chemaxon NPM registry
1110
# - DOCKERHUB_USERNAME : username that can push to the org
1211
# - DOCKERHUB_PASSWORD : password asscoaited with the username
1312
on:
@@ -42,7 +41,6 @@ jobs:
4241

4342
- name: Authenticate with private NPM package
4443
run: |
45-
echo "//hub.chemaxon.com/artifactory/api/npm/npm/:_auth=${{ secrets.NPM_TOKEN }}" > $HOME/.npmrc
4644
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> $HOME/.npmrc
4745
echo "npmrc_path=$HOME/.npmrc" >> "$GITHUB_ENV"
4846
@@ -94,4 +92,6 @@ jobs:
9492
tags: ${{ steps.meta.outputs.tags }}
9593
labels: ${{ steps.meta.outputs.labels }}
9694
build-args:
97-
configuration=staging
95+
configuration=staging
96+
secret-files: |
97+
NPMRC=${{env.npmrc_path}}

.npmrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
@chemaxon:registry=https://hub.chemaxon.com/artifactory/api/npm/npm/
2-
@moleculemaker:registry=https://npm.pkg.github.com/
1+
@moleculemaker:registry=https://npm.pkg.github.com/

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66

77
# Use official node image as the base image
8-
FROM --platform=$BUILDPLATFORM node:22 as build
8+
FROM --platform=$BUILDPLATFORM node:22 AS build
99

1010
# Set the working directory
1111
WORKDIR /usr/local/app
@@ -19,6 +19,7 @@ COPY package.json package-lock.json ./
1919

2020
# Install all the dependencies
2121
RUN --mount=type=secret,id=NPMRC npm install
22+
RUN npm install
2223

2324
# Add the source code to app
2425
COPY angular.json entrypoint.sh tsconfig*.json package*.json proxy.conf.json tailwind.config.js ./

README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,6 @@ This repo includes a library that helps build frontend application quickly.
3333

3434
## Development server
3535

36-
For marvin.js license add the following lines to the ~/.npmrc file:
37-
```
38-
@chemaxon:registry=https://hub.chemaxon.com/artifactory/api/npm/npm/
39-
hub.chemaxon.com/artifactory/api/npm/npm/:_auth="<auth>"
40-
hub.chemaxon.com/artifactory/api/npm/npm/:_password="<password>"
41-
hub.chemaxon.com/artifactory/api/npm/npm/:username=<user>
42-
hub.chemaxon.com/artifactory/api/npm/npm/:email=<email>
43-
hub.chemaxon.com/artifactory/api/npm/npm/:always-auth=true
44-
```
45-
46-
MMLI members can reach out to developers for the secrets. Non-MMLI members will need to make their own arrangements for a MarvinJS license.
47-
4836
Run `npm start` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
4937

5038
## Code scaffolding

angular.json

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,16 @@
3232
"inlineStyleLanguage": "scss",
3333
"assets": [
3434
"src/favicon.ico",
35-
"src/assets",
36-
{
37-
"glob": "**/*",
38-
"input": "node_modules/@chemaxon/marvinjs",
39-
"output": "./assets/marvin-js"
40-
}
35+
"src/assets"
4136
],
4237
"styles": [
4338
"src/app/css/primeng_theme.scss",
4439
"node_modules/primeng/resources/primeng.min.css",
4540
"node_modules/primeicons/primeicons.css",
4641
"src/styles.scss",
47-
"src/app/css/styles.scss",
48-
"node_modules/@chemaxon/marvinjs/gui/css/editor.css"
42+
"src/app/css/styles.scss"
4943
],
5044
"scripts": [
51-
"node_modules/@chemaxon/marvinjs/gui/lib/promise-1.0.0.min.js",
52-
"node_modules/@chemaxon/marvinjs/js/marvinjslauncher.js",
53-
"node_modules/@chemaxon/marvinjs/js/util.js",
54-
"node_modules/@chemaxon/marvinjs/js/webservices.js",
5545
"node_modules/chart.js/dist/chart.js"
5646
],
5747
"browser": "src/main.ts"
@@ -140,26 +130,16 @@
140130
"inlineStyleLanguage": "scss",
141131
"assets": [
142132
"src/favicon.ico",
143-
"src/assets",
144-
{
145-
"glob": "**/*",
146-
"input": "node_modules/@chemaxon/marvinjs",
147-
"output": "./assets/marvin-js"
148-
}
133+
"src/assets"
149134
],
150135
"styles": [
151136
"node_modules/primeng/resources/themes/lara-light-blue/theme.css",
152137
"node_modules/primeng/resources/primeng.min.css",
153138
"node_modules/primeicons/primeicons.css",
154139
"src/styles.scss",
155-
"src/app/css/styles.scss",
156-
"node_modules/@chemaxon/marvinjs/gui/css/editor.css"
140+
"src/app/css/styles.scss"
157141
],
158142
"scripts": [
159-
"node_modules/@chemaxon/marvinjs/gui/lib/promise-1.0.0.min.js",
160-
"node_modules/@chemaxon/marvinjs/js/marvinjslauncher.js",
161-
"node_modules/@chemaxon/marvinjs/js/util.js",
162-
"node_modules/@chemaxon/marvinjs/js/webservices.js"
163143
]
164144
}
165145
}

docker-compose.marvin.yaml

Lines changed: 0 additions & 83 deletions
This file was deleted.

docker-compose.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ secrets:
88
networks:
99
proxy:
1010

11-
1211
services:
1312
cleandb:
1413
image: moleculemaker/cleandb-frontend:localdev

package-lock.json

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"@angular/platform-browser": "^18.2.7",
3030
"@angular/platform-browser-dynamic": "^18.2.7",
3131
"@angular/router": "^18.2.7",
32-
"@chemaxon/marvinjs": "^23.11.0",
3332
"@ngrx/store": "^1.0.0",
3433
"chart.js": "^3",
3534
"ngx-matomo-client": "^6.3.1",

proxy.conf.json

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1 @@
1-
{
2-
"/rest-v1": {
3-
"localTarget": "http://localhost:8080",
4-
"target": "https://marvinjs.backend.mmli1.ncsa.illinois.edu",
5-
"secure": true,
6-
"changeOrigin": true
7-
},
8-
"/demo.html": {
9-
"localTarget": "http://localhost:8080",
10-
"target": "https://marvinjs.backend.mmli1.ncsa.illinois.edu",
11-
"secure": true,
12-
"changeOrigin": true
13-
},
14-
"/gui": {
15-
"localTarget": "http://localhost:8080",
16-
"target": "https://marvinjs.backend.mmli1.ncsa.illinois.edu",
17-
"secure": true,
18-
"changeOrigin": true
19-
},
20-
"/js": {
21-
"localTarget": "http://localhost:8080",
22-
"target": "https://marvinjs.backend.mmli1.ncsa.illinois.edu",
23-
"secure": true,
24-
"changeOrigin": true
25-
}
26-
}
1+
{}

0 commit comments

Comments
 (0)