innetjs 2.1.6 → 2.2.0

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/bin/innet.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
package/constants.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export declare const lintIncludeDom: string[];
1
+ export declare const lintInclude: string[];
2
2
  export declare const stringExcludeDom: string[];
3
3
  export declare const stringExcludeNode: string[];
package/index.d.ts CHANGED
@@ -1,8 +1,22 @@
1
- declare type Extensions = 'js' | 'ts' | 'tsx' | 'jsx';
2
- export default class InnetJS {
1
+ import rollup from 'rollup';
2
+ export interface ReleaseOptions {
3
+ node?: boolean;
4
+ index?: string;
5
+ release?: string;
6
+ }
7
+ export declare const scriptExtensions: string[];
8
+ export declare const indexExt: string;
9
+ export declare class InnetJS {
3
10
  baseUrl: string;
4
11
  projectFolder: string;
5
12
  publicFolder: string;
13
+ releaseFolder: string;
14
+ licenseFile: string;
15
+ licenseReleaseFile: string;
16
+ readmeFile: string;
17
+ readmeReleaseFile: string;
18
+ declarationFile: string;
19
+ declarationReleaseFile: string;
6
20
  buildFolder: string;
7
21
  devBuildFolder: string;
8
22
  srcFolder: string;
@@ -17,12 +31,12 @@ export default class InnetJS {
17
31
  cssInJs: boolean;
18
32
  port: number;
19
33
  api: string;
20
- private projectExtension;
21
34
  private package;
22
- constructor({ projectFolder, baseUrl, publicFolder, buildFolder, srcFolder, sourcemap, cssModules, cssInJs, sslKey, sslCrt, proxy, port, api, }?: {
35
+ constructor({ projectFolder, baseUrl, publicFolder, releaseFolder, buildFolder, srcFolder, sourcemap, cssModules, cssInJs, sslKey, sslCrt, proxy, port, api, }?: {
23
36
  projectFolder?: string;
24
37
  baseUrl?: string;
25
38
  publicFolder?: string;
39
+ releaseFolder?: string;
26
40
  buildFolder?: string;
27
41
  srcFolder?: string;
28
42
  sourcemap?: boolean;
@@ -35,21 +49,18 @@ export default class InnetJS {
35
49
  api?: string;
36
50
  });
37
51
  init(appName: string, { template, force }?: any): Promise<void>;
38
- build({ node }?: {
52
+ build({ node, index }?: {
39
53
  node?: boolean;
54
+ index?: string;
40
55
  }): Promise<void>;
41
- start({ node, error }?: {
56
+ start({ node, error, index }?: {
42
57
  node?: boolean;
43
58
  error?: boolean;
59
+ index?: string;
44
60
  }): Promise<void>;
45
61
  run(file: any): Promise<void>;
46
- getProjectExtension(): Promise<Extensions>;
62
+ release({ node, index, release, }?: ReleaseOptions): Promise<void>;
47
63
  getPackage(): Promise<Record<string, any>>;
48
- createClient(key: any, cert: any, pkg: any): {
49
- writeBundle: () => Promise<void>;
50
- };
51
- createServer(): {
52
- writeBundle: () => Promise<void>;
53
- };
64
+ createClient(key: any, cert: any, pkg: any): rollup.Plugin;
65
+ createServer(): rollup.Plugin;
54
66
  }
55
- export {};