开发者

Development of stand-alone javascript lib

开发者 https://www.devze.com 2023-03-19 02:01 出处:网络
I have a need for a calculation lib that I want to run on either client or server.I\'d like to do it like a ruby gem or java bean, with a direc开发者_JS百科tory of files that are packaged for deployme

I have a need for a calculation lib that I want to run on either client or server. I'd like to do it like a ruby gem or java bean, with a direc开发者_JS百科tory of files that are packaged for deployment, as well as set of tests that of course are not deployed, but are executed in the IDE.

Does anyone have any tips or links to article about this? It seems that most tutorials or advice is geared toward developing for the browser or, (more recently) SSJS frameworks like Node.

Also, are there any IDEs that have template projects that help with this? They seem to generally set up web apps.


The CommonJS specification with its module and unit testing system is a step in that direction (and the only cross JavaScript engine approach I know of so far). I only used V8 (NodeJS) as an actual implementation so far, so I don't know how well the browser based ones work.

0

精彩评论

暂无评论...
验证码 换一张
取 消