{"id":14973459,"url":"https://github.com/davidkk/ngwp","last_synced_at":"2025-07-14T06:02:11.912Z","repository":{"id":65458785,"uuid":"81219036","full_name":"DavidKk/ngwp","owner":"DavidKk","description":"Project scaffold (Webpack, AngularJS, ES6, SCSS, Jade/Pug)","archived":false,"fork":false,"pushed_at":"2018-01-16T08:40:16.000Z","size":276,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T19:49:41.020Z","etag":null,"topics":["angular1","angularjs","jade","sass","scaffold","webpack"],"latest_commit_sha":null,"homepage":"","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/DavidKk.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-02-07T14:49:43.000Z","updated_at":"2018-01-03T14:53:45.000Z","dependencies_parsed_at":"2023-01-24T13:25:11.971Z","dependency_job_id":null,"html_url":"https://github.com/DavidKk/ngwp","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/DavidKk/ngwp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidKk%2Fngwp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidKk%2Fngwp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidKk%2Fngwp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidKk%2Fngwp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavidKk","download_url":"https://codeload.github.com/DavidKk/ngwp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidKk%2Fngwp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265248418,"owners_count":23734234,"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":["angular1","angularjs","jade","sass","scaffold","webpack"],"created_at":"2024-09-24T13:48:47.940Z","updated_at":"2025-07-14T06:02:11.816Z","avatar_url":"https://github.com/DavidKk.png","language":"JavaScript","readme":"[![GitHub version](https://badge.fury.io/gh/DavidKk%2Fngwp.svg)](https://badge.fury.io/gh/DavidKk%2Fngwp)\n[![npm version](https://badge.fury.io/js/ngwp.svg)](https://badge.fury.io/js/ngwp)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com)\n\n[![Build Status](https://travis-ci.org/DavidKk/ngwp.svg?branch=master)](https://travis-ci.org/DavidKk/ngwp)\n[![Build status](https://ci.appveyor.com/api/projects/status/p76hetxe0us38axx?svg=true)](https://ci.appveyor.com/project/DavidKk/ngwp)\n[![Coverage Status](https://coveralls.io/repos/github/DavidKk/ngwp/badge.svg?branch=master)](https://coveralls.io/github/DavidKk/ngwp?branch=master)\n[![Dependency Status](https://dependencyci.com/github/DavidKk/ngwp/badge)](https://dependencyci.com/github/DavidKk/ngwp)\n\n\n# Project Information\n\n## Install\n\n```\n$ npm install -g ngwp\n```\n\n\n## Example\n\n[https://github.com/DavidKk/ngwp-todo](https://github.com/DavidKk/ngwp-todo)\n\n\n## Nginx config file generation and import\n\nConfig file in project, [.ngwprc.json](https://github.com/DavidKk/ngwp-todo/blob/master/.ngwprc.json)\n\n```\n$ vi project/.ngwprc.json\n$ ngwp nginx\n```\n\n# Features\n\n## Multiple Modules\n\nYou can define multiple entry/modules in folder [src/modules/](https://github.com/DavidKk/ngwp-todo/tree/master/src/modules). Different modules must define different nginx configurations, see [.ngwprc.json](https://github.com/DavidKk/ngwp-todo/blob/master/.ngwprc.json).\n\n\n## Image Sprites Auto-Generate\n\nPut all image-sprites to folder [src/assets/sprites/images/](https://github.com/DavidKk/ngwp-todo/tree/master/src/assets/sprites/images), it will combine them to only one image (`dist/path/assets/panels/sprite.{hashcode}.png`).\n\nThe base unit is percentage (`%`) not `px` or `rem`. You can change it by file [src/assets/sprites/images/sprite.scss.template.handlebars](https://github.com/DavidKk/ngwp-todo/blob/master/src/assets/sprites/images/sprite.scss.template.handlebars)\n\n\n## SVG Sprites Auto-Generate\n\nPut all svg-sprites to folder [src/assets/sprites/svg/](https://github.com/DavidKk/ngwp-todo/tree/master/src/assets/sprites/svg), it will combine them to only one svg (`dist/path/assets/panels/svgsprite.{hashcode}.svg`).\n\nAnd the SVGO config file is in [src/assets/sprites/svg/svgstore.config.js](https://github.com/DavidKk/ngwp-todo/blob/master/src/assets/sprites/svg/svgstore.config.js)\n\n### Compatibility must be known:\n\n```\nsvg in webkit old browser, it not support use (reference)\nit must use '\u003cuse xlink:href=\"url#id\"\u003e\u003c/use\u003e'\nand because svgo(https://github.com/svg/svgo) do not set\n'xmlns:xlink=\"http://www.w3.org/1999/xlink\"', so it make\norigin svg content with use tag lack 'namespace' 'prefix',\nand it make svg display success.\n\nError Code:\nThis page contains the following errors:\nerror on line 1 at column 15734: Namespace prefix xlink for href on use is not defined\nBelow is a rendering of the page up to the first error.\nBrowser: Chrome 48.0.2564.23:\nMozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N)\nAppleWebKit/537.36 (KHTML, like Gecko)\nChrome/48.0.2564.23\nMobile Safari/537.36\nwechatdevtools/0.7.0\nMicroMessenger/6.3.22\nwebview/0\n\nDocs : https://github.com/svg/svgo/blob/master/docs/how-it-works/en.md#3-plugins\nAPI  : https://github.com/svg/svgo/blob/master/docs/how-it-works/en.md#32-api\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidkk%2Fngwp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidkk%2Fngwp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidkk%2Fngwp/lists"}