More proper bundle
This commit is contained in:
parent
75ad14f573
commit
ca085e8875
|
@ -2,10 +2,10 @@ var js = require("../src/js/index.js");
|
||||||
|
|
||||||
describe("A simple result", () => {
|
describe("A simple result", () => {
|
||||||
test("mean(normal(5,2))", () => {
|
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", () => {
|
test("10+10", () => {
|
||||||
let foo = js.eval("normal(5,2)");
|
let foo = js.runMePlease("normal(5,2)");
|
||||||
console.log(foo.value.hd.VAL)
|
console.log(foo.value.hd.VAL)
|
||||||
expect(1).toEqual(1);
|
expect(1).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
23
package.json
23
package.json
|
@ -1,28 +1,22 @@
|
||||||
{
|
{
|
||||||
"name": "squiggle-experimental",
|
"name": "squiggle-experimental",
|
||||||
"version": "0.1.0",
|
"version": "0.1.2",
|
||||||
"homepage": "https://foretold-app.github.io/estiband/",
|
"homepage": "https://foretold-app.github.io/estiband/",
|
||||||
|
"main": "src/js/index.js",
|
||||||
|
"private": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rescript build",
|
"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",
|
"start": "rescript build -w",
|
||||||
"clean": "rescript clean",
|
"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": "jest",
|
||||||
"test:ci": "yarn jest",
|
"test:ci": "yarn jest",
|
||||||
"watch:test": "jest --watchAll",
|
"watch:test": "jest --watchAll",
|
||||||
"watch:testjs": "jest --watchAll",
|
|
||||||
"watch:s": "yarn jest -- Converter_test --watch"
|
"watch:s": "yarn jest -- Converter_test --watch"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"BuckleScript",
|
"Rescript"
|
||||||
"ReasonReact",
|
|
||||||
"reason-react"
|
|
||||||
],
|
],
|
||||||
"author": "Quantified Uncertainty Research Institute",
|
"author": "Quantified Uncertainty Research Institute",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -43,13 +37,10 @@
|
||||||
"jest": "^25.5.1",
|
"jest": "^25.5.1",
|
||||||
"jstat": "1.9.2",
|
"jstat": "1.9.2",
|
||||||
"moduleserve": "0.9.1",
|
"moduleserve": "0.9.1",
|
||||||
|
"parcel": "^2.2.1",
|
||||||
"parcel-bundler": "1.12.4",
|
"parcel-bundler": "1.12.4",
|
||||||
"parcel-plugin-bundle-visualiser": "^1.2.0",
|
"parcel-plugin-bundle-visualiser": "^1.2.0",
|
||||||
"parcel-plugin-less-js-enabled": "1.0.2",
|
"parcel-plugin-less-js-enabled": "1.0.2",
|
||||||
"rescript": "^9.1.4"
|
"rescript": "^9.1.4"
|
||||||
},
|
|
||||||
"alias": {
|
|
||||||
"react": "./node_modules/react",
|
|
||||||
"react-dom": "./node_modules/react-dom"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
const ProgramEvaluator = require('../distPlus/ProgramEvaluator.gen.js');
|
const ProgramEvaluator = require('../distPlus/ProgramEvaluator.gen.js');
|
||||||
|
|
||||||
exports.eval = ProgramEvaluator.runAll
|
exports.runMePlease = ProgramEvaluator.runAll
|
Loading…
Reference in New Issue
Block a user