-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
4,078 additions
and
13,168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,2 @@ | ||
|
||
# lib | ||
node_modules | ||
|
||
# dev | ||
.env.local | ||
.idea | ||
|
||
# output | ||
dist | ||
Landing-Page.zip | ||
stats.html | ||
build_temp | ||
Landing-Page.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
build: | ||
rm -rf build_temp | ||
mkdir build_temp | ||
cp -r meta/* build_temp | ||
|
||
cd dashboard && npm run build | ||
cp -r dashboard/dist/* build_temp | ||
|
||
cd dhis-header-bar && npm run build | ||
cp dhis-header-bar/dist/dhis-header-bar.js build_temp | ||
|
||
rm -f Landing-Page.zip | ||
cd build_temp && zip ../Landing-Page.zip -r . | ||
|
||
test: | ||
cd build_temp && npx http-server -p 3000 --proxy https://dev.datim.org --proxu-options.auth YmFvLWFkbWluOktpZXYxOC1XYWdlcy0yNA== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.env.local | ||
node_modules | ||
dist | ||
.idea | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "landing-page", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"start": "vite", | ||
"build": "tsc && vite build", | ||
"preview": "vite preview", | ||
"test": "vitest" | ||
}, | ||
"devDependencies": { | ||
"@testing-library/dom": "^9.3.4", | ||
"happy-dom": "^13.7.3", | ||
"typescript": "^5.2.2", | ||
"vite": "^5.1.6", | ||
"vitest": "^1.3.1" | ||
}, | ||
"dependencies": { | ||
"yaml": "^2.4.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export default function minifyHtmlPlugin() { | ||
return { | ||
name: 'transform-file', | ||
transform(src, id) { | ||
if (id.includes('css')) return { | ||
code: src.replace(/\n/gm, '').replace(/\/\*.+?\*\//g,'') | ||
} | ||
}, | ||
transformIndexHtml(html){ | ||
return html.replace(/\n/gm, '').replace(/>\s+?</g,'><') | ||
} | ||
} | ||
} |
Oops, something went wrong.