{"id":20434054,"url":"https://github.com/zewa666/aurelia-electron","last_synced_at":"2025-09-24T12:31:44.916Z","repository":{"id":151586080,"uuid":"236435991","full_name":"zewa666/aurelia-electron","owner":"zewa666","description":"An opinionated Electron starter template for Aurelia","archived":false,"fork":false,"pushed_at":"2020-04-01T11:02:35.000Z","size":14802,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-15T08:28:45.968Z","etag":null,"topics":["aurelia","electron","starter-template"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zewa666.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-27T07:01:14.000Z","updated_at":"2023-11-30T00:02:41.000Z","dependencies_parsed_at":"2023-11-22T13:55:43.912Z","dependency_job_id":null,"html_url":"https://github.com/zewa666/aurelia-electron","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewa666%2Faurelia-electron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewa666%2Faurelia-electron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewa666%2Faurelia-electron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewa666%2Faurelia-electron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zewa666","download_url":"https://codeload.github.com/zewa666/aurelia-electron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234081595,"owners_count":18776655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aurelia","electron","starter-template"],"created_at":"2024-11-15T08:23:36.703Z","updated_at":"2025-09-24T12:31:39.594Z","avatar_url":"https://github.com/zewa666.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aurelia Electron - Starter Template\n\nThis is a starter template for Aurelia with Electron. It does include:\n\n* Jest for Frontend (renderer) and Backend (main) unit tests + code coverage\n* TSLint with a custom rule set\n* StyleLint optimized for SCSS and BEM workflows\n\nBelow you can find instructions on how to build, test and run the project.\n\n## Structure\n\nThe folder `src` contains the frontend (renderer process), which is a standard Aurelia CLI app. The folder `backend` on the other hand represents the main process of Electron.\nOnce built, the output of the frontend is as usual the `scripts` folder, whereas the backend is `dist/\u003cname-of-app\u003e/backend`. If you intend to package the app, it might be better\nto move the frontend output to `dist/frontend` as well so that all sources are at a single location.\n\nIf you change the `name` inside the `package.json` make sure to adjust the `main` property as well as the `electron` npm script to reflect the new name\n\n## How to develop?\n\nStart with installing all npm dependencies via `npm install`.\n\nAfter that just run `npm start` within the root of the project and both the renderer/frontend (src) and main/backend (backend) will be automatically built and a watch mode started. As soon as either a frontend/backend file is modified, the app will be rebuilt and restarted automatically.\n\nTests can be executed with:\n\n* `npm run test-backend` runs main process tests and generates coverage in test/backend/coverage-jest\n* `npm run test-frontend` runs renderer process tests and generates coverage in test/frontend/coverage-jest\n* `npm run tdd-backend` runs continuous main process tests\n* `npm run tdd-frontend` runs continuous renderer process tests\n* `npm run test-e2e` runs spectron e2e tests\n* `npm run test` runs all unit tests (backend/frontend) at once with coverage outputs\n\n## Building a binary release\n\nTo produce a binary with electron-builder, simply run `npm run dist`, which will create the output inside the `dist` folder.\n\n\u003e Notice that when running above command, you'll only build for the specific target you're on. So Mac will build for Mac, while Linux and Win will build respectively for their targets.\n\nIf you want to build for multiple targets, e.g on Mac you can build for Linux, Mac and Windows, just run `npm run dist-all`.\n\nFor further information about options please consult the [electron builder docs](https://www.electron.build/)\n\n## Hooks\n\nBefore any push happens, a pre-push hook (Husky) will run all linters and tests to ensure no faulty code is pushed to the remote repository.\n\n## NodeIntegration in Renderer\n\nThis sample makes use of NodeIntegration in the Render process to show how to distinguish Electron's require from the AMD one.\nTypically you'd want to avoid the integration if not needed. In order to turn it off, comment out this section of the `main.ts` file\n\n```typescript\nwebPreferences: {\n  nodeIntegration: true\n},\n```\n\nIf needed though, you can access electrons require method later in your renderer via `window.nodeRequire` as it's patched in the `index.html`.\nFurthermore you'll notice a `window.electronRequire` which is needed for Spectron tests to access underlying processes during tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzewa666%2Faurelia-electron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzewa666%2Faurelia-electron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzewa666%2Faurelia-electron/lists"}