Skip to content

Commit

Permalink
Merge branch 'main' of github.com:margelo/expensify-app-fork into per…
Browse files Browse the repository at this point in the history
…f/memoize-sidebar
  • Loading branch information
hannojg committed Oct 29, 2022
2 parents 83efc2b + 62ff507 commit e780a7e
Show file tree
Hide file tree
Showing 43 changed files with 1,292 additions and 1,558 deletions.
26 changes: 9 additions & 17 deletions config/webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ const webpackConfig = ({envFile = '.env', platform = 'web'}) => ({
path: path.resolve(__dirname, '../../dist'),
publicPath: '/',
},
stats: {
warningsFilter: [
// @react-navigation for web uses the legacy modules (related to react-native-reanimated)
// This results in 33 warnings with stack traces that appear during build and each time we make a change
// We can't do anything about the warnings, and they only get in the way, so we suppress them
'./node_modules/@react-navigation/drawer/lib/module/views/legacy/Drawer.js',
'./node_modules/@react-navigation/drawer/lib/module/views/legacy/Overlay.js',
],
},
plugins: [
new CleanWebpackPlugin(),
new HtmlWebpackPlugin({
Expand Down Expand Up @@ -110,18 +119,6 @@ const webpackConfig = ({envFile = '.env', platform = 'web'}) => ({
new RegExp(`node_modules/(?!(${includeModules})/).*|.native.js$`),
],
},
{
test: /\.js$/,
loader: 'eslint-loader',
exclude: [
/node_modules|\.native\.js$/,
],
options: {
cache: false,
emitWarning: true,
configFile: path.resolve(__dirname, '../../.eslintrc.js'),
},
},

// Rule for react-native-web-webview
{
Expand Down Expand Up @@ -178,11 +175,6 @@ const webpackConfig = ({envFile = '.env', platform = 'web'}) => ({
'process/browser': require.resolve('process/browser'),
},
},
devServer: {
client: {
overlay: false,
},
},
});

module.exports = webpackConfig;
18 changes: 17 additions & 1 deletion config/webpack/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const path = require('path');
const portfinder = require('portfinder');
const {DefinePlugin} = require('webpack');
const {merge} = require('webpack-merge');
const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');
const getCommonConfig = require('./webpack.common');

const BASE_PORT = 8080;
Expand All @@ -25,14 +26,18 @@ module.exports = (env = {}) => portfinder.getPortPromise({port: BASE_PORT})
};

const baseConfig = getCommonConfig(env);
const speedMeasure = new SpeedMeasurePlugin();

return merge(baseConfig, {
const config = merge(baseConfig, {
mode: 'development',
devtool: 'eval-source-map',
devServer: {
static: {
directory: path.join(__dirname, '../../dist'),
},
client: {
overlay: false,
},
hot: true,
...proxySettings,
historyApiFallback: true,
Expand All @@ -43,5 +48,16 @@ module.exports = (env = {}) => portfinder.getPortPromise({port: BASE_PORT})
'process.env.PORT': port,
}),
],
cache: {
type: 'filesystem',
name: env.platform || 'default',
buildDependencies: {
// By default, webpack and loaders are build dependencies
// This (also) makes all dependencies of this config file - build dependencies
config: [__filename],
},
},
});

return speedMeasure.wrap(config);
});
1 change: 1 addition & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: Got a question about receipts, expenses, corporate cards, or anythi
url: help.expensify.com
author: Expensify
logo: /assets/images/expensify-help.svg
open_url: true

defaults:
- scope:
Expand Down
11 changes: 1 addition & 10 deletions docs/_includes/request-money-lhn.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,7 @@
<!-- Add content below, more instructions in the README.md file
https://github.com/Expensify/App/blob/main/docs/README.md#add-a-new-entry-in-the-lhn-page
-->

<!-- Stage title anchor -->
<li><a href="#request-money">Request money</a>
<ul>
<!-- Article links -->
<li><a href="/articles/request-money/SmartScan">SmartScan</a></li>
<!-- More Article links here (if required)... -->
</ul>
</li>


<!-- More Stage title anchors here... -->
</ul>
</li>
Expand Down
11 changes: 11 additions & 0 deletions docs/_includes/send-money-lhn.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
<!-- Add content below, more instructions in the README.md file
https://github.com/Expensify/App/blob/main/docs/README.md#add-a-new-entry-in-the-lhn-page
-->

<!-- Stage title anchor -->
<li><a href="#workspaces">Workspaces</a>
<ul>
<!-- Article links -->
<li><a href="/articles/send-money/The-Free-Plan">The Free Plan</a></li>
<!-- More Article links here (if required)... -->
</ul>
</li>

<!-- More Stage title anchors here... -->
</ul>
</li>
<li>
Expand Down
110 changes: 0 additions & 110 deletions docs/articles/request-money/SmartScan.md

This file was deleted.

23 changes: 0 additions & 23 deletions docs/hubs/request-money.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,3 @@ <h1 class="title">
</p>

<!-- Add content below, more instructions here https://github.com/Expensify/App/blob/main/docs/README.md#add-a-new-entry-in-the-hub-page -->

<!-- Stage title -->
<h2 id="request-money">
Request Money
</h2>

<!-- Group of Card buttons -->
<div class="cards-group">

<!-- Card buttons -->

<a class="card" href="/articles/request-money/SmartScan">
<div class="body">
<h3 class="title">SmartScan</h3>
</div>
<div class="right-icon">
<i class="fa-solid fa-angle-right icon"></i>
</div>
</a>

<!-- More Card buttons here... -->

</div>
27 changes: 24 additions & 3 deletions docs/hubs/send-money.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,28 @@ <h1 class="title">
Send Money page
</h1>

<!-- TODO: remove the following text, added just for testing -->
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur hendrerit euismod dui, nec fermentum urna porta ultrices. Nullam sed vestibulum purus, in auctor libero. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas dolor metus,

<!-- Add content below, more instructions here https://github.com/Expensify/App/blob/main/docs/README.md#add-a-new-entry-in-the-hub-page -->


<!-- Stage title -->
<h2 id="workspaces">
Workspaces
</h2>

<!-- Group of Card buttons -->
<div class="cards-group">

<!-- Card buttons -->

<a class="card" href="/articles/send-money/The-Free-Plan">
<div class="body">
<h3 class="title">The Free Plan</h3>
</div>
<div class="right-icon">
<i class="fa-solid fa-angle-right icon"></i>
</div>
</a>

<!-- More Card buttons here... -->

</div>
6 changes: 2 additions & 4 deletions ios/NewExpensify.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
Expand All @@ -775,7 +775,6 @@
);
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
};
name = Debug;
Expand Down Expand Up @@ -812,7 +811,7 @@
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
Expand All @@ -829,7 +828,6 @@
"\"$(inherited)\"",
);
MTL_ENABLE_DEBUG_INFO = NO;
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
Expand Down
11 changes: 0 additions & 11 deletions ios/NewExpensify.xcworkspace/contents.xcworkspacedata

This file was deleted.

Loading

0 comments on commit e780a7e

Please sign in to comment.