{"id":21465381,"url":"https://github.com/jacobhsu/vue-cli","last_synced_at":"2025-10-08T16:11:01.705Z","repository":{"id":37715359,"uuid":"164091306","full_name":"JacobHsu/vue-cli","owner":"JacobHsu","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-04T04:35:27.000Z","size":7786,"stargazers_count":0,"open_issues_count":137,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T05:45:01.589Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JacobHsu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-04T10:06:46.000Z","updated_at":"2019-07-16T03:56:14.000Z","dependencies_parsed_at":"2023-02-01T21:00:57.047Z","dependency_job_id":null,"html_url":"https://github.com/JacobHsu/vue-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JacobHsu/vue-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobHsu%2Fvue-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobHsu%2Fvue-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobHsu%2Fvue-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobHsu%2Fvue-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JacobHsu","download_url":"https://codeload.github.com/JacobHsu/vue-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobHsu%2Fvue-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278973249,"owners_count":26078193,"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-08T02:00:06.501Z","response_time":56,"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":[],"created_at":"2024-11-23T08:10:09.383Z","updated_at":"2025-10-08T16:11:01.680Z","avatar_url":"https://github.com/JacobHsu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-cli\n\n`init`  Vue CLI 3\n`init-webpack` Vue CLI 2\n\n[Vue CLI 3](https://cli.vuejs.org/)  \nvuejs/[vue-cli](https://github.com/vuejs/vue-cli)  \n\n[installation](https://cli.vuejs.org/guide/installation.html) `npm install -g @vue/cli`  \n\n`vue -V`  \n`vue --version`  \n\n\n[vue create](https://cli.vuejs.org/zh/guide/creating-a-project.html)  \n創建一個項目 `vue create hello-world`  \n\n# 2 vs 3\n\n`build`沒了、`config`沒了、3.0的安裝項目時自動下載node-model。  \n3.0 在根目錄下自己創建一個`vue.config.js`\n\n老項目的 `static` 全部遷移到 `public` 文件夾中，`index.html` 遷移到 `public`\nVue CLI 3.x 將默認資源文件根路徑放到了 /public 目錄下，而默認精簡掉了 2.x 版本中的 /static 目錄。　\n在Vue CLI 3 ，`public` 文件夾不會被 webpack 處理，並部署在網站根目錄\n\n\n## projects router \nmaually select features  \n\n[mode-and-env](https://cli.vuejs.org/guide/mode-and-env.html#modes) restart `npm run serve`  \n\n`vue list`  \n  \nVue 模板安裝  \n`vue init {‌{模板名稱}} {‌{資料夾名稱}} `  \nUsage: init [options] \u003ctemplate\u003e \u003capp-name\u003e  \n\n\nCommand vue init requires a global addon to be installed.\nPlease run `npm install -g @vue/cli-init` and try again.\n\n \n`vue init webpack my-project`  \n\n? Use ESLint to lint your code? (Y/n)  `n`    \n? set up unit tests (Y/n)  `n`    \n? Setup e2e tests with Nightwatch? (Y/n) `n`    \n\n\nTo get started:  \n  `cd my-project`  \n  `npm run dev`  \n\nI  Your application is running here: http://localhost:8080\n\n安裝所需套件 (在目標資料夾下，每個專案只有第一次需要執行)\n`npm install` \n\n運行 Vue + Webpack  \n`npm run dev` \n\n編譯 Production 版本  \n`npm run build`   \n\n# projects\n\nComponents [組件基礎研究](https://cn.vuejs.org/v2/guide/components.html)    \n`$ cd components`  \n`$ yarn serve`  \n\n# npm \n\n使用Google Analytics？ [vue-analytics](https://www.npmjs.com/package/vue-analytics)  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobhsu%2Fvue-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacobhsu%2Fvue-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobhsu%2Fvue-cli/lists"}