Skip to content
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

feat: use new favicon, cleanup static file handling #120

Merged
merged 4 commits into from Apr 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 0 additions & 44 deletions extractor.js

This file was deleted.

161 changes: 0 additions & 161 deletions favorites.html

This file was deleted.

21 changes: 0 additions & 21 deletions index.html

This file was deleted.

60 changes: 0 additions & 60 deletions layout.html

This file was deleted.

2 changes: 1 addition & 1 deletion netlify.toml
Expand Up @@ -13,7 +13,7 @@ ID = "79053cdd-851c-479d-b6cd-1c6d77f679a3"
publish = "build"

# Default build command.
command = "yarn install && yarn build && yarn run manifest package.json build/manifest.webapp --manifest.activities.dhis.href=\"https://play.dhis2.org/dev\""
command = "yarn install && yarn build:netlify"

# /dhis-web-core-resource/react/16.2.0/umd/react.production.min.js https://unpkg.com/react@16.5/umd/react.production.min.js
# /dhis-web-core-resource/react-dom/16.2.0/umd/react-dom.production.min.js https://unpkg.com/react-dom@16.5/umd/react-dom.production.min.js
Expand Down
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -20,7 +20,7 @@
"lint"
],
"scripts": {
"prestart": "yarn localize && d2-manifest package.json manifest.webapp",
"prestart": "yarn localize && yarn manifest",
"start": "webpack-dev-server",
"coverage": "yarn test --coverage",
"test": "jest",
Expand All @@ -32,10 +32,10 @@
"cy:e2e:run": "CYPRESS_E2E=true cypress run",
"cy:e2e:update": "CYPRESS_GEN_FIXTURES=true cypress run --config video=false",
"cy:e2e:open:update": "CYPRESS_GEN_FIXTURES=true cypress open",
"prebuild": "yarn test",
"build": "yarn localize && rm -rf build && NODE_ENV=production webpack --progress && yarn manifest && cp -r i18n build && cp -r i18n_old build",
"postbuild": "cp icon.png ./build/ && cp -r images ./build",
"manifest": "d2-manifest package.json build/manifest.webapp",
"prebuild": "yarn test && yarn localize && yarn manifest && rm -rf build && mkdir build && cp -r public/* ./build/",
"build": "NODE_ENV=production webpack --progress",
"build:netlify": "yarn build && d2-manifest package.json build/manifest.webapp --manifest.activities.dhis.href=\"https://play.dhis2.org/dev\"",
"manifest": "d2-manifest package.json public/manifest.webapp",
"lint": "eslint ./src",
"validate": "npm ls --depth 0 || yarn list",
"profile": "yarn start --profile",
Expand Down
Binary file added public/favicon.ico
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
21 changes: 21 additions & 0 deletions public/index.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8" />
<title>DHIS2 Maps</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="./favicon.ico" rel="shortcut icon" />
<link
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700"
rel="stylesheet"
/>
<!-- jss-insertion-point -->
</head>

<body>
<div id="app"></div>
<div id="context-menu"></div>

<%= htmlWebpackPlugin.options.vendorScripts %>
</body>
</html>
File renamed without changes.
12 changes: 2 additions & 10 deletions webpack.config.js
Expand Up @@ -112,23 +112,15 @@ const webpackConfig = {
},
plugins: [
new HTMLWebpackPlugin({
template: 'index.html',
template: 'public/index.html',
chunks: ['app'],
}),
],
devServer: {
contentBase: './',
contentBase: './public',
port: 8082,
inline: true,
compress: true,
proxy: [
{
path: '/polyfill.min.js',
target:
'http://localhost:8082/node_modules/babel-polyfill/dist',
bypass: log,
},
],
},
};

Expand Down