jsdk-offical
v2.7.0
Published
JSDK is the most comprehensive TypeScript framework, like JDK.
Downloads
190
Maintainers
Readme
JavaScript Develpment Kit
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:
JSDK can greatly help you to develop libraries, components, widgets, applications and even games.
Download
Via Github: https://github.com/fengboyue/jsdk/releases
or via npm:
npm install jsdk-offical -g
Usage
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();
});
- For JSDK libraries, please read the chapter "Library Management"
Basic knowledge
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
- If you only use JSDK in ordinary JS projects, you do not need to learn TypeScript and VSCode.
- It is strongly recommended to use JSDK in TS projects, which will make all features of JSDK effective.
- If you need to run JSDK on a browser that does not support ES6, please load Babel or es6-shim before using JSDK.
Online Resources
You can visit the following online resources on Github to know more:
Local Resources
You can launch a http server on your PC to visit these resources quickly.
- Suppose you download and unzip JSDK to the {JSDK-INSTALL} directory.
- Run a http server and set your server path http://localhost/jsdk/ to refer to your {JSDK-INSTALL}.
- Open your browser and visit the URL.
License
JSDK is licensed under the MIT license since version 2.0.
- Other open source libraries include in JSDK's releases are licensed under their stated licenses
Updates
v2.7.0 - Milestone
- Update "jscore" for micro kernel.
- Update "jsan" for new tween and frame animations.
- New tool classes such as CssTool, Images, Objects.
- Fix some bugs.
Old Versions
The 0.X versions of JSDK was no longer upgraded and maintained. Please use the latest version.