Skip to content

Optimize build #550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@
"eslint": "7.32.0",
"git-url-parse": "11.6.0",
"jest": "27.3.1",
"jsdom": "18.1.0",
"jsdom": "18.1.1",
"node-fetch": "2.6.6",
"semver": "7.3.5",
"ts-jest": "27.0.7",
@@ -64,7 +64,7 @@
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.27.1",
"eslint-plugin-react-hooks": "^4.3.0",
"prettier": "^2.4.1",
"prettier": "2.5.0",
"vscode": "^1.1.37",
"vscode-test": "^1.6.1"
},
1 change: 1 addition & 0 deletions scripts/package.sh
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ OUTPUT_FILE=coderoad-$PACKAGE_VERSION.vsix
echo "Creating $OUTPUT_FILE..."

echo "Building..."
GENERATE_SOURCEMAP=false # reduces output size by 5mb+
yarn build

echo "Packaging Extension..."
2 changes: 1 addition & 1 deletion src/services/hooks/webhooks.ts
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ const WEBHOOK_EVENTS = {
tutorial_complete: false,
}

// varaibles set on init
// variables set on init
let WEBHOOK_URI: string | undefined

export const setupWebhook = (webhookConfig: TT.WebhookConfig) => {
1 change: 1 addition & 0 deletions web-app/.storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ module.exports = ({ config }) => {
loader: require.resolve('babel-loader'),
options: {
plugins: [
new MiniCssExtractPlugin(),
[
'babel-plugin-import',
{
2 changes: 1 addition & 1 deletion web-app/config-overrides.js
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ module.exports = function override(config) {

// load @alifd/next component css
addBabelPlugin([
'babel-plugin-import',
'import',
{
libraryName: '@alifd/next',
style: true,
30 changes: 16 additions & 14 deletions web-app/package.json
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
"version": "0.17.0",
"private": true,
"scripts": {
"analyze": "source-map-explorer 'build/static/js/*.js'",
"build": "react-app-rewired build",
"build-storybook": "build-storybook",
"start": "react-app-rewired start",
@@ -28,35 +29,35 @@
"@alifd/next": "1.22.25",
"@emotion/babel-preset-css-prop": "10.0.27",
"@emotion/core": "10.0.35",
"@xstate/react": "^1.6.2",
"@xstate/react": "^1.6.3",
"babel-jest": "26.6.3",
"emotion-theming": "10.0.27",
"js-yaml": "4.1.0",
"markdown-it": "12.2.0",
"markdown-it-emoji": "2.0.0",
"moment": "2.29.1",
"prismjs": "1.25.0",
"react": "16.13.1",
"react-addons-css-transition-group": "15.6.2",
"react-dom": "16.13.1",
"reselect": "^4.1.4",
"reselect": "^4.1.5",
"use-media": "1.4.0",
"xstate": "^4.26.0"
"xstate": "^4.26.1"
},
"devDependencies": {
"@babel/core": "7.14.0",
"@storybook/addon-actions": "6.3.12",
"@storybook/addon-knobs": "6.3.1",
"@storybook/addon-links": "6.3.12",
"@storybook/addons": "6.3.12",
"@storybook/preset-create-react-app": "3.1.7",
"@storybook/react": "6.3.12",
"@storybook/addon-actions": "6.4.0",
"@storybook/addon-knobs": "6.4.0",
"@storybook/addon-links": "6.4.0",
"@storybook/addons": "6.4.0",
"@storybook/preset-create-react-app": "3.2.0",
"@storybook/react": "6.4.0",
"@types/git-url-parse": "9.0.1",
"@types/graphql": "14.5.0",
"@types/highlight.js": "9.12.4",
"@types/highlight.js": "10.1.0",
"@types/jest": "26.0.23",
"@types/js-yaml": "3.12.5",
"@types/js-yaml": "4.0.5",
"@types/markdown-it": "12.2.3",
"@types/node": "14.14.19",
"@types/node": "16.11.10",
"@types/prismjs": "1.16.5",
"@types/react": "16.9.49",
"@types/react-addons-css-transition-group": "15.0.5",
@@ -66,10 +67,11 @@
"customize-cra": "1.0.0",
"mini-css-extract-plugin": "0.11.2",
"node-sass": "6.0.1",
"prettier": "2.4.1",
"prettier": "2.5.0",
"react-app-rewired": "2.1.8",
"react-scripts": "4.0.3",
"sass-loader": "12.3.0",
"source-map-explorer": "2.5.2",
"typescript": "4.4.4"
}
}
Binary file removed web-app/public/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion web-app/public/index.html
Original file line number Diff line number Diff line change
@@ -9,7 +9,6 @@
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="manifest.json" />
<link rel="shortcut icon" href="favicon.ico" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Original file line number Diff line number Diff line change
@@ -85,10 +85,6 @@ const Summary = (props: Props) => (
</div>
<Markdown>{`# ${props.tutorial.summary.title}`}</Markdown>
<Markdown>{`### ${props.tutorial.summary.description}`}</Markdown>
{/* <h5 css={styles.meta}>
<div css={{ marginRight: '2rem' }}>Created by {props.createdBy.name}</div>
<div>Last updated {moment(props.updatedAt).format('M/YYYY')}</div>
</h5> */}
</div>
<div>
<div css={styles.levelList}>
1 change: 0 additions & 1 deletion web-app/src/services/tutorial/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as TT from 'typings/tutorial'
// @ts-ignore
import gitUrlParser from 'git-url-parse'

const processTutorial = (tutorial: TT.Tutorial): TT.Tutorial => {
1,148 changes: 704 additions & 444 deletions web-app/yarn.lock

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -3455,10 +3455,10 @@ js-yaml@^3.13.1:
argparse "^1.0.7"
esprima "^4.0.0"

jsdom@18.1.0:
version "18.1.0"
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-18.1.0.tgz#43e88a0e4d6d2aeeec0a18810c0934c02b2ae3e4"
integrity sha512-q6QFAfSGLEUqRJ+GCV6vn6ItZCMARWh1d33wiJZPxc+wMNw7HK71JPmQ4C2lIZAsBH8TiJu4uplach/UcrC6bQ==
jsdom@18.1.1:
version "18.1.1"
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-18.1.1.tgz#15ec896f5ab7df9669a62375606f47c8c09551aa"
integrity sha512-NmJQbjQ/gpS/1at/ce3nCx89HbXL/f5OcenBe8wU1Eik0ROhyUc3LtmG3567dEHAGXkN8rmILW/qtCOPxPHQJw==
dependencies:
abab "^2.0.5"
acorn "^8.5.0"
@@ -4111,10 +4111,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier@^2.4.1:
version "2.4.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.4.1.tgz#671e11c89c14a4cfc876ce564106c4a6726c9f5c"
integrity sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==
prettier@2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.0.tgz#a6370e2d4594e093270419d9cc47f7670488f893"
integrity sha512-FM/zAKgWTxj40rH03VxzIPdXmj39SwSjwG0heUcNFwI+EMZJnY93yAiKXM3dObIKAM5TA88werc8T/EwhB45eg==

pretty-format@^27.0.0, pretty-format@^27.3.1:
version "27.3.1"