innetjs 2.6.0-alpha.1 → 2.6.0-alpha.10
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/_virtual/_rollup-plugin-process-env.js +1 -1
- package/_virtual/_rollup-plugin-process-env.mjs +1 -1
- package/bin/innet +810 -852
- package/bin/innet.d.ts +2 -0
- package/constants.d.ts +4 -4
- package/constants.js +26 -26
- package/constants.mjs +26 -26
- package/helpers.d.ts +5 -5
- package/helpers.js +37 -37
- package/helpers.mjs +37 -37
- package/index.d.ts +76 -76
- package/index.js +627 -627
- package/index.mjs +626 -626
- package/package.json +1 -1
- package/updateDotenv.d.ts +1 -1
- package/updateDotenv.js +7 -7
- package/updateDotenv.mjs +7 -7
- package/extract.d.ts +0 -1
- package/extract.js +0 -49
- package/extract.mjs +0 -45
package/bin/innet.d.ts
ADDED
package/constants.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const lintInclude: string[];
|
|
2
|
-
export declare const imageInclude: string[];
|
|
3
|
-
export declare const stringExcludeDom: string[];
|
|
4
|
-
export declare const stringExcludeNode: string[];
|
|
1
|
+
export declare const lintInclude: string[];
|
|
2
|
+
export declare const imageInclude: string[];
|
|
3
|
+
export declare const stringExcludeDom: string[];
|
|
4
|
+
export declare const stringExcludeNode: string[];
|
package/constants.js
CHANGED
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const lintInclude = [
|
|
6
|
-
'**/*.ts',
|
|
7
|
-
'**/*.tsx',
|
|
8
|
-
'**/*.js',
|
|
9
|
-
'**/*.jsx',
|
|
10
|
-
'**/*.mjs',
|
|
11
|
-
];
|
|
12
|
-
const imageInclude = [
|
|
13
|
-
'**/*.gif',
|
|
14
|
-
'**/*.png',
|
|
15
|
-
'**/*.jpeg',
|
|
16
|
-
'**/*.jpg',
|
|
17
|
-
'**/*.svg',
|
|
18
|
-
'**/*.webp',
|
|
19
|
-
];
|
|
20
|
-
const stringExcludeDom = [
|
|
21
|
-
...lintInclude,
|
|
22
|
-
'**/*.json',
|
|
23
|
-
'**/*.css',
|
|
24
|
-
'**/*.scss',
|
|
25
|
-
'**/*.webp',
|
|
26
|
-
...imageInclude,
|
|
27
|
-
];
|
|
28
|
-
const stringExcludeNode = [
|
|
29
|
-
...lintInclude,
|
|
30
|
-
'**/*.json',
|
|
5
|
+
const lintInclude = [
|
|
6
|
+
'**/*.ts',
|
|
7
|
+
'**/*.tsx',
|
|
8
|
+
'**/*.js',
|
|
9
|
+
'**/*.jsx',
|
|
10
|
+
'**/*.mjs',
|
|
11
|
+
];
|
|
12
|
+
const imageInclude = [
|
|
13
|
+
'**/*.gif',
|
|
14
|
+
'**/*.png',
|
|
15
|
+
'**/*.jpeg',
|
|
16
|
+
'**/*.jpg',
|
|
17
|
+
'**/*.svg',
|
|
18
|
+
'**/*.webp',
|
|
19
|
+
];
|
|
20
|
+
const stringExcludeDom = [
|
|
21
|
+
...lintInclude,
|
|
22
|
+
'**/*.json',
|
|
23
|
+
'**/*.css',
|
|
24
|
+
'**/*.scss',
|
|
25
|
+
'**/*.webp',
|
|
26
|
+
...imageInclude,
|
|
27
|
+
];
|
|
28
|
+
const stringExcludeNode = [
|
|
29
|
+
...lintInclude,
|
|
30
|
+
'**/*.json',
|
|
31
31
|
];
|
|
32
32
|
|
|
33
33
|
exports.imageInclude = imageInclude;
|
package/constants.mjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
const lintInclude = [
|
|
2
|
-
'**/*.ts',
|
|
3
|
-
'**/*.tsx',
|
|
4
|
-
'**/*.js',
|
|
5
|
-
'**/*.jsx',
|
|
6
|
-
'**/*.mjs',
|
|
7
|
-
];
|
|
8
|
-
const imageInclude = [
|
|
9
|
-
'**/*.gif',
|
|
10
|
-
'**/*.png',
|
|
11
|
-
'**/*.jpeg',
|
|
12
|
-
'**/*.jpg',
|
|
13
|
-
'**/*.svg',
|
|
14
|
-
'**/*.webp',
|
|
15
|
-
];
|
|
16
|
-
const stringExcludeDom = [
|
|
17
|
-
...lintInclude,
|
|
18
|
-
'**/*.json',
|
|
19
|
-
'**/*.css',
|
|
20
|
-
'**/*.scss',
|
|
21
|
-
'**/*.webp',
|
|
22
|
-
...imageInclude,
|
|
23
|
-
];
|
|
24
|
-
const stringExcludeNode = [
|
|
25
|
-
...lintInclude,
|
|
26
|
-
'**/*.json',
|
|
1
|
+
const lintInclude = [
|
|
2
|
+
'**/*.ts',
|
|
3
|
+
'**/*.tsx',
|
|
4
|
+
'**/*.js',
|
|
5
|
+
'**/*.jsx',
|
|
6
|
+
'**/*.mjs',
|
|
7
|
+
];
|
|
8
|
+
const imageInclude = [
|
|
9
|
+
'**/*.gif',
|
|
10
|
+
'**/*.png',
|
|
11
|
+
'**/*.jpeg',
|
|
12
|
+
'**/*.jpg',
|
|
13
|
+
'**/*.svg',
|
|
14
|
+
'**/*.webp',
|
|
15
|
+
];
|
|
16
|
+
const stringExcludeDom = [
|
|
17
|
+
...lintInclude,
|
|
18
|
+
'**/*.json',
|
|
19
|
+
'**/*.css',
|
|
20
|
+
'**/*.scss',
|
|
21
|
+
'**/*.webp',
|
|
22
|
+
...imageInclude,
|
|
23
|
+
];
|
|
24
|
+
const stringExcludeNode = [
|
|
25
|
+
...lintInclude,
|
|
26
|
+
'**/*.json',
|
|
27
27
|
];
|
|
28
28
|
|
|
29
29
|
export { imageInclude, lintInclude, stringExcludeDom, stringExcludeNode };
|
package/helpers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { FileSizeRender } from 'rollup-plugin-filesize';
|
|
3
|
-
export declare function getFile(file: any): any;
|
|
4
|
-
export declare function convertIndexFile(data: Buffer, version: string, baseUrl: string, index: string, inject: boolean): Promise<string>;
|
|
5
|
-
export declare const reporter: FileSizeRender<string | Promise<string>>;
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { FileSizeRender } from 'rollup-plugin-filesize';
|
|
3
|
+
export declare function getFile(file: any): any;
|
|
4
|
+
export declare function convertIndexFile(data: Buffer, version: string, baseUrl: string, index: string, inject: boolean): Promise<string>;
|
|
5
|
+
export declare const reporter: FileSizeRender<string | Promise<string>>;
|
package/helpers.js
CHANGED
|
@@ -15,43 +15,43 @@ var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
|
|
|
15
15
|
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
16
16
|
var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
|
|
17
17
|
|
|
18
|
-
function getFile(file) {
|
|
19
|
-
file = path__default["default"].resolve(file);
|
|
20
|
-
if (!fs__default["default"].existsSync(file)) {
|
|
21
|
-
throw Error('Cannot find the file: ' + file);
|
|
22
|
-
}
|
|
23
|
-
if (fs__default["default"].lstatSync(file).isDirectory()) {
|
|
24
|
-
let tmpFile = file;
|
|
25
|
-
if (!fs__default["default"].existsSync(tmpFile = path__default["default"].join(file, 'index.ts')) &&
|
|
26
|
-
!fs__default["default"].existsSync(tmpFile = path__default["default"].join(file, 'index.tsx')) &&
|
|
27
|
-
!fs__default["default"].existsSync(tmpFile = path__default["default"].join(file, 'index.js'))) {
|
|
28
|
-
throw Error('Cannot find index file in: ' + file);
|
|
29
|
-
}
|
|
30
|
-
file = tmpFile;
|
|
31
|
-
}
|
|
32
|
-
else if (!file.endsWith('.ts') && !file.endsWith('.tsx') && !file.endsWith('.js')) {
|
|
33
|
-
throw Error('File should has `.ts` or `.tsx` or `.js` extension: ' + file);
|
|
34
|
-
}
|
|
35
|
-
if (!fs__default["default"].existsSync(file)) {
|
|
36
|
-
throw Error('Cannot find the file: ' + file);
|
|
37
|
-
}
|
|
38
|
-
return file;
|
|
39
|
-
}
|
|
40
|
-
function convertIndexFile(data, version, baseUrl, index, inject) {
|
|
41
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
const { env } = process;
|
|
43
|
-
const indexString = data
|
|
44
|
-
.toString()
|
|
45
|
-
.replace(/%([A-Z0-9_]+)%/g, (placeholder, placeholderId) => { var _a; return (_a = env[placeholderId]) !== null && _a !== void 0 ? _a : placeholder; });
|
|
46
|
-
return inject
|
|
47
|
-
? indexString
|
|
48
|
-
.replace('</head>', `<script type="module" defer src="${baseUrl}${index}.js${version ? `?v=${version}` : ''}"></script></head>`)
|
|
49
|
-
: indexString;
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
const reporter = (options, outputOptions, info) => {
|
|
53
|
-
logger__default["default"].log(`${chalk__default["default"].yellow(info.fileName)} ${chalk__default["default"].green(info.bundleSize)} [ gzip: ${chalk__default["default"].green(info.gzipSize)} ]`);
|
|
54
|
-
return '';
|
|
18
|
+
function getFile(file) {
|
|
19
|
+
file = path__default["default"].resolve(file);
|
|
20
|
+
if (!fs__default["default"].existsSync(file)) {
|
|
21
|
+
throw Error('Cannot find the file: ' + file);
|
|
22
|
+
}
|
|
23
|
+
if (fs__default["default"].lstatSync(file).isDirectory()) {
|
|
24
|
+
let tmpFile = file;
|
|
25
|
+
if (!fs__default["default"].existsSync(tmpFile = path__default["default"].join(file, 'index.ts')) &&
|
|
26
|
+
!fs__default["default"].existsSync(tmpFile = path__default["default"].join(file, 'index.tsx')) &&
|
|
27
|
+
!fs__default["default"].existsSync(tmpFile = path__default["default"].join(file, 'index.js'))) {
|
|
28
|
+
throw Error('Cannot find index file in: ' + file);
|
|
29
|
+
}
|
|
30
|
+
file = tmpFile;
|
|
31
|
+
}
|
|
32
|
+
else if (!file.endsWith('.ts') && !file.endsWith('.tsx') && !file.endsWith('.js')) {
|
|
33
|
+
throw Error('File should has `.ts` or `.tsx` or `.js` extension: ' + file);
|
|
34
|
+
}
|
|
35
|
+
if (!fs__default["default"].existsSync(file)) {
|
|
36
|
+
throw Error('Cannot find the file: ' + file);
|
|
37
|
+
}
|
|
38
|
+
return file;
|
|
39
|
+
}
|
|
40
|
+
function convertIndexFile(data, version, baseUrl, index, inject) {
|
|
41
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
const { env } = process;
|
|
43
|
+
const indexString = data
|
|
44
|
+
.toString()
|
|
45
|
+
.replace(/%([A-Z0-9_]+)%/g, (placeholder, placeholderId) => { var _a; return (_a = env[placeholderId]) !== null && _a !== void 0 ? _a : placeholder; });
|
|
46
|
+
return inject
|
|
47
|
+
? indexString
|
|
48
|
+
.replace('</head>', `<script type="module" defer src="${baseUrl}${index}.js${version ? `?v=${version}` : ''}"></script></head>`)
|
|
49
|
+
: indexString;
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
const reporter = (options, outputOptions, info) => {
|
|
53
|
+
logger__default["default"].log(`${chalk__default["default"].yellow(info.fileName)} ${chalk__default["default"].green(info.bundleSize)} [ gzip: ${chalk__default["default"].green(info.gzipSize)} ]`);
|
|
54
|
+
return '';
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
exports.convertIndexFile = convertIndexFile;
|
package/helpers.mjs
CHANGED
|
@@ -4,43 +4,43 @@ import chalk from 'chalk';
|
|
|
4
4
|
import fs from 'fs-extra';
|
|
5
5
|
import path from 'node:path';
|
|
6
6
|
|
|
7
|
-
function getFile(file) {
|
|
8
|
-
file = path.resolve(file);
|
|
9
|
-
if (!fs.existsSync(file)) {
|
|
10
|
-
throw Error('Cannot find the file: ' + file);
|
|
11
|
-
}
|
|
12
|
-
if (fs.lstatSync(file).isDirectory()) {
|
|
13
|
-
let tmpFile = file;
|
|
14
|
-
if (!fs.existsSync(tmpFile = path.join(file, 'index.ts')) &&
|
|
15
|
-
!fs.existsSync(tmpFile = path.join(file, 'index.tsx')) &&
|
|
16
|
-
!fs.existsSync(tmpFile = path.join(file, 'index.js'))) {
|
|
17
|
-
throw Error('Cannot find index file in: ' + file);
|
|
18
|
-
}
|
|
19
|
-
file = tmpFile;
|
|
20
|
-
}
|
|
21
|
-
else if (!file.endsWith('.ts') && !file.endsWith('.tsx') && !file.endsWith('.js')) {
|
|
22
|
-
throw Error('File should has `.ts` or `.tsx` or `.js` extension: ' + file);
|
|
23
|
-
}
|
|
24
|
-
if (!fs.existsSync(file)) {
|
|
25
|
-
throw Error('Cannot find the file: ' + file);
|
|
26
|
-
}
|
|
27
|
-
return file;
|
|
28
|
-
}
|
|
29
|
-
function convertIndexFile(data, version, baseUrl, index, inject) {
|
|
30
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
const { env } = process;
|
|
32
|
-
const indexString = data
|
|
33
|
-
.toString()
|
|
34
|
-
.replace(/%([A-Z0-9_]+)%/g, (placeholder, placeholderId) => { var _a; return (_a = env[placeholderId]) !== null && _a !== void 0 ? _a : placeholder; });
|
|
35
|
-
return inject
|
|
36
|
-
? indexString
|
|
37
|
-
.replace('</head>', `<script type="module" defer src="${baseUrl}${index}.js${version ? `?v=${version}` : ''}"></script></head>`)
|
|
38
|
-
: indexString;
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
const reporter = (options, outputOptions, info) => {
|
|
42
|
-
logger.log(`${chalk.yellow(info.fileName)} ${chalk.green(info.bundleSize)} [ gzip: ${chalk.green(info.gzipSize)} ]`);
|
|
43
|
-
return '';
|
|
7
|
+
function getFile(file) {
|
|
8
|
+
file = path.resolve(file);
|
|
9
|
+
if (!fs.existsSync(file)) {
|
|
10
|
+
throw Error('Cannot find the file: ' + file);
|
|
11
|
+
}
|
|
12
|
+
if (fs.lstatSync(file).isDirectory()) {
|
|
13
|
+
let tmpFile = file;
|
|
14
|
+
if (!fs.existsSync(tmpFile = path.join(file, 'index.ts')) &&
|
|
15
|
+
!fs.existsSync(tmpFile = path.join(file, 'index.tsx')) &&
|
|
16
|
+
!fs.existsSync(tmpFile = path.join(file, 'index.js'))) {
|
|
17
|
+
throw Error('Cannot find index file in: ' + file);
|
|
18
|
+
}
|
|
19
|
+
file = tmpFile;
|
|
20
|
+
}
|
|
21
|
+
else if (!file.endsWith('.ts') && !file.endsWith('.tsx') && !file.endsWith('.js')) {
|
|
22
|
+
throw Error('File should has `.ts` or `.tsx` or `.js` extension: ' + file);
|
|
23
|
+
}
|
|
24
|
+
if (!fs.existsSync(file)) {
|
|
25
|
+
throw Error('Cannot find the file: ' + file);
|
|
26
|
+
}
|
|
27
|
+
return file;
|
|
28
|
+
}
|
|
29
|
+
function convertIndexFile(data, version, baseUrl, index, inject) {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
const { env } = process;
|
|
32
|
+
const indexString = data
|
|
33
|
+
.toString()
|
|
34
|
+
.replace(/%([A-Z0-9_]+)%/g, (placeholder, placeholderId) => { var _a; return (_a = env[placeholderId]) !== null && _a !== void 0 ? _a : placeholder; });
|
|
35
|
+
return inject
|
|
36
|
+
? indexString
|
|
37
|
+
.replace('</head>', `<script type="module" defer src="${baseUrl}${index}.js${version ? `?v=${version}` : ''}"></script></head>`)
|
|
38
|
+
: indexString;
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
const reporter = (options, outputOptions, info) => {
|
|
42
|
+
logger.log(`${chalk.yellow(info.fileName)} ${chalk.green(info.bundleSize)} [ gzip: ${chalk.green(info.gzipSize)} ]`);
|
|
43
|
+
return '';
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
export { convertIndexFile, getFile, reporter };
|
package/index.d.ts
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import rollup from 'rollup';
|
|
2
|
-
export interface ReleaseOptions {
|
|
3
|
-
node?: boolean;
|
|
4
|
-
index?: string;
|
|
5
|
-
pub?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const scriptExtensions: string[];
|
|
8
|
-
export declare const indexExt: string;
|
|
9
|
-
export declare class InnetJS {
|
|
10
|
-
baseUrl: string;
|
|
11
|
-
projectFolder: string;
|
|
12
|
-
publicFolder: string;
|
|
13
|
-
releaseFolder: string;
|
|
14
|
-
licenseFile: string;
|
|
15
|
-
licenseReleaseFile: string;
|
|
16
|
-
readmeFile: string;
|
|
17
|
-
readmeReleaseFile: string;
|
|
18
|
-
declarationFile: string;
|
|
19
|
-
declarationReleaseFile: string;
|
|
20
|
-
buildFolder: string;
|
|
21
|
-
devBuildFolder: string;
|
|
22
|
-
srcFolder: string;
|
|
23
|
-
publicIndexFile: string;
|
|
24
|
-
buildIndexFile: string;
|
|
25
|
-
devBuildIndexFile: string;
|
|
26
|
-
sslKey: string;
|
|
27
|
-
sslCrt: string;
|
|
28
|
-
proxy: string;
|
|
29
|
-
sourcemap: boolean;
|
|
30
|
-
cssModules: boolean;
|
|
31
|
-
cssInJs: boolean;
|
|
32
|
-
port: number;
|
|
33
|
-
api: string;
|
|
34
|
-
envPrefix: string;
|
|
35
|
-
simulateIP: string;
|
|
36
|
-
private package;
|
|
37
|
-
constructor({ envPrefix, projectFolder, baseUrl, publicFolder, releaseFolder, buildFolder, srcFolder, sourcemap, cssModules, cssInJs, sslKey, sslCrt, proxy, simulateIP, port, api, }?: {
|
|
38
|
-
envPrefix?: string;
|
|
39
|
-
projectFolder?: string;
|
|
40
|
-
baseUrl?: string;
|
|
41
|
-
publicFolder?: string;
|
|
42
|
-
releaseFolder?: string;
|
|
43
|
-
buildFolder?: string;
|
|
44
|
-
srcFolder?: string;
|
|
45
|
-
sourcemap?: boolean;
|
|
46
|
-
cssModules?: boolean;
|
|
47
|
-
cssInJs?: boolean;
|
|
48
|
-
sslKey?: string;
|
|
49
|
-
sslCrt?: string;
|
|
50
|
-
proxy?: string;
|
|
51
|
-
simulateIP?: string;
|
|
52
|
-
port?: number;
|
|
53
|
-
api?: string;
|
|
54
|
-
});
|
|
55
|
-
init(appName: string, { template, force }?: any): Promise<void>;
|
|
56
|
-
build({ node, inject, index }?: {
|
|
57
|
-
node?: boolean;
|
|
58
|
-
inject?: boolean;
|
|
59
|
-
index?: string;
|
|
60
|
-
}): Promise<void>;
|
|
61
|
-
start({ node, inject, error, index }?: {
|
|
62
|
-
node?: boolean;
|
|
63
|
-
inject?: boolean;
|
|
64
|
-
error?: boolean;
|
|
65
|
-
index?: string;
|
|
66
|
-
}): Promise<void>;
|
|
67
|
-
run(file: any): Promise<void>;
|
|
68
|
-
release({ index, pub }?: ReleaseOptions): Promise<void>;
|
|
69
|
-
private _lintUsage;
|
|
70
|
-
withLint(options: rollup.RollupOptions, prod?: boolean): void;
|
|
71
|
-
withEnv(options: rollup.RollupOptions, virtual?: boolean): void;
|
|
72
|
-
increaseVersion(release: string): Promise<void>;
|
|
73
|
-
getPackage(): Promise<Record<string, any>>;
|
|
74
|
-
createClient(key: any, cert: any, pkg: any, index: string, inject: boolean): rollup.Plugin;
|
|
75
|
-
createServer(): rollup.Plugin;
|
|
76
|
-
}
|
|
1
|
+
import rollup from 'rollup';
|
|
2
|
+
export interface ReleaseOptions {
|
|
3
|
+
node?: boolean;
|
|
4
|
+
index?: string;
|
|
5
|
+
pub?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const scriptExtensions: string[];
|
|
8
|
+
export declare const indexExt: string;
|
|
9
|
+
export declare class InnetJS {
|
|
10
|
+
baseUrl: string;
|
|
11
|
+
projectFolder: string;
|
|
12
|
+
publicFolder: string;
|
|
13
|
+
releaseFolder: string;
|
|
14
|
+
licenseFile: string;
|
|
15
|
+
licenseReleaseFile: string;
|
|
16
|
+
readmeFile: string;
|
|
17
|
+
readmeReleaseFile: string;
|
|
18
|
+
declarationFile: string;
|
|
19
|
+
declarationReleaseFile: string;
|
|
20
|
+
buildFolder: string;
|
|
21
|
+
devBuildFolder: string;
|
|
22
|
+
srcFolder: string;
|
|
23
|
+
publicIndexFile: string;
|
|
24
|
+
buildIndexFile: string;
|
|
25
|
+
devBuildIndexFile: string;
|
|
26
|
+
sslKey: string;
|
|
27
|
+
sslCrt: string;
|
|
28
|
+
proxy: string;
|
|
29
|
+
sourcemap: boolean;
|
|
30
|
+
cssModules: boolean;
|
|
31
|
+
cssInJs: boolean;
|
|
32
|
+
port: number;
|
|
33
|
+
api: string;
|
|
34
|
+
envPrefix: string;
|
|
35
|
+
simulateIP: string;
|
|
36
|
+
private package;
|
|
37
|
+
constructor({ envPrefix, projectFolder, baseUrl, publicFolder, releaseFolder, buildFolder, srcFolder, sourcemap, cssModules, cssInJs, sslKey, sslCrt, proxy, simulateIP, port, api, }?: {
|
|
38
|
+
envPrefix?: string;
|
|
39
|
+
projectFolder?: string;
|
|
40
|
+
baseUrl?: string;
|
|
41
|
+
publicFolder?: string;
|
|
42
|
+
releaseFolder?: string;
|
|
43
|
+
buildFolder?: string;
|
|
44
|
+
srcFolder?: string;
|
|
45
|
+
sourcemap?: boolean;
|
|
46
|
+
cssModules?: boolean;
|
|
47
|
+
cssInJs?: boolean;
|
|
48
|
+
sslKey?: string;
|
|
49
|
+
sslCrt?: string;
|
|
50
|
+
proxy?: string;
|
|
51
|
+
simulateIP?: string;
|
|
52
|
+
port?: number;
|
|
53
|
+
api?: string;
|
|
54
|
+
});
|
|
55
|
+
init(appName: string, { template, force }?: any): Promise<void>;
|
|
56
|
+
build({ node, inject, index }?: {
|
|
57
|
+
node?: boolean;
|
|
58
|
+
inject?: boolean;
|
|
59
|
+
index?: string;
|
|
60
|
+
}): Promise<void>;
|
|
61
|
+
start({ node, inject, error, index }?: {
|
|
62
|
+
node?: boolean;
|
|
63
|
+
inject?: boolean;
|
|
64
|
+
error?: boolean;
|
|
65
|
+
index?: string;
|
|
66
|
+
}): Promise<void>;
|
|
67
|
+
run(file: any): Promise<void>;
|
|
68
|
+
release({ index, pub }?: ReleaseOptions): Promise<void>;
|
|
69
|
+
private _lintUsage;
|
|
70
|
+
withLint(options: rollup.RollupOptions, prod?: boolean): void;
|
|
71
|
+
withEnv(options: rollup.RollupOptions, virtual?: boolean): void;
|
|
72
|
+
increaseVersion(release: string): Promise<void>;
|
|
73
|
+
getPackage(): Promise<Record<string, any>>;
|
|
74
|
+
createClient(key: any, cert: any, pkg: any, index: string, inject: boolean): rollup.Plugin;
|
|
75
|
+
createServer(input: string[]): rollup.Plugin;
|
|
76
|
+
}
|