{"id":24796517,"url":"https://github.com/luventa/vue-frontend-boilerplate","last_synced_at":"2025-10-12T22:31:40.047Z","repository":{"id":37216256,"uuid":"168784356","full_name":"luventa/vue-frontend-boilerplate","owner":"luventa","description":"Frontend boilerpalte for web and electron uses Webpack4 \u0026 Vue.js","archived":false,"fork":false,"pushed_at":"2022-12-10T17:09:47.000Z","size":2997,"stargazers_count":6,"open_issues_count":27,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-12T05:03:22.781Z","etag":null,"topics":["babel7","boilerplate","electron","koa2","vuejs2","webpack4"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/luventa.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}},"created_at":"2019-02-02T02:10:02.000Z","updated_at":"2020-03-13T01:27:24.000Z","dependencies_parsed_at":"2023-01-26T05:00:13.790Z","dependency_job_id":null,"html_url":"https://github.com/luventa/vue-frontend-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luventa/vue-frontend-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luventa%2Fvue-frontend-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luventa%2Fvue-frontend-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luventa%2Fvue-frontend-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luventa%2Fvue-frontend-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luventa","download_url":"https://codeload.github.com/luventa/vue-frontend-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luventa%2Fvue-frontend-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013269,"owners_count":26085250,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["babel7","boilerplate","electron","koa2","vuejs2","webpack4"],"created_at":"2025-01-30T00:38:46.849Z","updated_at":"2025-10-12T22:31:39.445Z","avatar_url":"https://github.com/luventa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-frontend-boilerpalte\n\n\n\u003e Please use Nodejs \u003e 9.x\n\n\u003e Node version \u003e 10.x is recommended\n\nFrontend boilerpalte for web and electron uses Webpack4 \u0026 Vue.js\n\n### Set mirrors and repository\n\n```bash\nnpm config set electron_mirror https://npm.taobao.org/mirrors/electron/\nnpm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/\n```\n\nSwitch repository with nrm\n\n```bash\nnpm install nrm -g\nnrm use taobao\n```\n\n### Setup development env\n\nInstall yarn for faster installation\n\n```bash\nnpm install yarn -g\n```\n\nInstall dependencies\n\n``` bash\nyarn install\n```\n\nStart development for web\n\n```bash\nnpm run dev\n```\n\nStart development for electron client\n\n```bash\nnpm run dev:client\n```\n\n### Build and Release\n\nBuild for web\n\n```bash\n# testing with devtoll\nnpm run build\n\n# production with gzip\nnpm run dist\n```\n\nBuild for electron client\n\n```bash\n# testing with devtoll\nnpm run build:client\n\n# production\nnpm run dist:client\n```\n\nPack for electron client\n\n\u003e Other OS plat can be added in package.json\n\n```bash\n# Unpacked client\nnpm run client:unpack\n\n# windows nsis for product testing\nnpm run client:test\n\n# windows nsis for product publishing\nnpm run client:publish\n```\n\n# Tips\n\n\u003e Node-sass is a bitch for some Windows users! Copy this module from others before install deps if necessary.\n\n\u003e Install deps with `npm` might cause IE crash with development mode because of these reasons:\n  * `npm` will fetch devDependency `ansi-regex` with version ^3.0.0, which uses arrow function in its source code.\n\n\u003e There are two approaches to resolve static resources, especially images, in `/.vue` file and make it works in both browser and electron.\n  * Import static resources by using `style` attribute of html elements. And DO NOT start with `/`.\n    ```html\n    \u003ctemplate\u003e\n      ...\n      \u003csection style=\"background-image: url(static/image/logo.png);\" /\u003e\n      ...\n    \u003c/template\u003e\n  * Convert small image to stream data, which can be used in `\u003cstyle\u003e`.\n    ```scss\n    \u003cstyle lang=\"scss\" scoped\u003e\n      ...\n      .close-icon {\n        background-image: url(data:image/svg+xml;base64,PD...4=);\n      }\n      ...\n    \u003c/style\u003e\n    ```\n\u003e Vue validation is removed by default. You can execute command `npm run dll -- --dev` to get it back.\n  * It is useful for identifying potential code issue but not essential.\n    Remember, you have to run `npm run dll` before production release, otherwise it will affect performance.\n\n#  Unit Testing\n\nTBD\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluventa%2Fvue-frontend-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluventa%2Fvue-frontend-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluventa%2Fvue-frontend-boilerplate/lists"}