You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it is not as easy as it could be to get started with SDE. With the new build and plugin system, we have most of the foundation in place, and there is a hello-world project that can be used as a kind of template, but it would be better if the user could just type the following:
# Assume that my-dir contains a Vensim model
cd my-dir
npm create @sdeverywhere
npm start
Ideally that one create command would create files such as package.json, sde.config.js, a "core" library (that wraps the generated wasm model), and a simple app template to get the user started.
The start command would then start the local dev builder, which runs the generated app and opens the model-check report.
The text was updated successfully, but these errors were encountered:
I modeled the implementation on Astro's create-astro package, which I thought was nicely done and makes good use of the ora and prompts packages for a nice CLI experience.
Here's a screenshot of what the new create command looks like:
It automates the following steps that would normally be manual and tedious:
create project structure (from one of the two templates)
set up the sde.config.js file to point to the new config + mdl files
generate a sample model-check ({mdl}.check.yaml) test file
Currently it is not as easy as it could be to get started with SDE. With the new build and plugin system, we have most of the foundation in place, and there is a
hello-world
project that can be used as a kind of template, but it would be better if the user could just type the following:Ideally that one
create
command would create files such aspackage.json
,sde.config.js
, a "core" library (that wraps the generated wasm model), and a simple app template to get the user started.The
start
command would then start the local dev builder, which runs the generated app and opens the model-check report.The text was updated successfully, but these errors were encountered: