JSDK 2.0+ is the most comprehensive TS/JS framework, including lots of features, frameworks and tools from the bottom to top layers. It is very suitable to be the cornerstone of any JS library, like JDK for Java.
It supports such following features:
Annotation, Reflection, AOP, Component & Dependency Injection, Thread, Timer, Unit-Test, Event-Bus, Animations, 2D-Drawing, Application Framework. A group of advanced widgets and more powerful tools are also provided.
JSDK can greatly help you to develop libraries, components, widgets, applications and even games.
Via Github
: https://github.com/fengboyue/jsdk/releases
or via npm
:
npm install jsdk-offical -g
Load the core file and global config file of JSDK in HTML:
<script src="{PROJECT-URL}/libs/jsdk/{JSDK-VERSION}/jscore.min.js"></script><!-- ziped: 4kb -->
<script src="{PROJECT-URL}/libs/jsdk/{JSDK-VERSION}/jsdk-config.js"></script><!-- unziped: 5kb -->
Load your required library (or JS/CSS files) in TS/JS code and call its API:
/// <reference path="../libs/jsdk/{JSDK-VERSION}/jsdk.d.ts" />
JS.imports([
'$jsunit' //Suppose you need to load jsunit library for unit-test
]).then(()=>{
TestRunner.addTests([
......
]);
TestRunner.run();
});
JSDK 2.0+ was written in ES6
and TypeScript 2.0+
.
If you touch JSDK for the first time, you need to have these following basic knowledge:
ES6 core features : class definition / multiline string / arrow function / new native APIs / Promise etc.
TypeScript 2.0+ syntax and compilation parameters.
VSCode: installation, configuration, creation and compilation of projects.
Remarks
You can visit the following online resources on Github to know more:
JSDK Guides
JSDK Self-Tests
JSDK Examples
JSDK API Docs
You can launch a http server on your PC to visit these resources quickly.
{JSDK-INSTALL}
directory.http://localhost/jsdk/
to refer to your {JSDK-INSTALL}
.JSDK is licensed under the MIT license since version 2.0.
The 0.X versions of JSDK was no longer upgraded and maintained. Please use the latest version.