{"id":13591802,"url":"https://github.com/ElemeFE/webpack-typescript","last_synced_at":"2025-04-08T18:30:54.285Z","repository":{"id":65980051,"uuid":"104318944","full_name":"ElemeFE/webpack-typescript","owner":"ElemeFE","description":"A full-featured Webpack + vue-loader + typescript setup with hot reload, linting, testing \u0026 css extraction.","archived":false,"fork":true,"pushed_at":"2017-10-23T15:35:04.000Z","size":1022,"stargazers_count":36,"open_issues_count":1,"forks_count":8,"subscribers_count":9,"default_branch":"develop","last_synced_at":"2024-08-02T16:43:01.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"vuejs-templates/webpack","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ElemeFE.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":"2017-09-21T07:59:41.000Z","updated_at":"2022-06-26T18:19:50.000Z","dependencies_parsed_at":"2023-02-19T18:25:19.585Z","dependency_job_id":null,"html_url":"https://github.com/ElemeFE/webpack-typescript","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/ElemeFE%2Fwebpack-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElemeFE%2Fwebpack-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElemeFE%2Fwebpack-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElemeFE%2Fwebpack-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElemeFE","download_url":"https://codeload.github.com/ElemeFE/webpack-typescript/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223339120,"owners_count":17129273,"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":[],"created_at":"2024-08-01T16:01:02.228Z","updated_at":"2024-11-06T12:31:58.434Z","avatar_url":"https://github.com/ElemeFE.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# vue-webpack-boilerplate\n\nA full-featured Webpack setup with hot-reload, lint-on-save,\u003cdel\u003eunit testing\u003c/del\u003e \u0026 css extraction.\n\n## Note\n\n- This template is still __WIP__, not support unit testing for now, you can try it by `vue init ElemeFE/webpack-typescript project-name` for now.\n\n- Linter is not stable since tslint does not support `.vue` file, we just trick it to make it works.\n\n## Documentation\n\n- [For this template](http://vuejs-templates.github.io/webpack): common questions specific to this template are answered and each part is described in greater detail\n- [For Vue 2.0](http://vuejs.org/guide/): general information about how to work with Vue, not specific to this template\n\n## Usage\n\nThis is a project template for [vue-cli](https://github.com/vuejs/vue-cli). **It is recommended to use npm 3+ for a more efficient dependency tree.**\n\n``` bash\n$ npm install -g vue-cli\n$ vue init ElemeFE/webpack-typescript my-project\n$ cd my-project\n$ npm install\n$ npm run dev\n```\n\nIf port 8080 is already in use on your machine you must change the port number in `/config/index.js`. Otherwise `npm run dev` will fail.\n\n## What's Included\n\n- `npm run dev`: first-in-class development experience.\n  - Webpack + `vue-loader` for single file Vue components.\n  - State preserving hot-reload\n  - State preserving compilation error overlay\n  - Lint-on-save with ESLint\n  - Source maps\n\n- `npm run build`: Production ready build.\n  - JavaScript minified with [UglifyJS](https://github.com/mishoo/UglifyJS2).\n  - HTML minified with [html-minifier](https://github.com/kangax/html-minifier).\n  - CSS across all components extracted into a single file and minified with [cssnano](https://github.com/ben-eb/cssnano).\n  - All static assets compiled with version hashes for efficient long-term caching, and a production `index.html` is auto-generated with proper URLs to these generated assets.\n  - Use `npm run build --report`to build with bundle size analytics.\n\n- `npm run unit`: Unit tests run in PhantomJS with [Karma](http://karma-runner.github.io/0.13/index.html) + [Mocha](http://mochajs.org/) + [karma-webpack](https://github.com/webpack/karma-webpack).\n  - Supports ES2015+ in test files.\n  - Supports all webpack loaders.\n  - Easy mock injection.\n\n- `npm run e2e`: End-to-end tests with [Nightwatch](http://nightwatchjs.org/).\n  - Run tests in multiple browsers in parallel.\n  - Works with one command out of the box:\n    - Selenium and chromedriver dependencies automatically handled.\n    - Automatically spawns the Selenium server.\n\n### Fork It And Make Your Own\n\nYou can fork this repo to create your own boilerplate, and use it with `vue-cli`:\n\n``` bash\nvue init username/repo my-project\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElemeFE%2Fwebpack-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FElemeFE%2Fwebpack-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElemeFE%2Fwebpack-typescript/lists"}