{"id":15413183,"url":"https://github.com/tomwayson/generator-esri-widget","last_synced_at":"2025-06-15T07:36:59.635Z","repository":{"id":17782649,"uuid":"20655369","full_name":"tomwayson/generator-esri-widget","owner":"tomwayson","description":"Yeoman generator to create custom Dojo widgets for Esri web applications","archived":false,"fork":false,"pushed_at":"2016-09-22T02:03:59.000Z","size":67,"stargazers_count":17,"open_issues_count":4,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T06:51:16.982Z","etag":null,"topics":[],"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/tomwayson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-09T17:25:03.000Z","updated_at":"2019-04-11T02:21:59.000Z","dependencies_parsed_at":"2022-09-02T22:01:49.604Z","dependency_job_id":null,"html_url":"https://github.com/tomwayson/generator-esri-widget","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomwayson%2Fgenerator-esri-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomwayson%2Fgenerator-esri-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomwayson%2Fgenerator-esri-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomwayson%2Fgenerator-esri-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomwayson","download_url":"https://codeload.github.com/tomwayson/generator-esri-widget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249191311,"owners_count":21227543,"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-10-01T16:55:57.344Z","updated_at":"2025-04-16T03:33:24.790Z","avatar_url":"https://github.com/tomwayson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generator-esri-widget [![Build Status](https://secure.travis-ci.org/tomwayson/generator-esri-widget.png?branch=master)](https://travis-ci.org/tomwayson/generator-esri-widget)\n\n\u003e [Yeoman](http://yeoman.io) generator to create custom Dojo widgets for Esri web applications.\n\n**Not to be confused with [Esri/generator-esri-appbuilder-js](http://github.com/Esri/generator-esri-appbuilder-js) which scaffolds out widgets specifically for the ArcGIS Web AppBuilder**\n\n## About\n\nThis generator scaffolds out the boilerplate files that are need each time you create a new custom Dojo widget for a web application using Esri's ArcGIS API for JavaScript.\n\n![Screenshot](https://raw.githubusercontent.com/tomwayson/generator-esri-widget/master/docs/images/yo-esri-widget.png)\n\nThis generator was \u003cdel\u003estolen\u003c/del\u003e forked and adapted from [@steveoh](https://github.com/steveoh)'s [generator-dojo-widget](https://github.com/steveoh/generator-dojo-widget). I've been using that generator for a while now, and it does an excellent job of scaffolding out the files needed for a Dojo widget. However, I found myself making the same changes to those files each time I ran it, so I wanted to change the generator so that it would:\n\n* Include a map in the test page by default\n* Write the spec tests with [mocha] instead of [jasmine](http://jasmine.github.io/)\n* Indent using 2 spaces instead of 4 for .js files, 'cause a hata's gotta hate.\n\nSince these are *my* preferences and I didn't think that they would make their way back into the original generator, I decided to make my fork its own source with a new name - with nothing but love and respect for [@steveoh](https://github.com/steveoh).\n\n## Getting Started\n\n### Installation\n\nTo install Yeoman from npm (if not already), run:\n\n```bash\n$ npm install -g yo\n```\n\nTo install generator-esri-widget from npm, run:\n\n```bash\n$ npm install -g generator-esri-widget\n```\n\n### Running the Generator\n\nNavigate to your application's root folder and run the following at the command line:\n\n```\n$ yo esri-widget\n```\n\nA few opinionated files will be created. If you created a widget called `test` in the `app` folder, the following files will be created for you.\n\n      'app/test.js',\n      'app/templates/test.html',\n      'app/tests/testTests.html',\n      'app/tests/spec/Spectest.js',\n      'app/resources/test.css'\n\nThe `/test.js` file will contain your widget logic.\n`/templates/test.html` will be an empty template file if your widget has a template.\n`tests/testTests.html` is an html page that you can load to see your widget in isolation.\n`tests/spec/Spectest.js` is a [mocha] test spec file with a default test instantiating your new widget.\n`tests/test.css` is the style sheet containing styles specific to your new widget.\n`resources/test.css` is the style sheet containing styles specific to your new widget.\n\n## License\n\nMIT\n\n[mocha]:http://mochajs.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomwayson%2Fgenerator-esri-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomwayson%2Fgenerator-esri-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomwayson%2Fgenerator-esri-widget/lists"}