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 +9 -28
- package/dist/index.js +387 -275
- package/dist/index.ts +452 -308
- package/dist/lib/fs.js +324 -0
- package/dist/lib/fs.ts +284 -0
- package/dist/lib/tool.js +11 -0
- package/dist/lib/tool.ts +11 -0
- package/dist/pre.js +31 -0
- package/dist/pre.ts +7 -0
- package/package.json +8 -9
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://www.npmjs.com/package/clickgo-native "Stable Version")
|
|
6
6
|
[](https://www.npmjs.com/package/clickgo-native "Development Version")
|
|
7
7
|
[](https://www.npmjs.com/package/clickgo-native "Beta Version")
|
|
8
|
-
[](https://github.com/maiyun/clickgo-native/blob/master/LICENSE)
|
|
9
9
|
[](https://github.com/maiyun/clickgo-native/issues)
|
|
10
10
|
[](https://github.com/maiyun/clickgo-native/releases "Stable Release")
|
|
11
11
|
[](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.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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`.
|