Skip to content

HemantPawar/hasjob-extension

Repository files navigation

Hasjob extension Build Status

upcoming Manifest V3 related changes are in the manifest-v3 branch

Unofficial job search extension for Hasjob. Allows the user to quickly check if any job is listed on Hasjob for the current website.

Getting started

You'll find source files in script.babel directory. Yeoman generator-chrome-extension was used for generating boilerplate code.

Install dependencies

Nvigate to root folder in your terminal to install project dependencies.

npm install

Babel

This extension supports ES 2015 syntax through babel transforming. While developing, When those of source has been changed, gulp babel should be run before test and run a extension on Chrome.

gulp babel

If you would like to have a continuous transforming by babel you can use watch task (recommended).

Watch

Watch task helps you reduce your efforts during development extensions. If the task detects your changes of source files, re-compile your sources automatically or Livereload(chromereload.js) reloads your extension. If you would like to know more about Live-reload and preview of Yeoman? Please see Getting started with Yeoman and generator-webapp for your understanding.

gulp watch

You need to load/reload extension after starting gulp watch for Live-reload to work.

For content scripts you need to refresh pages where it is used.

Build and Package

It will build your app as a result you can have a distribution version of the app in dist. Run this command to build your Chrome Extension app.

gulp build

You can also distribute your project with compressed file using the Chrome Developer Dashboard at Chrome Web Store. This command will compress your app built by gulp build command.

gulp package

It removes the generated dist directory and .tmp files.

gulp clean

License

MIT (c) 2017 Hemant Pawar, @HemantPawar