clickgo-native 0.0.1-dev → 0.0.3-dev3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![npm version](https://img.shields.io/npm/v/clickgo-native.svg?colorB=brightgreen)](https://www.npmjs.com/package/clickgo-native "Stable Version")
6
6
  [![npm version](https://img.shields.io/npm/v/clickgo-native/dev.svg)](https://www.npmjs.com/package/clickgo-native "Development Version")
7
7
  [![npm version](https://img.shields.io/npm/v/clickgo-native/beta.svg)](https://www.npmjs.com/package/clickgo-native "Beta Version")
8
- [![License](https://img.shields.io/github/license/maiyun/clickGo-native.svg)](https://github.com/maiyun/clickgo-native/blob/master/LICENSE)
8
+ [![License](https://img.shields.io/github/license/maiyun/clickgo-native.svg)](https://github.com/maiyun/clickgo-native/blob/master/LICENSE)
9
9
  [![GitHub issues](https://img.shields.io/github/issues/maiyun/clickgo-native.svg)](https://github.com/maiyun/clickgo-native/issues)
10
10
  [![GitHub Releases](https://img.shields.io/github/release/maiyun/clickgo-native.svg)](https://github.com/maiyun/clickgo-native/releases "Stable Release")
11
11
  [![GitHub Pre-Releases](https://img.shields.io/github/release/maiyun/clickgo-native/all.svg)](https://github.com/maiyun/clickgo-native/releases "Pre-Release")
@@ -17,46 +17,27 @@ The software developed with ClickGo will run in Windows, Mac OS, Linux.
17
17
  You can install directly using NPM:
18
18
 
19
19
  ```sh
20
- $ npm i clickgo --save
20
+ $ npm i clickgo-native --save
21
21
  ```
22
22
 
23
23
  Or install the developing (unstable) version for newest features:
24
24
 
25
25
  ```sh
26
- $ npm i clickgo@dev --save
27
- ```
28
-
29
- **index.html**
30
-
31
- ```html
32
- <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.2.0/dist/loader.min.js?path=index"></script>
33
- ```
34
-
35
- **index.js**
36
-
37
- ```typescript
38
- import * as clickgo from 'clickgo';
39
- async function run(): Promise<void> {
40
- await clickgo.init();
41
- await clickgo.task.run('app/');
42
- }
26
+ $ npm i clickgo-native@dev --save
43
27
  ```
44
28
 
45
29
  **Node**
46
30
 
47
31
  ```typescript
48
32
  import * as native from 'clickgo-native';
49
- native.ready().then(function() {
50
- native.run('./index.html');
51
- }).catch(function(e) {
52
- console.log(e);
53
- });
33
+ class Boot extends native.AbstractBoot {
34
+ public main(): void {
35
+ this.run('./index.html');
36
+ }
37
+ }
38
+ native.launcher(new Boot());
54
39
  ```
55
40
 
56
- ## Note
57
-
58
- ClickGo demand loading Vue, jszip, resize-observer, but **DO NOT** reference these JS and CSS files. ClickGo will automatically reference. You only need to import "clickgo" module.
59
-
60
41
  ## Demo
61
42
 
62
43
  Clone and `npm run native`.