{"id":21029900,"url":"https://github.com/kitconcept/webpack-starter-angular2","last_synced_at":"2025-05-15T11:32:19.644Z","repository":{"id":75201899,"uuid":"60508534","full_name":"kitconcept/webpack-starter-angular2","owner":"kitconcept","description":"Webpack Starter for Angular 2","archived":false,"fork":false,"pushed_at":"2018-02-09T10:48:08.000Z","size":159,"stargazers_count":1,"open_issues_count":3,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-11T12:11:35.190Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/kitconcept.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-06T07:43:17.000Z","updated_at":"2017-01-22T16:28:39.000Z","dependencies_parsed_at":"2023-06-05T17:45:10.566Z","dependency_job_id":null,"html_url":"https://github.com/kitconcept/webpack-starter-angular2","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/kitconcept%2Fwebpack-starter-angular2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fwebpack-starter-angular2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fwebpack-starter-angular2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fwebpack-starter-angular2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kitconcept","download_url":"https://codeload.github.com/kitconcept/webpack-starter-angular2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254330806,"owners_count":22053052,"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-11-19T12:14:55.614Z","updated_at":"2025-05-15T11:32:19.627Z","avatar_url":"https://github.com/kitconcept.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/kitconcept/webpack-starter-angular2.svg?branch=master)](https://travis-ci.org/kitconcept/webpack-starter-angular2)\n\n# Webpack Starter Angular 2\n\nMinimalistic seed project to get started with Angular 2, TypeScript and Webpack.\n\n## Software Stack\n\n- Angular 2 (final)\n- Webpack 2\n- TypeScript\n- TsLint\n- Karma, Mocha\n\n## Prerequisits\n\nInstall webpack:\n\n    $ npm install -g webpack\n\n## Usage\n\nCheckout repository:\n\n    $ git clone https://github.com/kitconcept/webpack-starter-angular2.git\n    $ cd webpack-starter-angular2\n\nInstall dependencies:\n\n    $ npm install\n\nStart development server:\n\n    $ npm start\n\nRun unit tests:\n\n    $ npm test\n\n## Testing\n\nInstall Dependencies:\n\n    $ npm install karma karma-chrome-launcher karma-firefox-launcher karma-jasmine karma-mocha-reporter karma-webpack jasmine-core @types/es6-shim @types/jasmine --save-dev\n\npackage.json:\n\n    \"test\": \"karma start karma.conf.js\"\n\n\nMore details: https://github.com/Farata/angular2typescript/tree/master/chapter10/angular2-webpack-starter\n\n### Jenkins\n\nInstall karma-junit-reporter:\n\n    $ npm install karma-junit-reporter --save-dev\n\nAdd junit to report in karma.conf.js:\n\n    reporters: ['mocha', 'junit'],\n\n## Test Coverage\n\nInstall dependencies:\n\n    $ npm install karma-coverage karma-sourcemap-loader --save-dev\n\nKarma configuration (karma.conf.js):\n\n    reporters    : ['mocha', 'junit', 'coverage'],\n    preprocessors: {'./karma-test-runner.js': ['webpack', 'coverage', 'sourcemap']},\n    coverageReporter: {\n      dir : 'coverage/',\n      reporters: [\n        { type: 'text-summary' },\n        { type: 'json' },\n        { type: 'html' }\n      ]\n    },\n\n## Linting\n\nInstall tslint and tslint-loader:\n\n    $ npm install tslint tslint-loader --save-dev\n\nCreate initial configuration file:\n\n    $ node_modules/tslint/bin/tslint init\n\nConfigure tslint-loader (webpack.config.js):\n\n    preLoaders: [\n        {\n            test: /\\.ts$/,\n            loader: \"tslint\"\n        }\n    ],\n    tslint: {\n      configuration: {\n          rules: {\n              quotemark: [true, \"double\"]\n          }\n      },\n\n      // tslint errors are displayed by default as warnings\n      // set emitErrors to true to display them as errors\n      emitErrors: false,\n\n      // tslint does not interrupt the compilation by default\n      // if you want any file with tslint errors to fail\n      // set failOnHint to true\n      failOnHint: true,\n\n      // These options are useful if you want to save output to files\n      // for your continuous integration server\n      fileOutput: {\n          // The directory where each file's report is saved\n          dir: \"./tslint-report/\",\n\n          // The extension to use for each report's filename. Defaults to \"txt\"\n          ext: \"xml\",\n\n          // If true, all files are removed from the report directory at the beginning of run\n          clean: true,\n\n          // A string to include at the top of every report file.\n          // Useful for some report formats.\n          header: \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003ccheckstyle version=\\\"5.7\\\"\u003e\",\n\n          // A string to include at the bottom of every report file.\n          // Useful for some report formats.\n          footer: \"\u003c/checkstyle\u003e\"\n      }\n    },\nInstall pre-commit hook:\n\n    $ npm install --save-dev pre-commit\n\nConfigure pre-commit hook (package.json):\n\n    \"pre-commit\": [\n      \"lint\"\n    ],\n\n\n## Code Guidelines\n\nEnforce following the Angular 2 code guidelines with codelyzer.\n\nInstall codelyzer:\n\n  $ npm install --save-dev codelyzer\n\n## Tools\n\n### Sublime Text 3\n\nhttps://github.com/Microsoft/TypeScript-Sublime-Plugin\n\n### Resources\n\n- Code samples from the book Angular 2 Development with TypeScript: https://github.com/Farata/angular2typescript\n- AngularClass starter kit: https://github.com/AngularClass/angular2-webpack-starter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitconcept%2Fwebpack-starter-angular2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkitconcept%2Fwebpack-starter-angular2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitconcept%2Fwebpack-starter-angular2/lists"}