Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ RUN sed -i 's|^\( *\)\(GenericStringRef\& operator=(const GenericStringRef\& rhs
RUN make -j2 RDKit_minimal && \
cp Code/MinimalLib/RDKit_minimal.* ../Code/MinimalLib/demo/

# Build the ESM version (using the cached CMake configuration from the previous build). The linker
# flags are the same as for the non-ESM version, except "-s EXPORT_ES6=1" at the end.
RUN emcmake cmake -DCMAKE_EXE_LINKER_FLAGS="${EXCEPTION_HANDLING} -s STACK_OVERFLOW_CHECK=1 -s USE_PTHREADS=0 -s ALLOW_MEMORY_GROWTH=1 -s MAXIMUM_MEMORY=4GB -s MODULARIZE=1 -s EXPORT_NAME=\"'initRDKitModule'\" -s EXPORT_ES6=1" .. && \
make -j2 RDKit_minimal && \
cp Code/MinimalLib/RDKit_minimal.js ../Code/MinimalLib/demo/RDKit_minimal_esm.js

# run the tests
WORKDIR /src/rdkit/Code/MinimalLib/tests
RUN /opt/emsdk/node/*/bin/node tests.js
Expand Down
17 changes: 12 additions & 5 deletions examples/angular/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"version": 1,
"cli": {
"packageManager": "yarn",
"schematicCollections": ["@angular-eslint/schematics"],
"schematicCollections": [
"@angular-eslint/schematics"
],
"analytics": false
},
"newProjectRoot": "projects",
Expand Down Expand Up @@ -54,12 +56,14 @@
"src/assets",
{
"glob": "RDKit_minimal.wasm",
"input": "node_modules/@rdkit/rdkit/dist/",
"input": "node_modules/@rdkit/rdkit/dist/esm",
"output": "/"
}
],
"styles": ["src/styles.css"],
"scripts": ["node_modules/@rdkit/rdkit/dist/RDKit_minimal.js"],
"styles": [
"src/styles.css"
],
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
Expand Down Expand Up @@ -118,7 +122,10 @@
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
Expand Down
Loading