Skip to content

Commit

Permalink
feat(platform): pass run test: "visual with only empty editor-whole p…
Browse files Browse the repository at this point in the history
…acakge"

(
refactor(platform): now unify visual, visual run, use editor into editor-whole package;

refactor(platform): move meta3d-bs-most(most.res) to default/ because frontend need it instead of dependent on meta3d-bs-most extension;
)
  • Loading branch information
yyc-git committed Nov 9, 2023
1 parent 78ebe02 commit 42c3bb2
Show file tree
Hide file tree
Showing 128 changed files with 4,221 additions and 1,467 deletions.
15 changes: 15 additions & 0 deletions defaults/meta3d-bs-most/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.DS_Store
.merlin
.idea/
.vscode/
jest_0/
lib/bs/
lib/js/src/
reference/
node_modules/
mine/

npm-debug


.bsb.lock
29 changes: 29 additions & 0 deletions defaults/meta3d-bs-most/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.DS_Store
.merlin
.idea/
.vscode/
jest_0/
reference/
node_modules/
mine/

test/

.github/

donate/

lib/bs/

lib/js/test/

coverage

dist/

npm-debug

.bsb.lock

yarn.lock

29 changes: 29 additions & 0 deletions defaults/meta3d-bs-most/bsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "meta3d-bs-most",
"sources": [
{
"dir": "src",
"subdirs": true
}
],
"bsc-flags": [
"-bs-no-version-header",
"-bs-super-errors"
],
"package-specs": [
"commonjs",
"es6-global"
],
"bs-dev-dependencies": [],
"bs-dependencies": [
"meta3d-type",
"meta3d-commonlib"
],
"refmt": 3,
"namespace": true,
"suffix": ".bs.js",
"warnings": {
"number": "-0-1-2-3-4-7-8-9-10-11-12-13-14-15-16-17-18-19-20-21-22-23-24-25-26-27-28-29-30-31-32-33-34-35-36-37-38-39-40-41-42-43-44-45-46-47-48-49-50-51-52-53-54-55-56-57-58-59-60-61-62-K",
"error": "+5+6"
}
}
53 changes: 53 additions & 0 deletions defaults/meta3d-bs-most/lib/es6_global/src/most.bs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@


import * as Most from "most";
import * as Curry from "../../../../../node_modules/rescript/lib/es6/curry.js";

function subscribe(arg1, obj) {
return obj.subscribe(arg1);
}

function unfold(f) {
return function (param) {
return Most.unfold((function (x) {
var match = Curry._1(f, x);
if (match !== undefined) {
return {
value: match[0],
seed: match[1]
};
} else {
return {
done: true
};
}
}), param);
};
}

function fromList(list) {
return unfold(function (curList) {
if (curList) {
return [
curList.hd,
curList.tl
];
}

})(list);
}

function concat(arg1, obj) {
return obj.concat(arg1);
}

var Subject = {};

export {
subscribe ,
unfold ,
fromList ,
concat ,
Subject ,
}
/* most Not a pure module */
26 changes: 26 additions & 0 deletions defaults/meta3d-bs-most/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "meta3d-bs-most",
"version": "0.20.0",
"scripts": {
"watch": "rescript clean && rescript build -w",
"webpack": "webpack --config webpack.config.js"
},
"dependencies": {
"meta3d-type": "^0.20.0",
"most": "1.7.0",
"most-subject": "^5.3.0",
"rescript": "^10.0.1"
},
"devDependencies": {
"@babel/core": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"clean-webpack-plugin": "^4.0.0",
"cross-env": "^7.0.3",
"cz-customizable": "^6.3.0",
"gentype": "^3.48.0",
"gulp": "^4.0.2",
"meta3d-tool-publish": "^0.20.0",
"webpack": "^5.62.1",
"webpack-cli": "^4.9.1"
}
}
Loading

0 comments on commit 42c3bb2

Please sign in to comment.