More proper bundle

This commit is contained in:
Ozzie Gooen 2022-01-29 19:20:53 -05:00
parent 75ad14f573
commit ca085e8875
4 changed files with 2494 additions and 35 deletions

View File

@ -2,10 +2,10 @@ var js = require("../src/js/index.js");
describe("A simple result", () => {
test("mean(normal(5,2))", () => {
expect(js.eval("mean(normal(5,2))")).toEqual({ tag: 'Ok', value: { hd: { NAME: 'Float', VAL: 5 }, tl: 0 } });
expect(js.runMePlease("mean(normal(5,2))")).toEqual({ tag: 'Ok', value: { hd: { NAME: 'Float', VAL: 5 }, tl: 0 } });
});
test("10+10", () => {
let foo = js.eval("normal(5,2)");
let foo = js.runMePlease("normal(5,2)");
console.log(foo.value.hd.VAL)
expect(1).toEqual(1);
});

View File

@ -1,28 +1,22 @@
{
"name": "squiggle-experimental",
"version": "0.1.0",
"version": "0.1.2",
"homepage": "https://foretold-app.github.io/estiband/",
"main": "src/js/index.js",
"private": false,
"scripts": {
"build": "rescript build",
"build:style": "tailwind build src/styles/index.css -o src/styles/tailwind.css",
"build:style": "tailwind build",
"parcel": "parcel build ./src/js/index.js --no-source-maps",
"start": "rescript build -w",
"clean": "rescript clean",
"parcel": "parcel ./src/index.html",
"parcel-build": "parcel build ./src/index.html --no-source-maps --no-autoinstall",
"showcase": "PORT=12345 parcel showcase/index.html",
"server": "moduleserve ./ --port 8000",
"predeploy": "parcel build ./src/index.html --no-source-maps --no-autoinstall",
"deploy": "gh-pages -d dist",
"test": "jest",
"test:ci": "yarn jest",
"watch:test": "jest --watchAll",
"watch:testjs": "jest --watchAll",
"watch:s": "yarn jest -- Converter_test --watch"
},
"keywords": [
"BuckleScript",
"ReasonReact",
"reason-react"
"Rescript"
],
"author": "Quantified Uncertainty Research Institute",
"license": "MIT",
@ -43,13 +37,10 @@
"jest": "^25.5.1",
"jstat": "1.9.2",
"moduleserve": "0.9.1",
"parcel": "^2.2.1",
"parcel-bundler": "1.12.4",
"parcel-plugin-bundle-visualiser": "^1.2.0",
"parcel-plugin-less-js-enabled": "1.0.2",
"rescript": "^9.1.4"
},
"alias": {
"react": "./node_modules/react",
"react-dom": "./node_modules/react-dom"
}
}

View File

@ -1,3 +1,3 @@
const ProgramEvaluator = require('../distPlus/ProgramEvaluator.gen.js');
exports.eval = ProgramEvaluator.runAll
exports.runMePlease = ProgramEvaluator.runAll

2500
yarn.lock

File diff suppressed because it is too large Load Diff