mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-22 13:47:56 +00:00
react-native example app port (#223)
* add readme * react-native example app * update readme * add ios-cli dep * revert package.json change * update readme * update readme * don't auto launch metro * add react native scripts * nohoist @react-native-community/** * update readme * undo wrong README change * remove react-native root dep * copyright headers * semi-style * add default gitignore * finish linting * remove test for now * fix typescript errors * fix linting * update scripts * update deps and version * update readme * remove accidental dep * update readme * bump deps * update yarn.lock * actually update yarn.lock * fix yarn.lock conflicts by updating exampleReactNative deps
This commit is contained in:
committed by
Jaco Greeff
parent
cd1fc14c16
commit
b3e9b70341
@@ -0,0 +1,37 @@
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
const path = require('path');
|
||||
const getWorkspaces = require('get-yarn-workspaces');
|
||||
const workspaces = getWorkspaces(__dirname).filter(item => {
|
||||
return path.normalize(item) !== path.normalize(__dirname);
|
||||
});
|
||||
let workspacesBuildDirs = workspaces.map(workspace => path.join(workspace, 'build/'));
|
||||
workspacesBuildDirs = workspacesBuildDirs.filter(item => item !== path.join(__dirname, '../reactnative-identicon/build/'));
|
||||
|
||||
module.exports = {
|
||||
|
||||
// watch other packages as well as root node_modules
|
||||
watchFolders: [
|
||||
path.resolve(__dirname, '../../node_modules'),
|
||||
...workspacesBuildDirs
|
||||
],
|
||||
|
||||
// remap node packages to react-native packages
|
||||
resolver: {
|
||||
extraNodeModules: {
|
||||
crypto: require.resolve('react-native-crypto'),
|
||||
stream: require.resolve('stream-http'),
|
||||
vm: require.resolve('vm-browserify'),
|
||||
process: require.resolve('process'),
|
||||
os: require.resolve('os-browserify')
|
||||
}
|
||||
},
|
||||
|
||||
transformer: {
|
||||
getTransformOptions: () => ({
|
||||
transform: {
|
||||
experimentalImportSupport: false,
|
||||
inlineRequires: false
|
||||
}
|
||||
})
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user