@fluffjs/cli 0.0.1 → 0.0.2
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/package.json +3 -3
- package/types/FluffConfig.d.ts +29 -0
- package/types/FluffConfig.js +24 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluffjs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"**/*.js",
|
|
21
|
+
"**/*.d.ts",
|
|
22
22
|
"!*.tsbuildinfo"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface BundleOptions {
|
|
2
|
+
minify?: boolean;
|
|
3
|
+
splitting?: boolean;
|
|
4
|
+
target?: string;
|
|
5
|
+
gzip?: boolean;
|
|
6
|
+
external?: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface ServeOptions {
|
|
9
|
+
port?: number;
|
|
10
|
+
host?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface FluffTarget {
|
|
13
|
+
name: string;
|
|
14
|
+
srcDir: string;
|
|
15
|
+
outDir: string;
|
|
16
|
+
entryPoint?: string;
|
|
17
|
+
indexHtml?: string;
|
|
18
|
+
components: string[];
|
|
19
|
+
assets?: string[];
|
|
20
|
+
bundle?: BundleOptions;
|
|
21
|
+
serve?: ServeOptions;
|
|
22
|
+
}
|
|
23
|
+
export interface FluffConfig {
|
|
24
|
+
version: string;
|
|
25
|
+
targets: Record<string, FluffTarget>;
|
|
26
|
+
defaultTarget?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const DEFAULT_CONFIG: FluffConfig;
|
|
29
|
+
//# sourceMappingURL=FluffConfig.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const DEFAULT_CONFIG = {
|
|
2
|
+
version: '1.0',
|
|
3
|
+
targets: {
|
|
4
|
+
app: {
|
|
5
|
+
name: 'app',
|
|
6
|
+
srcDir: 'src',
|
|
7
|
+
outDir: 'dist',
|
|
8
|
+
entryPoint: 'main.ts',
|
|
9
|
+
indexHtml: 'index.html',
|
|
10
|
+
components: ['**/*.component.ts'],
|
|
11
|
+
assets: ['**/*.html', '**/*.css'],
|
|
12
|
+
bundle: {
|
|
13
|
+
minify: true,
|
|
14
|
+
gzip: true,
|
|
15
|
+
target: 'es2022'
|
|
16
|
+
},
|
|
17
|
+
serve: {
|
|
18
|
+
port: 3000,
|
|
19
|
+
host: 'localhost'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultTarget: 'app'
|
|
24
|
+
};
|