| /expo/packages/@expo/config-plugins/src/utils/ |
| H A D | plugin-resolver.ts | 82 if (Array.isArray(plugin)) { 84 plugin.length > 0 && plugin.length < 3, 87 return plugin; 89 return [plugin, undefined]; 102 return plugin; 131 plugin: result, 151 plugin, 156 plugin: any; 161 if (plugin.default != null) { 162 plugin = plugin.default; [all …]
|
| /expo/packages/@expo/metro-config/src/transform-worker/ |
| H A D | postcss.ts | 83 const [plugin, options] = item; 85 if (typeof plugin === 'string') { 89 return plugin; 156 debug('load plugin:', plugin); 188 if (Array.isArray(plugin)) { 198 } else if (plugin && typeof plugin === 'function') { 201 plugin && 203 (typeof plugin[Object.keys(plugin)[0]] === 'object' || 204 typeof plugin[Object.keys(plugin)[0]] === 'boolean') && 205 plugin[Object.keys(plugin)[0]] !== null [all …]
|
| /expo/packages/@expo/metro-config/build/transform-worker/ |
| H A D | postcss.js | 108 const [plugin, options] = item; 109 if (typeof plugin === 'string') { 112 return plugin; 168 debug('load plugin:', plugin); 193 for (const plugin of plugins) { 194 if (Array.isArray(plugin)) { 195 const [name, options] = plugin; 200 } else if (plugin && typeof plugin === 'function') { 202 …plugin && Object.keys(plugin).length === 1 && (typeof plugin[Object.keys(plugin)[0]] === 'object' … 204 const options = plugin[name]; [all …]
|
| /expo/packages/@expo/cli/src/install/utils/ |
| H A D | autoAddConfigPlugins.ts | 27 return info.plugin; 51 for (const plugin of plugins) { constant 54 const [normal] = normalizeStaticPlugin(plugin); 84 const plugin = packageHasConfigPlugin(projectRoot, pkg); 86 debug(`Package "${pkg}" has plugin: ${!!plugin}` + (plugin ? ` (args: ${plugin.length})` : '')); 93 return !!plugin;
|
| /expo/packages/@expo/config-plugins/build/utils/ |
| H A D | plugin-resolver.js | 129 if (Array.isArray(plugin)) { 131 return plugin; 133 return [plugin, undefined]; 142 plugin 144 return plugin; 169 plugin: result, property 175 plugin, 194 plugin, field 199 if (plugin.default != null) { 200 plugin = plugin.default; [all …]
|
| H A D | plugin-resolver.d.ts | 8 export declare function normalizeStaticPlugin(plugin: StaticPlugin | ConfigPlugin | string): Static… 12 plugin: ConfigPlugin<unknown>; 28 export declare function resolveConfigPluginExport({ plugin, pluginFile, pluginReference, isPluginFi… 29 plugin: any;
|
| H A D | plugin-resolver.js.map | 1 …plugin-resolver.js","names":["_assert","data","_interopRequireDefault","require","_findUp","path",…
|
| /expo/packages/@expo/config-plugins/src/plugins/ |
| H A D | withRunOnce.ts | 12 plugin: ConfigPlugin<void>; 15 }> = (config, { plugin, name, version }) => { 24 return plugin(config); 33 plugin: ConfigPlugin<T>, 38 return withRunOnce(config, { plugin: (config) => plugin(config, props), name, version });
|
| /expo/packages/@expo/config-plugins/src/plugins/__tests__/ |
| H A D | withStaticPlugin-test.ts | 36 plugin: true, 42 plugin: [true], 48 plugin: {}, 64 plugin: ['', '', ''], 83 plugin: './my-plugin.js', 111 plugin: ['./my-plugin.js', { foobar: true }], 118 plugin: './beta', 145 plugin: ['./not-existing.js', { foobar: true }],
|
| H A D | mockMods.ts | 24 plugin, 28 plugin: ConfigPlugin; 33 return (await plugin(config as any)) as ExportedConfigWithProps<T>;
|
| /expo/packages/@expo/config-plugins/build/plugins/ |
| H A D | withRunOnce.js | 23 plugin, argument 37 return plugin(config); 46 function createRunOncePlugin(plugin, name, version) { argument 49 plugin: config => plugin(config, props),
|
| H A D | withRunOnce.js.map | 1 …plugin","name","version","getHistoryItem","addHistoryItem","exports","createRunOncePlugin","props"…
|
| /expo/packages/@expo/prebuild-config/src/ |
| H A D | getAutolinkedPackages.ts | 43 plugin: StaticPlugin | string 46 if (plugin === 'expo-dev-client') { 54 const pluginId = Array.isArray(plugin) ? plugin[0] : plugin;
|
| /expo/packages/expo-module-scripts/bin/ |
| H A D | expo-module-prepare | 14 if [[ -d plugin ]]; then 16 "$script_dir/expo-module-clean" plugin 17 "$script_dir/expo-module-build" plugin
|
| /expo/packages/@expo/prebuild-config/build/ |
| H A D | getAutolinkedPackages.js | 38 function shouldSkipAutoPlugin(config, plugin) { argument 41 if (plugin === 'expo-dev-client') { 49 const pluginId = Array.isArray(plugin) ? plugin[0] : plugin;
|
| /expo/packages/expo-build-properties/src/__tests__/ |
| H A D | withBuildProperties-test.ts | 44 plugin: withBuildProperties, 64 plugin: withBuildProperties, 84 plugin: withBuildProperties, 99 plugin: withBuildProperties, 116 plugin: withBuildProperties, 131 plugin: withBuildProperties, 151 plugin: withBuildProperties,
|
| H A D | mockMods.ts | 22 plugin, 27 plugin: ConfigPlugin<ConfigPluginProps>; 34 return (await plugin(config as any, pluginProps)) as ExportedConfigWithProps<T>;
|
| /expo/packages/expo-module-scripts/ |
| H A D | README.md | 89 ╰── plugin/ ➡️ All code related to the plugin 96 Create an `app.plugin.js` (the entry point for a config plugin): 139 - `yarn build plugin`: Build the plugin. 140 - `yarn clean plugin`: Delete the `plugin/build` folder. 141 - `yarn lint plugin`: Lint the `plugin/src` folder. 262 #### build plugin 264 Running `build plugin` builds the plugin source code in `plugin/src`. 285 #### lint plugin 287 Running `lint plugin` will lints the plugin source code in `plugin/src`. 293 #### clean plugin [all …]
|
| /expo/docs/pages/modules/ |
| H A D | config-plugin-and-native-module-tutorial.mdx | 2 title: 'Tutorial: Create a module with a config plugin' 3 sidebar_title: Create a module with a config plugin 117 ## 4. Creating a new config plugin 138 …plugin with this minimal boilerplate. This will create a **plugin** folder where we will write the… 142 ```json plugin/tsconfig.json 154 2. Create a **plugin/src/index.ts** file for our plugin: 156 ```typescript plugin/src/index.ts 160 console.log('my custom plugin'); 169 ```javascript app.plugin.js 179 "plugins": ["../app.plugin.js"] [all …]
|
| /expo/packages/expo-system-ui/plugin/src/__tests__/ |
| H A D | mockMods.ts | 23 plugin, 27 plugin: ConfigPlugin; 32 return (await plugin(config as any)) as ExportedConfigWithProps<T>;
|
| /expo/packages/@expo/prebuild-config/src/plugins/unversioned/expo-system-ui/__tests__/ |
| H A D | mockMods.ts | 23 plugin, 27 plugin: ConfigPlugin; 32 return (await plugin(config as any)) as ExportedConfigWithProps<T>;
|
| /expo/packages/@expo/config-plugins/src/android/__tests__/ |
| H A D | PrimaryColor-test.ts | 27 plugin: withPrimaryColorColors, 38 plugin: withPrimaryColorColors, 53 plugin: withPrimaryColorStyles, 79 plugin: withPrimaryColorStyles,
|
| /expo/docs/pages/versions/v48.0.0/sdk/ |
| H A D | reanimated.mdx | 23 After the installation completes, you must also add the Babel plugin to **babel.config.js**: 30 plugins: ['react-native-reanimated/plugin'], 35 After you add the Babel plugin, restart your development server and clear the bundler cache: `npx e… 37 > If you load other Babel plugins, the Reanimated plugin has to be the last item in the plugins arr… 41 …`@babel/plugin-proposal-export-namespace-from`](https://babeljs.io/docs/en/babel-plugin-proposal-e… 46 '@babel/plugin-proposal-export-namespace-from', 47 'react-native-reanimated/plugin', 51 After you add the Babel plugin, restart your development server and clear the bundler cache: `npx e…
|
| /expo/docs/pages/versions/v49.0.0/sdk/ |
| H A D | reanimated.mdx | 23 After the installation completes, you must also add the Babel plugin to **babel.config.js**: 30 plugins: ['react-native-reanimated/plugin'], 35 After you add the Babel plugin, restart your development server and clear the bundler cache: `npx e… 37 > If you load other Babel plugins, the Reanimated plugin has to be the last item in the plugins arr… 41 …`@babel/plugin-proposal-export-namespace-from`](https://babeljs.io/docs/en/babel-plugin-proposal-e… 46 '@babel/plugin-proposal-export-namespace-from', 47 'react-native-reanimated/plugin', 51 After you add the Babel plugin, restart your development server and clear the bundler cache: `npx e…
|
| /expo/docs/pages/versions/v47.0.0/sdk/ |
| H A D | reanimated.mdx | 23 After the installation completes, you must also add the Babel plugin to **babel.config.js**: 30 plugins: ['react-native-reanimated/plugin'], 35 After you add the Babel plugin, restart your development server and clear the bundler cache: `npx e… 37 > If you load other Babel plugins, the Reanimated plugin has to be the last item in the plugins arr… 41 …`@babel/plugin-proposal-export-namespace-from`](https://babeljs.io/docs/en/babel-plugin-proposal-e… 46 '@babel/plugin-proposal-export-namespace-from', 47 'react-native-reanimated/plugin', 51 After you add the Babel plugin, restart your development server and clear the bundler cache: `npx e…
|