Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other ways to run CLASS #51

Open
Peter9192 opened this issue Oct 3, 2024 · 2 comments
Open

Other ways to run CLASS #51

Peter9192 opened this issue Oct 3, 2024 · 2 comments

Comments

@Peter9192
Copy link
Member

It would be nice to be able to run the same CLASS code in different ways:

  • As a command line tool, passing in a config.json file as a command-line argument
  • As an executable, e.g. via deno compile
  • Via a codepen or similar, so people can edit the CLASS code live in the browser and run it.
sverhoeven added a commit that referenced this issue Oct 11, 2024
This was referenced Oct 11, 2024
Merged
@sverhoeven
Copy link
Collaborator

sverhoeven added a commit that referenced this issue Oct 14, 2024
@sverhoeven
Copy link
Collaborator

CLI almost works

npx @classmodel/class config.json
Need to install the following packages:
@classmodel/[email protected]
Ok to proceed? (y) 

node:internal/modules/esm/assert:88
        throw new ERR_IMPORT_ATTRIBUTE_MISSING(url, 'type', validType);
              ^

TypeError [ERR_IMPORT_ATTRIBUTE_MISSING]: Module "file:///home/verhoes/.npm/_npx/ce43375ca7ce951b/node_modules/@classmodel/class/dist/config.json" needs an import attribute of "type: json"
    at validateAttributes (node:internal/modules/esm/assert:88:15)
    at defaultLoad (node:internal/modules/esm/load:132:3)
    at async ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:479:32) {
  code: 'ERR_IMPORT_ATTRIBUTE_MISSING'
}

Node.js v22.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants