web-ext new: create the directory layout for an extension
See original GitHub issueWe should add a web-ext new
command that automatically generate a manifest.json
file and other common files to help the developer get started on a new WebExtension.
You could take a look at how ember new works for ideas.
The jpm init command is also similar but I like the general behavior of ember new
better.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:26 (17 by maintainers)
Top Results From Across the Web
create-web-ext - GitHub
Tool to create a directory structure for getting started with an addon - GitHub ... create-web-ext is a scaffolding tool for browser extensions....
Read more >web-ext command reference | Firefox Extension Workshop
A list of glob patterns to define which files should be ignored by build , run , lint and other commands. If you...
Read more >Anatomy of an extension - Mozilla - MDN Web Docs
An extension consists of a collection of files, packaged for ... Make packaged content accessible to web pages and content scripts.
Read more >Firefox extension .xpi file structure: description, contents ...
The .xpi file for a Firefox Add-on SDK extension should be created by executing ... Go to your extension folder, open a terminal...
Read more >Webex Wireless Phone 840 and 860 administration guide for ...
Softkey templates—You can set up the list of features that appear on ... your site policies and procedures for new extension provisioning, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Fedcomp since when this issue was filed a few things are being done:
both npm and yarn introduced a command to bootstrap a package, and long time ago I created a simple create-webextension npm package to leverage that (nothing fancy just a minimal boilerplate like the one you are describing in https://github.com/mozilla/web-ext/issues/540#issuecomment-868336697), and so you can already do run one of the following commands to bootstrap a minimal webextension:
npm init webextension my-test-extension
yarn create webextension my-test-extension
npx create-webextension mu-test-extension
we have also listed in our docs an extension scaffolding tool that provides some more options:
Reading this, i feel like you over-over-overcomplicate this. I am Rust user, and cargo new is very simple command. When i run web-ext new/init i expect same, VERY basic layout. No need for depedencies, no need for complicated logic. Just manifest, 1 empty content-script, 1 background script. Instead this issue went overengineering, and now it’s not resolved since 2016 (4 years!!!).
I suggest to implement
web-ext new/init
with very basic functionality for very basic template (and the only one, not extendedable or configurable) for new extension. If someone REALLY needs something more advanced, they would start new issue, after basic web-ext new/init is released.