nvm use v8
to travel back in time to a point when the dev server worked perfectly.npm
command available. Test this with npm --version
.gulp
globally: npm install -g gulp
.npm install
.Serving extensions and themes locally is useful for rapid development without requiring the use of the XKit Editor, but some initial set up is required:
gulp server
to start the resource server. This task will automatically build the extension and theme files from source before the server starts. See gulp server
for more information.https://localhost:31337
and create a security exception for the localhost
domain. The project uses self-signed SSL/TLS certificates that are untrusted by default in order to work around mixed-content warnings for websites like Tumblr that are served over HTTPS.localhost
.Note: changes to extension and theme files are not automatically propagated to the XKit extension in the browser. Each time changes are made, XKit must be force-updated through “Update all my extensions” before the changes will be reflected.
npm test
Shortcut for eslint .
.
npm run dev
Shortcut for gulp server
.
npm run build
Uses web-ext build
with the necessary file exclusions to build and pack the WebExtension (unsigned).
gulp
(default)The default task.
See also: gulp build
.
gulp build
Top-level build task.
See also: gulp build:extensions
, gulp build:themes
.
gulp build:extensions
Builds the extension distribution from source, including the JSON-ified extension files, list.json
, and gallery.json
.
gulp build:themes
Builds the themes distribution from source, including themes.json
.
gulp server
Serve extension and theme files locally.