{"id":13534047,"url":"https://github.com/zhanghai/gnome-shell-extension-es6-class-codemod","last_synced_at":"2025-04-01T22:31:09.783Z","repository":{"id":70274404,"uuid":"176717770","full_name":"zhanghai/gnome-shell-extension-es6-class-codemod","owner":"zhanghai","description":"A jscodeshift transform that helps migrating GNOME Shell extensions to 3.32","archived":true,"fork":false,"pushed_at":"2019-05-16T03:54:27.000Z","size":29,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-02T21:31:51.824Z","etag":null,"topics":["gnome-shell","gnome-shell-extension","javascript","jscodeshift"],"latest_commit_sha":null,"homepage":null,"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/zhanghai.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":"2019-03-20T11:20:58.000Z","updated_at":"2024-07-14T19:48:15.000Z","dependencies_parsed_at":"2023-02-23T19:00:44.237Z","dependency_job_id":null,"html_url":"https://github.com/zhanghai/gnome-shell-extension-es6-class-codemod","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/zhanghai%2Fgnome-shell-extension-es6-class-codemod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhanghai%2Fgnome-shell-extension-es6-class-codemod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhanghai%2Fgnome-shell-extension-es6-class-codemod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhanghai%2Fgnome-shell-extension-es6-class-codemod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhanghai","download_url":"https://codeload.github.com/zhanghai/gnome-shell-extension-es6-class-codemod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246720479,"owners_count":20822911,"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":["gnome-shell","gnome-shell-extension","javascript","jscodeshift"],"created_at":"2024-08-01T07:01:25.781Z","updated_at":"2025-04-01T22:31:09.775Z","avatar_url":"https://github.com/zhanghai.png","language":"JavaScript","funding_links":[],"categories":["Misc"],"sub_categories":["ant-design"],"readme":"# gnome-shell-extension-es6-class-codemod\n\nA [jscodeshift](https://github.com/facebook/jscodeshift/) transform that helps [migrating GNOME Shell extensions to 3.32](https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/361).\n\n## What it does\n\nIn order to migrate to the new ES6 class based syntax in GNOME Shell 3.32, the following changes will be made by this transform:\n\n- Replace `new Lang.Class()` and `new GObject.Class()` with the ES6 `class` syntax.\n    - If the old class is a GObject class, wrap the new class with `GObject.registerClass()`.\n- Replace `_init()` with `constructor`, if the old class is not a GObject class.\n- Replace `this.parent()` with `super.methodName()`, or `super()` if it's instead the `constructor`.\n- Add import for `GObject` if any old class was a GObject class, and remove import for `Lang` if it become unused.\n\nThe transform tries its best to preserve comments and spacing. However in some cases, you might still need to adjust the spacing manually, which is a limitation of the underlying framework.\n\n## Usage\n\n```bash\nnpm install\n# This will modify the files in place.\nnpx jscodeshift --run-in-band path/to/your/extension\n```\n\nTo see a example, run `npm test`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhanghai%2Fgnome-shell-extension-es6-class-codemod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhanghai%2Fgnome-shell-extension-es6-class-codemod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhanghai%2Fgnome-shell-extension-es6-class-codemod/lists"}