Beginner Questions
-
I didnt get very far...
{ "name": "machinez1", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "run": "...cmd to launch a webserver with the viewer" }, "author": "", "license": "ISC", "dependencies": { "@jscad/modeling": "^2.0.0-alpha.9" }, "devDependencies": { "@jscad/web": "^2.0.0-alpha.9" } }- scripts: is there a command that runs a web server with a viewer? I know about
npm run devin the www package but that's not what we want. - dependencies: It seems correct to include this so that is a totally valid package, but perhaps it should just include the typescript definitions. I'm not sure
- devDependencies: a viewer seems like a good thing for development, certainly for a template
- scripts: is there a command that runs a web server with a viewer? I know about
-
@Dunk-Fordyce your points are fair.
The parameters are still closely tied to HTML input types. There’s a whole new world now with V2 so please be frank and propose some innovative changes.
There should be reinforcement of the JavaScript language, so defaults should be useable. Definitely an area to explore.
-
- scripts: is there a command that runs a web server with a viewer? I know about
npm run devin the www package but that's not what we want.
I think this would be the desktop application, which doesn’t exist yet for V2.
- dependencies: It seems correct to include this so that is a totally valid package, but perhaps it should just include the typescript definitions. I'm not sure
It probably depends on the IDE.
Does anyone have a suggestion?- devDependencies: a viewer seems like a good thing for development, certainly for a template
CLI is an alternative, but viewing the results makes more sense.
- scripts: is there a command that runs a web server with a viewer? I know about
-
@z3dev a desktop viewer requires a whole lot of desktop whereas a web viewer can be viewed from any machine on the same network trivially. I'm guessing here: a web server setup is going to be alot smaller than requesting electron or whatever else is used. I'd go even further and say that the desktop viewer should always just be the web viewer wrapped up in electron with any features that cant be done in a browser.
Having the CLI tools there would certainly be good, I had forgotten about those.
-
There is a discord channel on ELMER server. Somebody there created lots of channels for different cad projects.
here is invite link for #openjscad
https://discord.gg/mGKESsy3 -
@hrgdavor wow! thats a lot of cool things in the same place hehe thanks!
-
@Dunk-Fordyce just another thought...
Installing live reload is an option. The web application has support for live reload, which is enabled after a file or a project is dropped to the web page.
I actually run tests of live reload using small projects.
-
In errors, what is the blob url? Going to them just yields a 404.
-
@wildjerry said in Beginner Questions:
In errors, what is the blob url? Going to them just yields a 404.
Probably a different topic would be better but... I think you mean these error messages.
TypeError: cag._toCSGWall is not a function Line: 10713,col: 0 (blob:https://openjscad.org/2c5b9973-25f7-4c49-9e61-8b632a209931)Deep down in the JavaScript engine of the browser, an error occured. However, the browser doesn't have a 'real' URL as the source code has been tweaked and anonymous. So, it reports the error as originating in the anonymous (blob) object.
-
@Dunk-Fordyce I really like this concept of a preconfigured project. It would be a great addition to the JSCAD project.
Probably, there are a few different styles of projects. So, maybe a little repository of starting projects could be created.
Interested?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login