UNPKG

2.39 kBJavaScriptView Raw
1/* eslint max-len: 'off' */
2/**
3 * @typedef {Object} BuildConfig
4 * @property {Array<String>} resources List of glob patterns of files to add to the generated packages
5 * @property {Object} moduleContext Define the context of the provided modules. See: https://rollupjs.org/guide/en#context
6 * @property {Array<String>} polyfills List of modules to be injected as polyfills
7 * @property {Array<Object>} replaces List of replacements to apply to the sources. See: https://github.com/rollup/rollup-plugin-replace#options
8 * @property {Array<Sring>} babelExclude List of paths that won't be processed by babel
9 * @property {Object} targets Object specifying the browser targets. See: https://babeljs.io/docs/en/babel-preset-env#targets
10 */
11
12/**
13 * @typedef {Object} TestConfig
14 * @property {Array<String>} spec List of glob patterns for the test files of this project
15 */
16
17// Here we load the types from the platforms we know about. Fails gracefully if not installed.
18// This smoothen the autocomplete experience
19
20/**
21 * @typedef { import('@kano/kit-app-shell-android/types').AndroidConfig } AndroidConfig
22 * @typedef { import('@kano/kit-app-shell-android-legacy/types').AndroidLegacyConfig } AndroidLegacyConfig
23 * @typedef { import('@kano/kit-app-shell-ios/types').IOSConfig } IOSConfig
24 * @typedef { import('@kano/kit-app-shell-web/types').WebConfig } WebConfig
25 * @typedef { import('@kano/kit-app-shell-windows').WindowsConfig } WindowsConfig
26 * @typedef { import('@kano/kit-app-shell-windows-store').WindowsStoreConfig } WindowsStoreConfig
27 * @typedef { import('@kano/kit-app-shell-macos').MacOSConfig } MacOSConfig
28 * @typedef { import('@kano/kit-app-shell-kano').KanoConfig } KanoConfig
29 */
30
31/**
32 * @typedef {Object} KashConfig
33 * @property {AndroidConfig} android Android platform configuration
34 * @property {AndroidLegacyConfig} 'android-legacy' Android legacy platform configuration
35 * @property {IOSConfig} ios iOS platform configuration
36 * @property {WindowsConfig} windows Windows platform configuration
37 * @property {WindowsStoreConfig} 'windows-store' Windows Store platform configuration
38 * @property {MacOSConfig} macos macOS platform configuration
39 * @property {KanoConfig} kano KanoOS platform configuration
40 * @property {WebConfig} web Web platform configuration
41 * @property {BuildConfig} build Build options
42 * @property {TestConfig} test Test options
43 */
44
45export {};