After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770055 - Javascript snippets
Javascript snippets
Status: RESOLVED FIXED
Product: gnome-builder
Classification: Other
Component: snippets
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-08-17 22:54 UTC by Philip Chimento
Modified: 2016-08-28 18:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
snippets: Add decapitalize filter (1.86 KB, patch)
2016-08-17 22:55 UTC, Philip Chimento
committed Details | Review
snippets: Add GJS snippets (2.67 KB, patch)
2016-08-17 22:55 UTC, Philip Chimento
committed Details | Review

Description Philip Chimento 2016-08-17 22:54:33 UTC
Here are some snippets for GJS development.
Comment 1 Philip Chimento 2016-08-17 22:55:28 UTC
Created attachment 333530 [details] [review]
snippets: Add decapitalize filter

Works like the capitalize filter, but makes the first character
lowercase. Used, for example, for finding the name of JS module files:
const Lang = imports.lang;
Comment 2 Philip Chimento 2016-08-17 22:55:41 UTC
Created attachment 333531 [details] [review]
snippets: Add GJS snippets

- A shebang snippet to go with the corresponding ones in other languages
- Some snippets for imports of GJS, GI, and local modules
- Snippets for pure JS and GObject-derived classes
- Snippets for GObject properties and signals in GObject classes
Comment 3 Christian Hergert 2016-08-28 18:31:38 UTC
Looks good, thanks!

Attachment 333530 [details] pushed as 98da018 - snippets: Add decapitalize filter
Attachment 333531 [details] pushed as 1979e97 - snippets: Add GJS snippets