(https://www.npmjs.com/~nikoscham)",
+ "contributors": [
+ {
+ "name": "sridhar-mani",
+ "url": "https://www.npmjs.com/~sridhar-mani"
+ }
+ ],
+ "license": "MIT",
+ "type": "module",
+ "bugs": {
+ "url": "https://github.com/FEAScript/FEAScript-core/issues"
+ },
+ "homepage": "https://github.com/FEAScript/FEAScript-core#readme",
+ "publishConfig": {
+ "access": "public"
+ },
+ "peerDependencies": {
+ "mathjs": "^11.12.0",
+ "plotly.js": "^2.27.0"
+ },
+ "devDependencies": {
+ "@rollup/plugin-commonjs": "^28.0.3",
+ "@rollup/plugin-node-resolve": "^16.0.1",
+ "@types/estree": "^1.0.7",
+ "mathjs": "^11.12.0",
+ "rollup": "^2.79.2",
+ "rollup-plugin-terser": "^7.0.2",
+ "rollup-plugin-typescript2": "^0.36.0",
+ "typescript": "^5.8.3"
+ }
+}
diff --git a/rollup.config.js b/rollup.config.js
new file mode 100644
index 0000000..445e8b3
--- /dev/null
+++ b/rollup.config.js
@@ -0,0 +1,39 @@
+import resolve from "@rollup/plugin-node-resolve";
+import commonjs from "@rollup/plugin-commonjs";
+import { terser } from "rollup-plugin-terser";
+
+export default {
+ input: "src/index.js",
+ output: [
+ {
+ file: "dist/feascript.cjs.js",
+ format: "cjs",
+ sourcemap: true,
+
+ },
+ {
+ file: "dist/feascript.esm.js",
+ format: "esm",
+ sourcemap: true,
+ },
+ {
+ file: "dist/feascript.umd.js",
+ format: "umd",
+ name: "FEAScript",
+ sourcemap: true,
+ globals: {
+ mathjs: "math",
+ "plotly.js": "Plotly"
+ },
+ },
+ ],
+ plugins: [
+ resolve({
+ browser: true,
+ preferBuiltins: false,
+ }),
+ commonjs(),
+ terser(),
+ ],
+ external: ["mathjs", "plotly.js"],
+};
diff --git a/src/index.js b/src/index.js
index 5d709fd..c836d38 100644
--- a/src/index.js
+++ b/src/index.js
@@ -13,3 +13,4 @@ export { importGmshQuadTri } from "./readers/gmshReaderScript.js";
export { logSystem, printVersion } from "./utilities/loggingScript.js";
export { plotSolution } from "./visualization/plotSolutionScript.js";
export { FEAScriptWorker } from "./workers/workerScript.js";
+export const VERSION = "0.1.1";
\ No newline at end of file
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 0000000..3107ac8
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,25 @@
+{
+ "compilerOptions": {
+ "target": "ES2020",
+ "module": "ESNext",
+ "outDir": "./dist",
+ "rootDir": "./src",
+ "allowJs": true,
+ "declaration": true,
+ "declarationDir": "./dist/types",
+ "esModuleInterop": true,
+ "forceConsistentCasingInFileNames": true,
+ "strict": true,
+ "skipLibCheck": true,
+ "lib": [
+ "ES2020",
+ "DOM",
+ "DOM.Iterable",
+ "WebWorker",
+ "ESNext.AsyncIterable"
+ ],
+ "sourceMap": true
+ },
+ "include": ["src/**/*"],
+ "exclude": ["node_modules", "dist", "test"]
+}
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy