@powerlines/plugin-date 0.12.56 → 0.12.58
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 +8 -2
- package/dist/components/date-fns.cjs +1 -519
- package/dist/components/date-fns.mjs +1 -0
- package/dist/components/dayjs.cjs +1 -464
- package/dist/components/dayjs.mjs +1 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.mjs +1 -0
- package/dist/components/luxon.cjs +1 -468
- package/dist/components/luxon.mjs +1 -0
- package/dist/components/moment.cjs +1 -454
- package/dist/components/moment.mjs +1 -0
- package/dist/components-MTvNCZDU.mjs +1 -0
- package/dist/{components/date-fns.js → date-fns-CY0chrAO.cjs} +5 -11
- package/dist/date-fns-e9ZSXC-n.mjs +513 -0
- package/dist/{components/dayjs.js → dayjs-C8RNvs_i.cjs} +4 -10
- package/dist/dayjs-DdpR-Gm_.mjs +458 -0
- package/dist/file-header-CL5ggH4h.cjs +10 -0
- package/dist/file-header-DOeykm47.mjs +10 -0
- package/dist/index.cjs +66 -6
- package/dist/index.mjs +64 -0
- package/dist/{components/luxon.js → luxon-C4TR9kDJ.mjs} +4 -10
- package/dist/luxon-oeMoLSAd.cjs +462 -0
- package/dist/{components/moment.js → moment-D7ZhINWA.mjs} +5 -11
- package/dist/moment-ZKt5-ae-.cjs +448 -0
- package/dist/plugin-G4qbpIjB.mjs +1 -0
- package/dist/runtime-DztkBZpw.cjs +0 -0
- package/dist/runtime-cDYyRPa0.mjs +1 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +1 -1
- package/dist/types/plugin.mjs +1 -0
- package/dist/types/runtime.cjs +1 -1
- package/dist/types/runtime.mjs +1 -0
- package/dist/types-C5ggNT4K.mjs +1 -0
- package/dist/types-CKPddlfS.cjs +0 -0
- package/package.json +39 -28
- package/dist/chunk-FBBMZ4NC.cjs +0 -7
- package/dist/chunk-UCUR73HG.js +0 -7
- package/dist/components/date-fns.d.cts +0 -38
- package/dist/components/date-fns.d.ts +0 -38
- package/dist/components/dayjs.d.cts +0 -38
- package/dist/components/dayjs.d.ts +0 -38
- package/dist/components/index.d.cts +0 -32
- package/dist/components/index.d.ts +0 -32
- package/dist/components/index.js +0 -1
- package/dist/components/luxon.d.cts +0 -38
- package/dist/components/luxon.d.ts +0 -38
- package/dist/components/moment.d.cts +0 -38
- package/dist/components/moment.d.ts +0 -38
- package/dist/index.d.cts +0 -41
- package/dist/index.d.ts +0 -41
- package/dist/index.js +0 -7
- package/dist/plugin-CSk7OuX1.d.cts +0 -4121
- package/dist/plugin-CSk7OuX1.d.ts +0 -4121
- package/dist/types/index.d.cts +0 -29
- package/dist/types/index.d.ts +0 -29
- package/dist/types/index.js +0 -1
- package/dist/types/plugin.d.cts +0 -28
- package/dist/types/plugin.d.ts +0 -28
- package/dist/types/runtime.d.cts +0 -710
- package/dist/types/runtime.d.ts +0 -710
- /package/dist/{types/plugin.js → components-DTkri-mp.cjs} +0 -0
- /package/dist/{types/runtime.js → plugin-OjUZLLkc.cjs} +0 -0
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { d as DatePluginContext } from '../plugin-CSk7OuX1.js';
|
|
2
|
-
import '@alloy-js/core/jsx-runtime';
|
|
3
|
-
import '@deepkit/type';
|
|
4
|
-
import '@stryke/capnp';
|
|
5
|
-
import '@babel/core';
|
|
6
|
-
import '@storm-software/build-tools/types';
|
|
7
|
-
import '@storm-software/config-tools/types';
|
|
8
|
-
import '@storm-software/config/types';
|
|
9
|
-
import '@stryke/types/base';
|
|
10
|
-
import '@stryke/types/configuration';
|
|
11
|
-
import '@stryke/types/file';
|
|
12
|
-
import 'vite';
|
|
13
|
-
import '@babel/helper-plugin-utils';
|
|
14
|
-
import '@stryke/env/get-env-paths';
|
|
15
|
-
import '@stryke/http/fetch';
|
|
16
|
-
import '@stryke/types/package-json';
|
|
17
|
-
import 'jiti';
|
|
18
|
-
import 'magic-string';
|
|
19
|
-
import 'oxc-parser';
|
|
20
|
-
import 'semver';
|
|
21
|
-
import 'ts-morph';
|
|
22
|
-
import 'undici';
|
|
23
|
-
import 'unplugin';
|
|
24
|
-
import '@stryke/fs/resolve';
|
|
25
|
-
import '@stryke/types/tsconfig';
|
|
26
|
-
import 'typescript';
|
|
27
|
-
import '@stryke/types/array';
|
|
28
|
-
import '@stryke/env/types';
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Generates the Powerlines configuration file.
|
|
32
|
-
*
|
|
33
|
-
* @param context - The build context containing runtime information.
|
|
34
|
-
* @returns A string representing the configuration file content.
|
|
35
|
-
*/
|
|
36
|
-
declare function dateFnsModule(context: DatePluginContext): string;
|
|
37
|
-
|
|
38
|
-
export { dateFnsModule };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { d as DatePluginContext } from '../plugin-CSk7OuX1.cjs';
|
|
2
|
-
import '@alloy-js/core/jsx-runtime';
|
|
3
|
-
import '@deepkit/type';
|
|
4
|
-
import '@stryke/capnp';
|
|
5
|
-
import '@babel/core';
|
|
6
|
-
import '@storm-software/build-tools/types';
|
|
7
|
-
import '@storm-software/config-tools/types';
|
|
8
|
-
import '@storm-software/config/types';
|
|
9
|
-
import '@stryke/types/base';
|
|
10
|
-
import '@stryke/types/configuration';
|
|
11
|
-
import '@stryke/types/file';
|
|
12
|
-
import 'vite';
|
|
13
|
-
import '@babel/helper-plugin-utils';
|
|
14
|
-
import '@stryke/env/get-env-paths';
|
|
15
|
-
import '@stryke/http/fetch';
|
|
16
|
-
import '@stryke/types/package-json';
|
|
17
|
-
import 'jiti';
|
|
18
|
-
import 'magic-string';
|
|
19
|
-
import 'oxc-parser';
|
|
20
|
-
import 'semver';
|
|
21
|
-
import 'ts-morph';
|
|
22
|
-
import 'undici';
|
|
23
|
-
import 'unplugin';
|
|
24
|
-
import '@stryke/fs/resolve';
|
|
25
|
-
import '@stryke/types/tsconfig';
|
|
26
|
-
import 'typescript';
|
|
27
|
-
import '@stryke/types/array';
|
|
28
|
-
import '@stryke/env/types';
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Generates the Powerlines configuration file.
|
|
32
|
-
*
|
|
33
|
-
* @param context - The build context containing runtime information.
|
|
34
|
-
* @returns A string representing the configuration file content.
|
|
35
|
-
*/
|
|
36
|
-
declare function dayjsModule(context: DatePluginContext): string;
|
|
37
|
-
|
|
38
|
-
export { dayjsModule };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { d as DatePluginContext } from '../plugin-CSk7OuX1.js';
|
|
2
|
-
import '@alloy-js/core/jsx-runtime';
|
|
3
|
-
import '@deepkit/type';
|
|
4
|
-
import '@stryke/capnp';
|
|
5
|
-
import '@babel/core';
|
|
6
|
-
import '@storm-software/build-tools/types';
|
|
7
|
-
import '@storm-software/config-tools/types';
|
|
8
|
-
import '@storm-software/config/types';
|
|
9
|
-
import '@stryke/types/base';
|
|
10
|
-
import '@stryke/types/configuration';
|
|
11
|
-
import '@stryke/types/file';
|
|
12
|
-
import 'vite';
|
|
13
|
-
import '@babel/helper-plugin-utils';
|
|
14
|
-
import '@stryke/env/get-env-paths';
|
|
15
|
-
import '@stryke/http/fetch';
|
|
16
|
-
import '@stryke/types/package-json';
|
|
17
|
-
import 'jiti';
|
|
18
|
-
import 'magic-string';
|
|
19
|
-
import 'oxc-parser';
|
|
20
|
-
import 'semver';
|
|
21
|
-
import 'ts-morph';
|
|
22
|
-
import 'undici';
|
|
23
|
-
import 'unplugin';
|
|
24
|
-
import '@stryke/fs/resolve';
|
|
25
|
-
import '@stryke/types/tsconfig';
|
|
26
|
-
import 'typescript';
|
|
27
|
-
import '@stryke/types/array';
|
|
28
|
-
import '@stryke/env/types';
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Generates the Powerlines configuration file.
|
|
32
|
-
*
|
|
33
|
-
* @param context - The build context containing runtime information.
|
|
34
|
-
* @returns A string representing the configuration file content.
|
|
35
|
-
*/
|
|
36
|
-
declare function dayjsModule(context: DatePluginContext): string;
|
|
37
|
-
|
|
38
|
-
export { dayjsModule };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export { dateFnsModule } from './date-fns.cjs';
|
|
2
|
-
export { dayjsModule } from './dayjs.cjs';
|
|
3
|
-
export { luxonModule } from './luxon.cjs';
|
|
4
|
-
export { momentModule } from './moment.cjs';
|
|
5
|
-
import '../plugin-CSk7OuX1.cjs';
|
|
6
|
-
import '@alloy-js/core/jsx-runtime';
|
|
7
|
-
import '@deepkit/type';
|
|
8
|
-
import '@stryke/capnp';
|
|
9
|
-
import '@babel/core';
|
|
10
|
-
import '@storm-software/build-tools/types';
|
|
11
|
-
import '@storm-software/config-tools/types';
|
|
12
|
-
import '@storm-software/config/types';
|
|
13
|
-
import '@stryke/types/base';
|
|
14
|
-
import '@stryke/types/configuration';
|
|
15
|
-
import '@stryke/types/file';
|
|
16
|
-
import 'vite';
|
|
17
|
-
import '@babel/helper-plugin-utils';
|
|
18
|
-
import '@stryke/env/get-env-paths';
|
|
19
|
-
import '@stryke/http/fetch';
|
|
20
|
-
import '@stryke/types/package-json';
|
|
21
|
-
import 'jiti';
|
|
22
|
-
import 'magic-string';
|
|
23
|
-
import 'oxc-parser';
|
|
24
|
-
import 'semver';
|
|
25
|
-
import 'ts-morph';
|
|
26
|
-
import 'undici';
|
|
27
|
-
import 'unplugin';
|
|
28
|
-
import '@stryke/fs/resolve';
|
|
29
|
-
import '@stryke/types/tsconfig';
|
|
30
|
-
import 'typescript';
|
|
31
|
-
import '@stryke/types/array';
|
|
32
|
-
import '@stryke/env/types';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export { dateFnsModule } from './date-fns.js';
|
|
2
|
-
export { dayjsModule } from './dayjs.js';
|
|
3
|
-
export { luxonModule } from './luxon.js';
|
|
4
|
-
export { momentModule } from './moment.js';
|
|
5
|
-
import '../plugin-CSk7OuX1.js';
|
|
6
|
-
import '@alloy-js/core/jsx-runtime';
|
|
7
|
-
import '@deepkit/type';
|
|
8
|
-
import '@stryke/capnp';
|
|
9
|
-
import '@babel/core';
|
|
10
|
-
import '@storm-software/build-tools/types';
|
|
11
|
-
import '@storm-software/config-tools/types';
|
|
12
|
-
import '@storm-software/config/types';
|
|
13
|
-
import '@stryke/types/base';
|
|
14
|
-
import '@stryke/types/configuration';
|
|
15
|
-
import '@stryke/types/file';
|
|
16
|
-
import 'vite';
|
|
17
|
-
import '@babel/helper-plugin-utils';
|
|
18
|
-
import '@stryke/env/get-env-paths';
|
|
19
|
-
import '@stryke/http/fetch';
|
|
20
|
-
import '@stryke/types/package-json';
|
|
21
|
-
import 'jiti';
|
|
22
|
-
import 'magic-string';
|
|
23
|
-
import 'oxc-parser';
|
|
24
|
-
import 'semver';
|
|
25
|
-
import 'ts-morph';
|
|
26
|
-
import 'undici';
|
|
27
|
-
import 'unplugin';
|
|
28
|
-
import '@stryke/fs/resolve';
|
|
29
|
-
import '@stryke/types/tsconfig';
|
|
30
|
-
import 'typescript';
|
|
31
|
-
import '@stryke/types/array';
|
|
32
|
-
import '@stryke/env/types';
|
package/dist/components/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export*from'./date-fns';export*from'./dayjs';export*from'./luxon';export*from'./moment';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { d as DatePluginContext } from '../plugin-CSk7OuX1.cjs';
|
|
2
|
-
import '@alloy-js/core/jsx-runtime';
|
|
3
|
-
import '@deepkit/type';
|
|
4
|
-
import '@stryke/capnp';
|
|
5
|
-
import '@babel/core';
|
|
6
|
-
import '@storm-software/build-tools/types';
|
|
7
|
-
import '@storm-software/config-tools/types';
|
|
8
|
-
import '@storm-software/config/types';
|
|
9
|
-
import '@stryke/types/base';
|
|
10
|
-
import '@stryke/types/configuration';
|
|
11
|
-
import '@stryke/types/file';
|
|
12
|
-
import 'vite';
|
|
13
|
-
import '@babel/helper-plugin-utils';
|
|
14
|
-
import '@stryke/env/get-env-paths';
|
|
15
|
-
import '@stryke/http/fetch';
|
|
16
|
-
import '@stryke/types/package-json';
|
|
17
|
-
import 'jiti';
|
|
18
|
-
import 'magic-string';
|
|
19
|
-
import 'oxc-parser';
|
|
20
|
-
import 'semver';
|
|
21
|
-
import 'ts-morph';
|
|
22
|
-
import 'undici';
|
|
23
|
-
import 'unplugin';
|
|
24
|
-
import '@stryke/fs/resolve';
|
|
25
|
-
import '@stryke/types/tsconfig';
|
|
26
|
-
import 'typescript';
|
|
27
|
-
import '@stryke/types/array';
|
|
28
|
-
import '@stryke/env/types';
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Generates the Powerlines configuration file.
|
|
32
|
-
*
|
|
33
|
-
* @param context - The build context containing runtime information.
|
|
34
|
-
* @returns A string representing the configuration file content.
|
|
35
|
-
*/
|
|
36
|
-
declare function luxonModule(context: DatePluginContext): string;
|
|
37
|
-
|
|
38
|
-
export { luxonModule };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { d as DatePluginContext } from '../plugin-CSk7OuX1.js';
|
|
2
|
-
import '@alloy-js/core/jsx-runtime';
|
|
3
|
-
import '@deepkit/type';
|
|
4
|
-
import '@stryke/capnp';
|
|
5
|
-
import '@babel/core';
|
|
6
|
-
import '@storm-software/build-tools/types';
|
|
7
|
-
import '@storm-software/config-tools/types';
|
|
8
|
-
import '@storm-software/config/types';
|
|
9
|
-
import '@stryke/types/base';
|
|
10
|
-
import '@stryke/types/configuration';
|
|
11
|
-
import '@stryke/types/file';
|
|
12
|
-
import 'vite';
|
|
13
|
-
import '@babel/helper-plugin-utils';
|
|
14
|
-
import '@stryke/env/get-env-paths';
|
|
15
|
-
import '@stryke/http/fetch';
|
|
16
|
-
import '@stryke/types/package-json';
|
|
17
|
-
import 'jiti';
|
|
18
|
-
import 'magic-string';
|
|
19
|
-
import 'oxc-parser';
|
|
20
|
-
import 'semver';
|
|
21
|
-
import 'ts-morph';
|
|
22
|
-
import 'undici';
|
|
23
|
-
import 'unplugin';
|
|
24
|
-
import '@stryke/fs/resolve';
|
|
25
|
-
import '@stryke/types/tsconfig';
|
|
26
|
-
import 'typescript';
|
|
27
|
-
import '@stryke/types/array';
|
|
28
|
-
import '@stryke/env/types';
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Generates the Powerlines configuration file.
|
|
32
|
-
*
|
|
33
|
-
* @param context - The build context containing runtime information.
|
|
34
|
-
* @returns A string representing the configuration file content.
|
|
35
|
-
*/
|
|
36
|
-
declare function luxonModule(context: DatePluginContext): string;
|
|
37
|
-
|
|
38
|
-
export { luxonModule };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { d as DatePluginContext } from '../plugin-CSk7OuX1.cjs';
|
|
2
|
-
import '@alloy-js/core/jsx-runtime';
|
|
3
|
-
import '@deepkit/type';
|
|
4
|
-
import '@stryke/capnp';
|
|
5
|
-
import '@babel/core';
|
|
6
|
-
import '@storm-software/build-tools/types';
|
|
7
|
-
import '@storm-software/config-tools/types';
|
|
8
|
-
import '@storm-software/config/types';
|
|
9
|
-
import '@stryke/types/base';
|
|
10
|
-
import '@stryke/types/configuration';
|
|
11
|
-
import '@stryke/types/file';
|
|
12
|
-
import 'vite';
|
|
13
|
-
import '@babel/helper-plugin-utils';
|
|
14
|
-
import '@stryke/env/get-env-paths';
|
|
15
|
-
import '@stryke/http/fetch';
|
|
16
|
-
import '@stryke/types/package-json';
|
|
17
|
-
import 'jiti';
|
|
18
|
-
import 'magic-string';
|
|
19
|
-
import 'oxc-parser';
|
|
20
|
-
import 'semver';
|
|
21
|
-
import 'ts-morph';
|
|
22
|
-
import 'undici';
|
|
23
|
-
import 'unplugin';
|
|
24
|
-
import '@stryke/fs/resolve';
|
|
25
|
-
import '@stryke/types/tsconfig';
|
|
26
|
-
import 'typescript';
|
|
27
|
-
import '@stryke/types/array';
|
|
28
|
-
import '@stryke/env/types';
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Generates the Powerlines configuration file.
|
|
32
|
-
*
|
|
33
|
-
* @param context - The build context containing runtime information.
|
|
34
|
-
* @returns A string representing the configuration file content.
|
|
35
|
-
*/
|
|
36
|
-
declare function momentModule(context: DatePluginContext): string;
|
|
37
|
-
|
|
38
|
-
export { momentModule };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { d as DatePluginContext } from '../plugin-CSk7OuX1.js';
|
|
2
|
-
import '@alloy-js/core/jsx-runtime';
|
|
3
|
-
import '@deepkit/type';
|
|
4
|
-
import '@stryke/capnp';
|
|
5
|
-
import '@babel/core';
|
|
6
|
-
import '@storm-software/build-tools/types';
|
|
7
|
-
import '@storm-software/config-tools/types';
|
|
8
|
-
import '@storm-software/config/types';
|
|
9
|
-
import '@stryke/types/base';
|
|
10
|
-
import '@stryke/types/configuration';
|
|
11
|
-
import '@stryke/types/file';
|
|
12
|
-
import 'vite';
|
|
13
|
-
import '@babel/helper-plugin-utils';
|
|
14
|
-
import '@stryke/env/get-env-paths';
|
|
15
|
-
import '@stryke/http/fetch';
|
|
16
|
-
import '@stryke/types/package-json';
|
|
17
|
-
import 'jiti';
|
|
18
|
-
import 'magic-string';
|
|
19
|
-
import 'oxc-parser';
|
|
20
|
-
import 'semver';
|
|
21
|
-
import 'ts-morph';
|
|
22
|
-
import 'undici';
|
|
23
|
-
import 'unplugin';
|
|
24
|
-
import '@stryke/fs/resolve';
|
|
25
|
-
import '@stryke/types/tsconfig';
|
|
26
|
-
import 'typescript';
|
|
27
|
-
import '@stryke/types/array';
|
|
28
|
-
import '@stryke/env/types';
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Generates the Powerlines configuration file.
|
|
32
|
-
*
|
|
33
|
-
* @param context - The build context containing runtime information.
|
|
34
|
-
* @returns A string representing the configuration file content.
|
|
35
|
-
*/
|
|
36
|
-
declare function momentModule(context: DatePluginContext): string;
|
|
37
|
-
|
|
38
|
-
export { momentModule };
|
package/dist/index.d.cts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { a as DatePluginOptions, P as Plugin, d as DatePluginContext } from './plugin-CSk7OuX1.cjs';
|
|
2
|
-
export { D as DateLibraryType, c as DatePluginResolvedConfig, b as DatePluginUserConfig, _ as __ΩDateLibraryType, h as __ΩDatePluginContext, e as __ΩDatePluginOptions, g as __ΩDatePluginResolvedConfig, f as __ΩDatePluginUserConfig } from './plugin-CSk7OuX1.cjs';
|
|
3
|
-
export { dateFnsModule } from './components/date-fns.cjs';
|
|
4
|
-
export { dayjsModule } from './components/dayjs.cjs';
|
|
5
|
-
export { luxonModule } from './components/luxon.cjs';
|
|
6
|
-
export { momentModule } from './components/moment.cjs';
|
|
7
|
-
export { DateFormats, StormDateInterface, TimeUnit, __ΩDateFormats, __ΩStormDateInterface, __ΩTimeUnit } from './types/runtime.cjs';
|
|
8
|
-
import '@alloy-js/core/jsx-runtime';
|
|
9
|
-
import '@deepkit/type';
|
|
10
|
-
import '@stryke/capnp';
|
|
11
|
-
import '@babel/core';
|
|
12
|
-
import '@storm-software/build-tools/types';
|
|
13
|
-
import '@storm-software/config-tools/types';
|
|
14
|
-
import '@storm-software/config/types';
|
|
15
|
-
import '@stryke/types/base';
|
|
16
|
-
import '@stryke/types/configuration';
|
|
17
|
-
import '@stryke/types/file';
|
|
18
|
-
import 'vite';
|
|
19
|
-
import '@babel/helper-plugin-utils';
|
|
20
|
-
import '@stryke/env/get-env-paths';
|
|
21
|
-
import '@stryke/http/fetch';
|
|
22
|
-
import '@stryke/types/package-json';
|
|
23
|
-
import 'jiti';
|
|
24
|
-
import 'magic-string';
|
|
25
|
-
import 'oxc-parser';
|
|
26
|
-
import 'semver';
|
|
27
|
-
import 'ts-morph';
|
|
28
|
-
import 'undici';
|
|
29
|
-
import 'unplugin';
|
|
30
|
-
import '@stryke/fs/resolve';
|
|
31
|
-
import '@stryke/types/tsconfig';
|
|
32
|
-
import 'typescript';
|
|
33
|
-
import '@stryke/types/array';
|
|
34
|
-
import '@stryke/env/types';
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
38
|
-
*/
|
|
39
|
-
declare function plugin(options?: DatePluginOptions): Plugin<DatePluginContext>;
|
|
40
|
-
|
|
41
|
-
export { DatePluginContext, DatePluginOptions, plugin as default, plugin };
|
package/dist/index.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { a as DatePluginOptions, P as Plugin, d as DatePluginContext } from './plugin-CSk7OuX1.js';
|
|
2
|
-
export { D as DateLibraryType, c as DatePluginResolvedConfig, b as DatePluginUserConfig, _ as __ΩDateLibraryType, h as __ΩDatePluginContext, e as __ΩDatePluginOptions, g as __ΩDatePluginResolvedConfig, f as __ΩDatePluginUserConfig } from './plugin-CSk7OuX1.js';
|
|
3
|
-
export { dateFnsModule } from './components/date-fns.js';
|
|
4
|
-
export { dayjsModule } from './components/dayjs.js';
|
|
5
|
-
export { luxonModule } from './components/luxon.js';
|
|
6
|
-
export { momentModule } from './components/moment.js';
|
|
7
|
-
export { DateFormats, StormDateInterface, TimeUnit, __ΩDateFormats, __ΩStormDateInterface, __ΩTimeUnit } from './types/runtime.js';
|
|
8
|
-
import '@alloy-js/core/jsx-runtime';
|
|
9
|
-
import '@deepkit/type';
|
|
10
|
-
import '@stryke/capnp';
|
|
11
|
-
import '@babel/core';
|
|
12
|
-
import '@storm-software/build-tools/types';
|
|
13
|
-
import '@storm-software/config-tools/types';
|
|
14
|
-
import '@storm-software/config/types';
|
|
15
|
-
import '@stryke/types/base';
|
|
16
|
-
import '@stryke/types/configuration';
|
|
17
|
-
import '@stryke/types/file';
|
|
18
|
-
import 'vite';
|
|
19
|
-
import '@babel/helper-plugin-utils';
|
|
20
|
-
import '@stryke/env/get-env-paths';
|
|
21
|
-
import '@stryke/http/fetch';
|
|
22
|
-
import '@stryke/types/package-json';
|
|
23
|
-
import 'jiti';
|
|
24
|
-
import 'magic-string';
|
|
25
|
-
import 'oxc-parser';
|
|
26
|
-
import 'semver';
|
|
27
|
-
import 'ts-morph';
|
|
28
|
-
import 'undici';
|
|
29
|
-
import 'unplugin';
|
|
30
|
-
import '@stryke/fs/resolve';
|
|
31
|
-
import '@stryke/types/tsconfig';
|
|
32
|
-
import 'typescript';
|
|
33
|
-
import '@stryke/types/array';
|
|
34
|
-
import '@stryke/env/types';
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
38
|
-
*/
|
|
39
|
-
declare function plugin(options?: DatePluginOptions): Plugin<DatePluginContext>;
|
|
40
|
-
|
|
41
|
-
export { DatePluginContext, DatePluginOptions, plugin as default, plugin };
|
package/dist/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-UCUR73HG.js';import n from'@powerlines/plugin-env';import {LogLevelLabel}from'@storm-software/config-tools/types';import a$1 from'defu';import {dateFnsModule}from'./components/date-fns';import {dayjsModule}from'./components/dayjs';import {luxonModule}from'./components/luxon';import {momentModule}from'./components/moment';export*from'./components';export*from'./types';/*****************************************
|
|
2
|
-
*
|
|
3
|
-
* ⚡ Built by Storm Software
|
|
4
|
-
*
|
|
5
|
-
*****************************************/
|
|
6
|
-
|
|
7
|
-
function f(i={}){return {name:"date",dependsOn:[n(i.env)],async config(){this.log(LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `date` build plugin.");const e={date:a$1(i,{type:"date-fns"})};return (!e.date.type||!["date-fns","dayjs","luxon","moment"].includes(e.date.type))&&(e.date.type&&this.log(LogLevelLabel.WARN,`Invalid date library type "${e.date.type}" specified. Defaulting to "date-fns".`),e.date.type="date-fns"),this.log(LogLevelLabel.DEBUG,`Using date library: ${e.date.type}`),e},async configResolved(){this.log(LogLevelLabel.TRACE,"Environment plugin configuration has been resolved for the Powerlines project."),this.dependencies[this.config.date.type]="latest";},async prepare(){this.log(LogLevelLabel.TRACE,"Preparing the Date runtime artifacts for the Powerlines project.");let e;switch(this.config.date.type){case "dayjs":e=dayjsModule;break;case "luxon":e=luxonModule;break;case "moment":e=momentModule;break;case "date-fns":default:e=dateFnsModule;break}await this.emitBuiltin(await Promise.resolve(e(this)),"date","date.ts");}}}a(f,"plugin");var E=f;export{E as default,f as plugin};
|