{"id":14989133,"url":"https://github.com/darkdaskin/generator-userscript","last_synced_at":"2025-04-12T01:10:52.746Z","repository":{"id":57249194,"uuid":"94367372","full_name":"DarkDaskin/generator-userscript","owner":"DarkDaskin","description":"Yeoman generator for building userscripts with TypeScript and Webpack","archived":false,"fork":false,"pushed_at":"2017-07-13T19:34:22.000Z","size":12,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T07:18:47.977Z","etag":null,"topics":["typescript","userscript","webpack","yeoman-generator"],"latest_commit_sha":null,"homepage":null,"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/DarkDaskin.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":"2017-06-14T19:46:42.000Z","updated_at":"2022-03-15T19:28:59.000Z","dependencies_parsed_at":"2022-08-24T16:10:31.552Z","dependency_job_id":null,"html_url":"https://github.com/DarkDaskin/generator-userscript","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkDaskin%2Fgenerator-userscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkDaskin%2Fgenerator-userscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkDaskin%2Fgenerator-userscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkDaskin%2Fgenerator-userscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DarkDaskin","download_url":"https://codeload.github.com/DarkDaskin/generator-userscript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501861,"owners_count":21114684,"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":["typescript","userscript","webpack","yeoman-generator"],"created_at":"2024-09-24T14:17:44.832Z","updated_at":"2025-04-12T01:10:52.725Z","avatar_url":"https://github.com/DarkDaskin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# generator-userscript [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]\n\u003e Yeoman generator for building userscripts with TypeScript and Webpack\n\n## Installation\n\nFirst, install [Yeoman](http://yeoman.io) and generator-userscript using [npm](https://www.npmjs.com/) (we assume you have pre-installed [node.js](https://nodejs.org/)).\n\n```bash\nnpm install -g yo\nnpm install -g generator-userscript\n```\n\nThen generate your new project:\n\n```bash\nyo userscript\n```\n\n## Authoring your script\n\n * Script [metadata](https://wiki.greasespot.net/Metadata_Block) can be specified in`src/meta.json`.\n   * The contents of this file is validated using the `meta.schema.json` JSON schema.\n   * By default the script is configured to run on all pages. It is recommended to set up the `include` property with [rules](https://wiki.greasespot.net/Include_and_exclude_rules) to be run only on pages the script supports.\n * Script code is written in TypeScript and located in `src/index.ts`. You can split your code to modules and include them with an `import` directive.\n * CSS styles to be injected into web pages can be specified in `src/index.css` or any other CSS file imported into `src/index.ts`.\n   * If you do not need custom CSS styles, remove the import to exclude CSS injecting code from the compiled script.\n   * If you prefer other styling languages like LESS or SASS, you can install a corresponding Webpack loader and configure it in the `webpack.config.ts` file.\n\n## Building your script\n\n * All script files are combined into a single JS file with [Webpack](https://webpack.js.org/). The resulting file will be placed into the `dest/` directory.\n * To build a human-readable version of your script, run `npm build` in the Node.js command propmt.\n * To build a minified version of your script, run `npm build:prod` in the Node.js command propmt.\n\n## License\n\nMIT © [Dark Daskin](https://github.com/DarkDaskin/)\n\n\n[npm-image]: https://badge.fury.io/js/generator-userscript.svg\n[npm-url]: https://npmjs.org/package/generator-userscript\n[travis-image]: https://travis-ci.org/DarkDaskin/generator-userscript.svg?branch=master\n[travis-url]: https://travis-ci.org/DarkDaskin/generator-userscript\n[daviddm-image]: https://david-dm.org/DarkDaskin/generator-userscript.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/DarkDaskin/generator-userscript\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkdaskin%2Fgenerator-userscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkdaskin%2Fgenerator-userscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkdaskin%2Fgenerator-userscript/lists"}