Home
last modified time | relevance | path

Searched refs:plugin (Results 1 – 25 of 525) sorted by relevance

12345678910>>...21

/expo/packages/@expo/config-plugins/src/utils/
H A Dplugin-resolver.ts82 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 Dpostcss.ts83 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 Dpostcss.js108 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') {
202plugin && 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 DautoAddConfigPlugins.ts27 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 Dplugin-resolver.js129 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 Dplugin-resolver.d.ts8 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 Dplugin-resolver.js.map1plugin-resolver.js","names":["_assert","data","_interopRequireDefault","require","_findUp","path",…
/expo/packages/@expo/config-plugins/src/plugins/
H A DwithRunOnce.ts12 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 DwithStaticPlugin-test.ts36 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 DmockMods.ts24 plugin,
28 plugin: ConfigPlugin;
33 return (await plugin(config as any)) as ExportedConfigWithProps<T>;
/expo/packages/@expo/config-plugins/build/plugins/
H A DwithRunOnce.js23 plugin, argument
37 return plugin(config);
46 function createRunOncePlugin(plugin, name, version) { argument
49 plugin: config => plugin(config, props),
H A DwithRunOnce.js.map1plugin","name","version","getHistoryItem","addHistoryItem","exports","createRunOncePlugin","props"…
/expo/packages/@expo/prebuild-config/src/
H A DgetAutolinkedPackages.ts43 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 Dexpo-module-prepare14 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 DgetAutolinkedPackages.js38 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 DwithBuildProperties-test.ts44 plugin: withBuildProperties,
64 plugin: withBuildProperties,
84 plugin: withBuildProperties,
99 plugin: withBuildProperties,
116 plugin: withBuildProperties,
131 plugin: withBuildProperties,
151 plugin: withBuildProperties,
H A DmockMods.ts22 plugin,
27 plugin: ConfigPlugin<ConfigPluginProps>;
34 return (await plugin(config as any, pluginProps)) as ExportedConfigWithProps<T>;
/expo/packages/expo-module-scripts/
H A DREADME.md89 ╰── 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 Dconfig-plugin-and-native-module-tutorial.mdx2 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
138plugin 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 DmockMods.ts23 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 DmockMods.ts23 plugin,
27 plugin: ConfigPlugin;
32 return (await plugin(config as any)) as ExportedConfigWithProps<T>;
/expo/packages/@expo/config-plugins/src/android/__tests__/
H A DPrimaryColor-test.ts27 plugin: withPrimaryColorColors,
38 plugin: withPrimaryColorColors,
53 plugin: withPrimaryColorStyles,
79 plugin: withPrimaryColorStyles,
/expo/docs/pages/versions/v48.0.0/sdk/
H A Dreanimated.mdx23 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 Dreanimated.mdx23 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 Dreanimated.mdx23 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…

12345678910>>...21