Skip to content

Commit

Permalink
Add preload to compiled frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
K0IN committed Jul 22, 2023
1 parent 8089850 commit 5fe804d
Showing 1 changed file with 39 additions and 53 deletions.
92 changes: 39 additions & 53 deletions app/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,40 @@
{
"private": true,
"name": "notify_frontend",
"version": "0.0.0",
"license": "MIT",
"main": "index.js",
"scripts": {
"build": "preact build --no-prerender",
"serve": "sirv build --port 8080 --cors --single",
"dev": "preact watch --port 8000 --sw",
"dev_gui": "preact watch",
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
"test": "jest ./tests"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"extends": [
"preact",
"plugin:@typescript-eslint/recommended"
],
"ignorePatterns": [
"build/"
]
},
"dependencies": {
"idb": "^6.1.3",
"preact": "^10.3.1",
"preact-material-components": "^1.6.1",
"preact-render-to-string": "^5.1.4",
"timeago.js": "^4.0.2"
},
"devDependencies": {
"@types/enzyme": "^3.10.5",
"@types/jest": "^26.0.8",
"@typescript-eslint/eslint-plugin": "^2.25.0",
"@typescript-eslint/parser": "^2.25.0",
"enzyme": "^3.11.0",
"enzyme-adapter-preact-pure": "^3.1.0",
"eslint": "^6.8.0",
"eslint-config-preact": "^1.1.1",
"jest": "^26.2.2",
"jest-preset-preact": "^4.0.2",
"preact-cli": "^3.4.6",
"sirv-cli": "^2.0.2",
"typescript": "^4.6.0-dev.20211112"
},
"jest": {
"preset": "jest-preset-preact",
"setupFiles": [
"<rootDir>/tests/__mocks__/browserMocks.ts",
"<rootDir>/tests/__mocks__/setupTests.ts"
]
}
}
"private": true,
"name": "notify_frontend",
"version": "0.0.0",
"license": "MIT",
"main": "index.js",
"scripts": {
"build": "preact build --no-prerender --preload",
"serve": "sirv build --port 8080 --cors --single",
"dev": "preact watch --port 8000 --sw",
"dev_gui": "preact watch",
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
"test": "jest ./tests"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"extends": [
"preact",
"plugin:@typescript-eslint/recommended"
],
"ignorePatterns": [
"build/"
]
},
"dependencies": {
"idb": "^6.1.3",
"preact": "^10.3.1",
"preact-material-components": "^1.6.1",
"timeago.js": "^4.0.2"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.25.0",
"@typescript-eslint/parser": "^2.25.0",
"eslint": "^6.8.0",
"eslint-config-preact": "^1.1.1",
"preact-cli": "^3.4.6",
"sirv-cli": "^2.0.2",
"typescript": "^5.1.6"
}
}

0 comments on commit 5fe804d

Please sign in to comment.