0.5.0 • Published 4 years ago

@chromex/cli v0.5.0

Weekly downloads
18
License
MIT
Repository
github
Last release
4 years ago

MIT License

Table of Contents

Features

Prerequisites

  • Knowledge of javascript is a must
  • Knowledge of chrome extension development is good to have
  • nodeJS >= 8.9.0
  • npm >= 5.2.0 (npx support)
  • Chrome >= 55

This project was developed on macOS, so it should work fine on Linux-based systems. You might run into issues developing on Windows as it hasn't been tested yet. In any case, report issues here!

Quickstart

Enough talking, give me my extension!

In this demo, we will create a simple extension with a browser action popup.

1. Generate the project folder

Run the following command in your terminal:

 npx @chromex/init my-extension

After some output, a folder named my-extension will be generated in the current working directory.

2. Start the development server

cd my-extension
npm run dev

After some more output to the terminal, you should see a folder named ext/ created in my-extension/.

3. Load unpacked extension

Navigate to chrome://extensions on your chrome browser and click on the Load unpacked button (If you don't see it, you might have to enable Developer mode on the top right corner of the same page first). Select the generated ext/ folder from your project root as the target extension directory.

Load unpacked

4. Voila!

Your extension should appear in the chrome extensions list now, and the extension icon should appear in the extension bar (top right corner of your browser window). Click on it to see the boilerplate popup page. You have just completed setting up your first extension environment!

Voila

Documentation

1. Overview

2. Customizing Extension Pages

3. Publishing your extension

Roadmap

  1. Support page templates using other frontend frameworks e.g. React, Vue (currently supports only preact)
  2. More comprehensive documentation
  3. HMR Support
  4. Better testing

Contact

@bluepropane1 - rbluepropane@gmail.com

Project Link: https://github.com/bluepropane/chromex

Contributing

I started on this project simply because I am interested in chrome extensions. Still active in the process of developing it but can't do everything solo, so any contribution at all is greatly appreciated! You drop me a message, create an issue or pull request :)

It doesn't have to fix a problem - it can also be something you have in mind that will make developing chrome extensions more efficient for everyone!

Acknowledgements

License

Distributed under the MIT License. See LICENSE for more information.

.

.

.

.

.

.

0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago