Complete overhaul of code structure and relevant files (#639)
This commit is contained in:
5
.github/workflows/CI.yml
vendored
5
.github/workflows/CI.yml
vendored
@@ -16,9 +16,8 @@ jobs:
|
||||
- name: Check if CookieMonster.js is built correctly
|
||||
run: |
|
||||
npm install
|
||||
npx webpack
|
||||
npx terser ./dist/Header.js ./dist/Cache.js ./dist/Config.js ./dist/Data.js ./dist/Disp.js ./dist/Main.js ./dist/Sim.js ./dist/Footer.js -o CookieMonsterTest.js
|
||||
if cmp CookieMonster.js CookieMonsterTest.js; then
|
||||
npx webpack -o ./test --env production
|
||||
if cmp dist/CookieMonster.js test/CookieMonster.js; then
|
||||
echo '### SUCCESS: CookieMonster is correctly built! ###'
|
||||
else
|
||||
echo '### WARNING: CookieMonster.js does not seem to be correct. Make sure to run "npm run build" after saving all your changes! ###'
|
||||
|
||||
Reference in New Issue
Block a user