第一次提交:模板
Showing
.editorconfig
0 → 100644
.erb/configs/.eslintrc
0 → 100644
.erb/img/erb-banner.svg
0 → 100644
This diff is collapsed.
.erb/img/erb-logo.png
0 → 100644
This diff was suppressed by a .gitattributes entry.
.erb/mocks/fileMock.js
0 → 100644
.erb/scripts/.eslintrc
0 → 100644
.erb/scripts/clean.js
0 → 100644
.erb/scripts/link-modules.ts
0 → 100644
.erb/scripts/notarize.js
0 → 100644
.eslintignore
0 → 100644
.eslintrc.js
0 → 100644
.gitattributes
0 → 100644
.github/FUNDING.yml
0 → 100644
.github/config.yml
0 → 100644
.github/stale.yml
0 → 100644
.github/workflows/test.yml
0 → 100644
.gitignore
0 → 100644
.husky/pre-commit
0 → 100644
.vscode/extensions.json
0 → 100644
.vscode/launch.json
0 → 100644
.vscode/settings.json
0 → 100644
CHANGELOG.md
0 → 100644
This diff is collapsed.
CODE_OF_CONDUCT.md
0 → 100644
LICENSE
0 → 100644
README.md
0 → 100644
This diff is collapsed.
assets/assets.d.ts
0 → 100644
assets/icon.icns
0 → 100644
This diff was suppressed by a .gitattributes entry.
assets/icon.ico
0 → 100644
This diff was suppressed by a .gitattributes entry.
assets/icon.png
0 → 100644
This diff was suppressed by a .gitattributes entry.
assets/icon.svg
0 → 100644
assets/icons/1024x1024.png
0 → 100644
This diff was suppressed by a .gitattributes entry.
assets/icons/128x128.png
0 → 100644
This diff was suppressed by a .gitattributes entry.
assets/icons/16x16.png
0 → 100644
This diff was suppressed by a .gitattributes entry.
assets/icons/24x24.png
0 → 100644
This diff was suppressed by a .gitattributes entry.
assets/icons/256x256.png
0 → 100644
This diff was suppressed by a .gitattributes entry.
assets/icons/32x32.png
0 → 100644
This diff was suppressed by a .gitattributes entry.
assets/icons/48x48.png
0 → 100644
This diff was suppressed by a .gitattributes entry.
assets/icons/512x512.png
0 → 100644
This diff was suppressed by a .gitattributes entry.
assets/icons/64x64.png
0 → 100644
This diff was suppressed by a .gitattributes entry.
assets/icons/96x96.png
0 → 100644
This diff was suppressed by a .gitattributes entry.
package-lock.json
0 → 100644
This diff is collapsed.
package.json
0 → 100644
| { | |||
| "description": "A foundation for scalable desktop apps", | |||
| "keywords": [ | |||
| "electron", | |||
| "boilerplate", | |||
| "react", | |||
| "typescript", | |||
| "ts", | |||
| "sass", | |||
| "webpack", | |||
| "hot", | |||
| "reload" | |||
| ], | |||
| "homepage": "https://github.com/electron-react-boilerplate/electron-react-boilerplate#readme", | |||
| "bugs": { | |||
| "url": "https://github.com/electron-react-boilerplate/electron-react-boilerplate/issues" | |||
| }, | |||
| "repository": { | |||
| "type": "git", | |||
| "url": "git+https://github.com/electron-react-boilerplate/electron-react-boilerplate.git" | |||
| }, | |||
| "license": "MIT", | |||
| "author": { | |||
| "name": "Electron React Boilerplate Maintainers", | |||
| "email": "electronreactboilerplate@gmail.com", | |||
| "url": "https://electron-react-boilerplate.js.org" | |||
| }, | |||
| "contributors": [ | |||
| { | |||
| "name": "Amila Welihinda", | |||
| "email": "amilajack@gmail.com", | |||
| "url": "https://github.com/amilajack" | |||
| } | |||
| ], | |||
| "main": "./src/main/main.ts", | |||
| "scripts": { | |||
| "build": "concurrently \"npm run build:main\" \"npm run build:renderer\"", | |||
| "build:main": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.main.prod.ts", | |||
| "build:renderer": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.prod.ts", | |||
| "postinstall": "ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.ts", | |||
| "lint": "cross-env NODE_ENV=development eslint . --ext .js,.jsx,.ts,.tsx", | |||
| "package": "ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build --publish never", | |||
| "prepare": "husky install", | |||
| "rebuild": "electron-rebuild --parallel --types prod,dev,optional --module-dir release/app", | |||
| "start": "ts-node ./.erb/scripts/check-port-in-use.js && npm run start:renderer", | |||
| "start:main": "cross-env NODE_ENV=development electronmon -r ts-node/register/transpile-only .", | |||
| "start:preload": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.preload.dev.ts", | |||
| "start:renderer": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack serve --config ./.erb/configs/webpack.config.renderer.dev.ts", | |||
| "test": "jest" | |||
| }, | |||
| "lint-staged": { | |||
| "*.{js,jsx,ts,tsx}": [ | |||
| "cross-env NODE_ENV=development eslint --cache" | |||
| ], | |||
| "*.json,.{eslintrc,prettierrc}": [ | |||
| "prettier --ignore-path .eslintignore --parser json --write" | |||
| ], | |||
| "*.{css,scss}": [ | |||
| "prettier --ignore-path .eslintignore --single-quote --write" | |||
| ], | |||
| "*.{html,md,yml}": [ | |||
| "prettier --ignore-path .eslintignore --single-quote --write" | |||
| ] | |||
| }, | |||
| "browserslist": [], | |||
| "prettier": { | |||
| "singleQuote": true, | |||
| "overrides": [ | |||
| { | |||
| "files": [ | |||
| ".prettierrc", | |||
| ".eslintrc" | |||
| ], | |||
| "options": { | |||
| "parser": "json" | |||
| } | |||
| } | |||
| ] | |||
| }, | |||
| "jest": { | |||
| "moduleDirectories": [ | |||
| "node_modules", | |||
| "release/app/node_modules" | |||
| ], | |||
| "moduleFileExtensions": [ | |||
| "js", | |||
| "jsx", | |||
| "ts", | |||
| "tsx", | |||
| "json" | |||
| ], | |||
| "moduleNameMapper": { | |||
| "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/.erb/mocks/fileMock.js", | |||
| "\\.(css|less|sass|scss)$": "identity-obj-proxy" | |||
| }, | |||
| "setupFiles": [ | |||
| "./.erb/scripts/check-build-exists.ts" | |||
| ], | |||
| "testEnvironment": "jsdom", | |||
| "testEnvironmentOptions": { | |||
| "url": "http://localhost/" | |||
| }, | |||
| "testPathIgnorePatterns": [ | |||
| "release/app/dist" | |||
| ], | |||
| "transform": { | |||
| "\\.(ts|tsx|js|jsx)$": "ts-jest" | |||
| } | |||
| }, | |||
| "dependencies": { | |||
| "electron-debug": "^3.2.0", | |||
| "electron-log": "^4.4.8", | |||
| "electron-updater": "^5.2.1", | |||
| "react": "^18.2.0", | |||
| "react-dom": "^18.2.0", | |||
| "react-router-dom": "^6.3.0" | |||
| }, | |||
| "devDependencies": { | |||
| "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7", | |||
| "@teamsupercell/typings-for-css-modules-loader": "^2.5.1", | |||
| "@testing-library/jest-dom": "^5.16.5", | |||
| "@testing-library/react": "^13.3.0", | |||
| "@types/jest": "^28.1.7", | |||
| "@types/node": "18.7.6", | |||
| "@types/react": "^18.0.17", | |||
| "@types/react-dom": "^18.0.6", | |||
| "@types/react-test-renderer": "^18.0.0", | |||
| "@types/terser-webpack-plugin": "^5.0.4", | |||
| "@types/webpack-bundle-analyzer": "^4.4.2", | |||
| "@typescript-eslint/eslint-plugin": "^5.33.1", | |||
| "@typescript-eslint/parser": "^5.33.1", | |||
| "browserslist-config-erb": "^0.0.3", | |||
| "chalk": "^4.1.2", | |||
| "concurrently": "^7.3.0", | |||
| "core-js": "^3.24.1", | |||
| "cross-env": "^7.0.3", | |||
| "css-loader": "^6.7.1", | |||
| "css-minimizer-webpack-plugin": "^4.0.0", | |||
| "detect-port": "^1.3.0", | |||
| "electron": "^20.0.2", | |||
| "electron-builder": "^23.3.3", | |||
| "electron-devtools-installer": "^3.2.0", | |||
| "electron-notarize": "^1.2.1", | |||
| "electron-rebuild": "^3.2.9", | |||
| "electronmon": "^2.0.2", | |||
| "eslint": "^8.22.0", | |||
| "eslint-config-airbnb-base": "^15.0.0", | |||
| "eslint-config-erb": "^4.0.3", | |||
| "eslint-import-resolver-typescript": "^3.4.1", | |||
| "eslint-import-resolver-webpack": "^0.13.2", | |||
| "eslint-plugin-compat": "^4.0.2", | |||
| "eslint-plugin-import": "^2.26.0", | |||
| "eslint-plugin-jest": "^26.8.3", | |||
| "eslint-plugin-jsx-a11y": "^6.6.1", | |||
| "eslint-plugin-promise": "^6.0.0", | |||
| "eslint-plugin-react": "^7.30.1", | |||
| "eslint-plugin-react-hooks": "^4.6.0", | |||
| "file-loader": "^6.2.0", | |||
| "html-webpack-plugin": "^5.5.0", | |||
| "husky": "^8.0.1", | |||
| "identity-obj-proxy": "^3.0.0", | |||
| "jest": "^28.1.3", | |||
| "jest-environment-jsdom": "^28.1.3", | |||
| "lint-staged": "^13.0.3", | |||
| "mini-css-extract-plugin": "^2.6.1", | |||
| "prettier": "^2.7.1", | |||
| "react-refresh": "^0.14.0", | |||
| "react-test-renderer": "^18.2.0", | |||
| "rimraf": "^3.0.2", | |||
| "sass": "^1.54.4", | |||
| "sass-loader": "^13.0.2", | |||
| "style-loader": "^3.3.1", | |||
| "terser-webpack-plugin": "^5.3.5", | |||
| "ts-jest": "^28.0.8", | |||
| "ts-loader": "^9.3.1", | |||
| "ts-node": "^10.9.1", | |||
| "typescript": "^4.7.4", | |||
| "url-loader": "^4.1.1", | |||
| "webpack": "^5.74.0", | |||
| "webpack-bundle-analyzer": "^4.5.0", | |||
| "webpack-cli": "^4.10.0", | |||
| "webpack-dev-server": "^4.10.0", | |||
| "webpack-merge": "^5.8.0" | |||
| }, | |||
| "build": { | |||
| "productName": "ElectronReact", | |||
| "appId": "org.erb.ElectronReact", | |||
| "asar": true, | |||
| "asarUnpack": "**\\*.{node,dll}", | |||
| "files": [ | |||
| "dist", | |||
| "node_modules", | |||
| "package.json" | |||
| ], | |||
| "afterSign": ".erb/scripts/notarize.js", | |||
| "mac": { | |||
| "target": { | |||
| "target": "default", | |||
| "arch": [ | |||
| "arm64", | |||
| "x64" | |||
| ] | |||
| }, | |||
| "type": "distribution", | |||
| "hardenedRuntime": true, | |||
| "entitlements": "assets/entitlements.mac.plist", | |||
| "entitlementsInherit": "assets/entitlements.mac.plist", | |||
| "gatekeeperAssess": false | |||
| }, | |||
| "dmg": { | |||
| "contents": [ | |||
| { | |||
| "x": 130, | |||
| "y": 220 | |||
| }, | |||
| { | |||
| "x": 410, | |||
| "y": 220, | |||
| "type": "link", | |||
| "path": "/Applications" | |||
| } | |||
| ] | |||
| }, | |||
| "win": { | |||
| "target": [ | |||
| "nsis" | |||
| ] | |||
| }, | |||
| "linux": { | |||
| "target": [ | |||
| "AppImage" | |||
| ], | |||
| "category": "Development" | |||
| }, | |||
| "directories": { | |||
| "app": "release/app", | |||
| "buildResources": "assets", | |||
| "output": "release/build" | |||
| }, | |||
| "extraResources": [ | |||
| "./assets/**" | |||
| ], | |||
| "publish": { | |||
| "provider": "github", | |||
| "owner": "electron-react-boilerplate", | |||
| "repo": "electron-react-boilerplate" | |||
| } | |||
| }, | |||
| "collective": { | |||
| "url": "https://opencollective.com/electron-react-boilerplate-594" | |||
| }, | |||
| "devEngines": { | |||
| "node": ">=14.x", | |||
| "npm": ">=7.x" | |||
| }, | |||
| "electronmon": { | |||
| "patterns": [ | |||
| "!**/**", | |||
| "src/main/*" | |||
| ], | |||
| "logLevel": "quiet" | |||
| } | |||
| } |
release/app/package.json
0 → 100644
src/__tests__/App.test.tsx
0 → 100644
src/main/main.ts
0 → 100644
src/main/menu.ts
0 → 100644
src/main/preload.ts
0 → 100644
src/main/util.ts
0 → 100644
src/renderer/App.css
0 → 100644
src/renderer/App.tsx
0 → 100644
src/renderer/index.ejs
0 → 100644
src/renderer/index.tsx
0 → 100644
src/renderer/preload.d.ts
0 → 100644
tsconfig.json
0 → 100644
Please
register
or
sign in
to comment