@ionic/react 7.5.4-dev.11699022585.1a5dc61d → 7.5.4-dev.11699031793.11a4baba
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/LICENSE +21 -0
- package/dist/index.js.map +1 -1
- package/dist/types/components/IonApp.d.ts +1 -1
- package/dist/types/components/IonRouterContext.d.ts +1 -1
- package/dist/types/components/IonRouterOutlet.d.ts +1 -1
- package/dist/types/components/__tests__/utils.spec.d.ts +1 -1
- package/dist/types/components/hrefprops.d.ts +1 -1
- package/dist/types/components/navigation/IonBackButton.d.ts +1 -1
- package/dist/types/components/navigation/IonTabBar.d.ts +1 -1
- package/dist/types/components/navigation/IonTabButton.d.ts +1 -1
- package/dist/types/components/navigation/IonTabs.d.ts +1 -1
- package/dist/types/components/react-component-lib/utils/index.d.ts +2 -2
- package/dist/types/components/utils/index.d.ts +2 -2
- package/dist/types/hooks/useIonActionSheet.d.ts +1 -1
- package/dist/types/hooks/useIonAlert.d.ts +1 -1
- package/dist/types/hooks/useIonLoading.d.ts +1 -1
- package/dist/types/hooks/useIonModal.d.ts +1 -1
- package/dist/types/hooks/useIonPicker.d.ts +1 -1
- package/dist/types/hooks/useIonPopover.d.ts +1 -1
- package/dist/types/hooks/useIonToast.d.ts +1 -1
- package/dist/types/models/ReactComponentOrElement.d.ts +1 -1
- package/dist/types/models/RouteAction.d.ts +1 -1
- package/dist/types/models/RouterDirection.d.ts +1 -1
- package/package.json +21 -21
- package/dist/types/hooks/__tests__/hooks.spec.d.ts +0 -0
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import type { IonContextInterface } from '../contexts/IonContext';
|
|
4
4
|
import type { ReactComponentOrElement } from '../models';
|
|
5
5
|
import type { IonicReactProps } from './IonicReactProps';
|
|
6
|
-
type Props = LocalJSX.IonApp & IonicReactProps & {
|
|
6
|
+
declare type Props = LocalJSX.IonApp & IonicReactProps & {
|
|
7
7
|
ref?: React.Ref<HTMLIonAppElement>;
|
|
8
8
|
};
|
|
9
9
|
export declare const IonApp: {
|
|
@@ -14,7 +14,7 @@ export declare const IonRouterContext: React.Context<IonRouterContextState>;
|
|
|
14
14
|
* A hook for more direct control over routing in an Ionic React application. Allows you to pass additional meta-data to the router before the call to the native router.
|
|
15
15
|
*/
|
|
16
16
|
export declare function useIonRouter(): UseIonRouterResult;
|
|
17
|
-
export type UseIonRouterResult = {
|
|
17
|
+
export declare type UseIonRouterResult = {
|
|
18
18
|
/**
|
|
19
19
|
* @deprecated - Use goBack instead
|
|
20
20
|
* @param animationBuilder - Optional - A custom transition animation to use
|
|
@@ -5,4 +5,4 @@ export declare const IonRouterOutlet: React.ForwardRefExoticComponent<Pick<Local
|
|
|
5
5
|
basePath?: string | undefined;
|
|
6
6
|
ref?: React.Ref<any> | undefined;
|
|
7
7
|
ionPage?: boolean | undefined;
|
|
8
|
-
} & IonicReactProps & Omit<React.HTMLAttributes<HTMLIonRouterOutletElement>, "style">, "
|
|
8
|
+
} & IonicReactProps & Omit<React.HTMLAttributes<HTMLIonRouterOutletElement>, "style">, "children" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof IonicReactProps | keyof LocalJSX.IonRouterOutlet | "basePath" | "ionPage"> & React.RefAttributes<HTMLIonRouterOutletElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import '@testing-library/jest-dom
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AnimationBuilder } from '@ionic/core/components';
|
|
2
2
|
import type { RouterOptions } from '../models';
|
|
3
3
|
import type { RouterDirection } from '../models/RouterDirection';
|
|
4
|
-
export type HrefProps<T> = Omit<T, 'routerDirection'> & {
|
|
4
|
+
export declare type HrefProps<T> = Omit<T, 'routerDirection'> & {
|
|
5
5
|
routerLink?: string;
|
|
6
6
|
routerDirection?: RouterDirection;
|
|
7
7
|
routerOptions?: RouterOptions;
|
|
@@ -2,7 +2,7 @@ import type { JSX as LocalJSX } from '@ionic/core/components';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { NavContext } from '../../contexts/NavContext';
|
|
4
4
|
import type { IonicReactProps } from '../IonicReactProps';
|
|
5
|
-
type Props = Omit<LocalJSX.IonBackButton, 'icon'> & IonicReactProps & {
|
|
5
|
+
declare type Props = Omit<LocalJSX.IonBackButton, 'icon'> & IonicReactProps & {
|
|
6
6
|
icon?: {
|
|
7
7
|
ios: string;
|
|
8
8
|
md: string;
|
|
@@ -8,7 +8,7 @@ export declare const IonTabBar: React.ForwardRefExoticComponent<LocalJSX.IonTabB
|
|
|
8
8
|
onIonTabsWillChange?: ((event: CustomEvent<{
|
|
9
9
|
tab: string;
|
|
10
10
|
}>) => void) | undefined;
|
|
11
|
-
slot?: "
|
|
11
|
+
slot?: "bottom" | "top" | undefined;
|
|
12
12
|
style?: {
|
|
13
13
|
[key: string]: string;
|
|
14
14
|
} | undefined;
|
|
@@ -2,7 +2,7 @@ import type { JSX as LocalJSX } from '@ionic/core/components';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { RouterOptions } from '../../models';
|
|
4
4
|
import type { IonicReactProps } from '../IonicReactProps';
|
|
5
|
-
type Props = LocalJSX.IonTabButton & IonicReactProps & {
|
|
5
|
+
declare type Props = LocalJSX.IonTabButton & IonicReactProps & {
|
|
6
6
|
routerOptions?: RouterOptions;
|
|
7
7
|
ref?: React.Ref<HTMLIonTabButtonElement>;
|
|
8
8
|
onClick?: (e: CustomEvent) => void;
|
|
@@ -9,7 +9,7 @@ declare global {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
type ChildFunction = (ionTabContext: IonTabsContextState) => React.ReactNode;
|
|
12
|
+
declare type ChildFunction = (ionTabContext: IonTabsContextState) => React.ReactNode;
|
|
13
13
|
interface Props extends LocalJSX.IonTabs {
|
|
14
14
|
className?: string;
|
|
15
15
|
children: ChildFunction | React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { StyleReactProps } from '../interfaces';
|
|
3
|
-
export type StencilReactExternalProps<PropType, ElementType> = PropType & Omit<React.HTMLAttributes<ElementType>, 'style'> & StyleReactProps;
|
|
4
|
-
export type StencilReactForwardedRef<T> = ((instance: T | null) => void) | React.MutableRefObject<T | null> | null;
|
|
3
|
+
export declare type StencilReactExternalProps<PropType, ElementType> = PropType & Omit<React.HTMLAttributes<ElementType>, 'style'> & StyleReactProps;
|
|
4
|
+
export declare type StencilReactForwardedRef<T> = ((instance: T | null) => void) | React.MutableRefObject<T | null> | null;
|
|
5
5
|
export declare const setRef: (ref: StencilReactForwardedRef<any> | React.Ref<any> | undefined, value: any) => void;
|
|
6
6
|
export declare const mergeRefs: (...refs: (StencilReactForwardedRef<any> | React.Ref<any> | undefined)[]) => React.RefCallback<any>;
|
|
7
7
|
export declare const createForwardRef: <PropType, ElementType>(ReactComponent: any, displayName: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<PropType & Omit<React.HTMLAttributes<ElementType>, "style"> & StyleReactProps> & React.RefAttributes<ElementType>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Config as CoreConfig, Platforms } from '@ionic/core/components';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { IonicReactProps } from '../IonicReactProps';
|
|
4
|
-
export type IonicReactExternalProps<PropType, ElementType> = PropType & Omit<React.HTMLAttributes<ElementType>, 'style'> & IonicReactProps;
|
|
4
|
+
export declare type IonicReactExternalProps<PropType, ElementType> = PropType & Omit<React.HTMLAttributes<ElementType>, 'style'> & IonicReactProps;
|
|
5
5
|
export declare const createForwardRef: <PropType, ElementType>(ReactComponent: any, displayName: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<PropType & Omit<React.HTMLAttributes<ElementType>, "style"> & IonicReactProps> & React.RefAttributes<ElementType>>;
|
|
6
6
|
export declare const isPlatform: (platform: Platforms) => boolean;
|
|
7
|
-
export declare const getPlatforms: () => ("
|
|
7
|
+
export declare const getPlatforms: () => ("ipad" | "iphone" | "ios" | "android" | "phablet" | "tablet" | "cordova" | "capacitor" | "electron" | "pwa" | "mobile" | "mobileweb" | "desktop" | "hybrid")[];
|
|
8
8
|
export declare const getConfig: () => CoreConfig | null;
|
|
@@ -5,7 +5,7 @@ import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
|
5
5
|
* @returns Returns the present and dismiss methods in an array
|
|
6
6
|
*/
|
|
7
7
|
export declare function useIonActionSheet(): UseIonActionSheetResult;
|
|
8
|
-
export type UseIonActionSheetResult = [
|
|
8
|
+
export declare type UseIonActionSheetResult = [
|
|
9
9
|
{
|
|
10
10
|
/**
|
|
11
11
|
* Presents the action sheet
|
|
@@ -5,7 +5,7 @@ import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
|
5
5
|
* @returns Returns the present and dismiss methods in an array
|
|
6
6
|
*/
|
|
7
7
|
export declare function useIonAlert(): UseIonAlertResult;
|
|
8
|
-
export type UseIonAlertResult = [
|
|
8
|
+
export declare type UseIonAlertResult = [
|
|
9
9
|
{
|
|
10
10
|
/**
|
|
11
11
|
* Presents the alert
|
|
@@ -5,7 +5,7 @@ import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
|
5
5
|
* @returns Returns the present and dismiss methods in an array
|
|
6
6
|
*/
|
|
7
7
|
export declare function useIonLoading(): UseIonLoadingResult;
|
|
8
|
-
export type UseIonLoadingResult = [
|
|
8
|
+
export declare type UseIonLoadingResult = [
|
|
9
9
|
{
|
|
10
10
|
/**
|
|
11
11
|
* Presents the loading indicator
|
|
@@ -8,7 +8,7 @@ import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
|
8
8
|
* @returns Returns the present and dismiss methods in an array
|
|
9
9
|
*/
|
|
10
10
|
export declare function useIonModal(component: ReactComponentOrElement, componentProps?: any): UseIonModalResult;
|
|
11
|
-
export type UseIonModalResult = [
|
|
11
|
+
export declare type UseIonModalResult = [
|
|
12
12
|
(options?: Omit<ModalOptions, 'component' | 'componentProps'> & HookOverlayOptions) => void,
|
|
13
13
|
/**
|
|
14
14
|
* Dismisses the modal
|
|
@@ -5,7 +5,7 @@ import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
|
5
5
|
* @returns Returns the present and dismiss methods in an array
|
|
6
6
|
*/
|
|
7
7
|
export declare function useIonPicker(): UseIonPickerResult;
|
|
8
|
-
export type UseIonPickerResult = [
|
|
8
|
+
export declare type UseIonPickerResult = [
|
|
9
9
|
{
|
|
10
10
|
/**
|
|
11
11
|
* Presents the picker
|
|
@@ -8,7 +8,7 @@ import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
|
8
8
|
* @returns Returns the present and dismiss methods in an array
|
|
9
9
|
*/
|
|
10
10
|
export declare function useIonPopover(component: ReactComponentOrElement, componentProps?: any): UseIonPopoverResult;
|
|
11
|
-
export type UseIonPopoverResult = [
|
|
11
|
+
export declare type UseIonPopoverResult = [
|
|
12
12
|
(options?: Omit<PopoverOptions, 'component' | 'componentProps'> & HookOverlayOptions) => void,
|
|
13
13
|
/**
|
|
14
14
|
* Dismisses the popover
|
|
@@ -5,7 +5,7 @@ import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
|
5
5
|
* @returns Returns the present and dismiss methods in an array
|
|
6
6
|
*/
|
|
7
7
|
export declare function useIonToast(): UseIonToastResult;
|
|
8
|
-
export type UseIonToastResult = [
|
|
8
|
+
export declare type UseIonToastResult = [
|
|
9
9
|
{
|
|
10
10
|
/**
|
|
11
11
|
* Presents the toast
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
export type ReactComponentOrElement = React.ComponentClass<any, any> | React.FC<any> | JSX.Element;
|
|
2
|
+
export declare type ReactComponentOrElement = React.ComponentClass<any, any> | React.FC<any> | JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type RouteAction = 'push' | 'replace' | 'pop';
|
|
1
|
+
export declare type RouteAction = 'push' | 'replace' | 'pop';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type RouterDirection = 'forward' | 'back' | 'root' | 'none';
|
|
1
|
+
export declare type RouterDirection = 'forward' | 'back' | 'root' | 'none';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/react",
|
|
3
|
-
"version": "7.5.4-dev.
|
|
3
|
+
"version": "7.5.4-dev.11699031793.11a4baba",
|
|
4
4
|
"description": "React specific wrapper for @ionic/core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ionic",
|
|
@@ -19,20 +19,6 @@
|
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "git+https://github.com/ionic-team/ionic-framework.git"
|
|
21
21
|
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"build": "npm run clean && npm run copy && npm run compile",
|
|
24
|
-
"clean": "rimraf dist && rimraf dist-transpiled && rimraf routing",
|
|
25
|
-
"compile": "npm run tsc && rollup -c",
|
|
26
|
-
"eslint": "eslint src",
|
|
27
|
-
"prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"",
|
|
28
|
-
"lint": "npm run eslint && npm run prettier -- --write --cache",
|
|
29
|
-
"lint.fix": "npm run eslint -- --fix && npm run prettier -- --write --cache",
|
|
30
|
-
"tsc": "tsc -p .",
|
|
31
|
-
"copy": "node scripts/copy.js",
|
|
32
|
-
"test.spec": "jest --ci",
|
|
33
|
-
"test.treeshake": "node scripts/treeshaking.js dist/index.esm.js",
|
|
34
|
-
"sync": "sh ./scripts/sync.sh"
|
|
35
|
-
},
|
|
36
22
|
"main": "dist/index.js",
|
|
37
23
|
"types": "dist/types/index.d.ts",
|
|
38
24
|
"files": [
|
|
@@ -40,8 +26,8 @@
|
|
|
40
26
|
"css/"
|
|
41
27
|
],
|
|
42
28
|
"dependencies": {
|
|
43
|
-
"@ionic/core": "7.5.4-dev.
|
|
44
|
-
"ionicons": "^7.
|
|
29
|
+
"@ionic/core": "7.5.4-dev.11699031793.11a4baba",
|
|
30
|
+
"ionicons": "^7.0.0",
|
|
45
31
|
"tslib": "*"
|
|
46
32
|
},
|
|
47
33
|
"peerDependencies": {
|
|
@@ -52,8 +38,9 @@
|
|
|
52
38
|
"@ionic/eslint-config": "^0.3.0",
|
|
53
39
|
"@ionic/prettier-config": "^2.0.0",
|
|
54
40
|
"@rollup/plugin-node-resolve": "^8.1.0",
|
|
41
|
+
"@rollup/plugin-typescript": "^11.1.5",
|
|
55
42
|
"@rollup/plugin-virtual": "^2.0.3",
|
|
56
|
-
"@testing-library/jest-dom": "^
|
|
43
|
+
"@testing-library/jest-dom": "^6.1.4",
|
|
57
44
|
"@testing-library/react": "^11.2.2",
|
|
58
45
|
"@testing-library/react-hooks": "^7.0.1",
|
|
59
46
|
"@types/jest": "^26.0.15",
|
|
@@ -65,6 +52,7 @@
|
|
|
65
52
|
"eslint": "^7.32.0",
|
|
66
53
|
"fs-extra": "^9.0.1",
|
|
67
54
|
"jest": "^26.6.3",
|
|
55
|
+
"jest-environment-jsdom": "^26.6.0",
|
|
68
56
|
"np": "^6.4.0",
|
|
69
57
|
"prettier": "^2.8.3",
|
|
70
58
|
"react": "^16.9.0",
|
|
@@ -83,7 +71,6 @@
|
|
|
83
71
|
"testPathIgnorePatterns": [
|
|
84
72
|
"cypress",
|
|
85
73
|
"node_modules",
|
|
86
|
-
"dist-transpiled",
|
|
87
74
|
"dist",
|
|
88
75
|
"test/base/*",
|
|
89
76
|
"test/apps/*",
|
|
@@ -93,5 +80,18 @@
|
|
|
93
80
|
"<rootDir>"
|
|
94
81
|
]
|
|
95
82
|
},
|
|
96
|
-
"prettier": "@ionic/prettier-config"
|
|
97
|
-
|
|
83
|
+
"prettier": "@ionic/prettier-config",
|
|
84
|
+
"scripts": {
|
|
85
|
+
"build": "pnpm run clean && pnpm run copy && pnpm run compile",
|
|
86
|
+
"build.watch": "pnpm run compile --watch",
|
|
87
|
+
"clean": "rimraf dist && rimraf routing",
|
|
88
|
+
"compile": "rollup -c",
|
|
89
|
+
"eslint": "eslint src",
|
|
90
|
+
"prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"",
|
|
91
|
+
"lint": "pnpm run eslint && pnpm run prettier --write --cache",
|
|
92
|
+
"lint.fix": "pnpm run eslint --fix && pnpm run prettier --write --cache",
|
|
93
|
+
"copy": "node scripts/copy.js",
|
|
94
|
+
"test.spec": "jest --ci",
|
|
95
|
+
"test.treeshake": "node scripts/treeshaking.js dist/index.esm.js"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
File without changes
|