-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[optimize] upgrade Referred components of Community & Hospital pages
[fix] Production Building bugs
- Loading branch information
Showing
14 changed files
with
476 additions
and
162 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm test |
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 @@ | ||
#!/bin/sh | ||
|
||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run build |
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,25 @@ | ||
import { promises } from 'fs'; | ||
|
||
const title = 'fix Parcel bundle', | ||
filePattern = /^index\..+\.js$/i, | ||
bugPattern = /\$\w+?\$import\$\w+?;/g; | ||
|
||
console.time(title); | ||
|
||
(async () => { | ||
const files = await promises.readdir('dist'); | ||
|
||
for (const name of files) | ||
if (filePattern.test(name)) { | ||
const file = `dist/${name}`; | ||
|
||
const source = await promises.readFile(file, { encoding: 'utf-8' }); | ||
|
||
if (!bugPattern.test(source)) continue; | ||
|
||
await promises.writeFile(file, source.replace(bugPattern, '')); | ||
|
||
console.log(`[fixed] ${file}`); | ||
} | ||
console.timeEnd(title); | ||
})(); |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
e14bf88
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for wuhan2020 ready!
✅ Preview
https://wuhan2020-72gvhs4cr-techquery.vercel.app
Built with commit e14bf88.
This pull request is being automatically deployed with vercel-action