Skip to content

j-oliver/ng-harvest-jira-sync

 
 

Repository files navigation

NgHarvestJiraSync

Chrome Webstore

The latest release version can be found in the chrome webstore. https://chrome.google.com/webstore/detail/harvest-%3E-jira-sync/imogkeoglmoaghpegcmghjicbdgbahio

Preparation for local build

This project was initially generated with Angular CLI version 1.0.0-beta.32.3.

  • Angular-cli must be installed locally to build the project. See also above link.
    • Install npm with sudo dnf install npm
    • Install angular-cli with npm install -g @angular/cli
    • Build this project with ng build - see also below

Build and Load as Chrome Plugin

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

  • You can import the content of the dist/ directory to chrome
    • goto chrome://extensions/
    • change to Developer mode
    • Load unpacked extension...
    • select the /dist folder (after calling ng build)
    • for reloading the plugin after code changes just call ng build - chrome automatically detects changes

Build release package

  • set release version in manifest.json
    • first digit - x: major release
    • second digit - y: feature release
    • third digit - z: bug fix release
    • firth digit: NOT used. Only set while development to "999" meaning "-SNAPSHOPT"
  • ng build
  • make relevant updates in releases/descriptions and releases/screenshots
    • screenshot needs to be 1280x800px .png
    • scale smaller screenshot via gimp to 1280px width
  • cd dist
  • zip -r ../releases/ng-harvest-jira-sync-x_y_z.zip *
  • upload zip file via https://chrome.google.com/webstore/developer/dashboard
    • update description and screenshot if relevant
  • commit to development branch / release branch
  • tag with new version
  • push commit & tag
  • merge into master branch
  • change version in development to next feature release version plus .999

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class/module.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

The Following Local Server & Tests are not used

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

  • This will not allow the app to communicate to JIRA and Harvest for CSRF reasons.
  • (!) Instead the app needs to be build using ng build and imported as chrome plugin

Running unit tests

Run ng test to execute the unit tests via Karma.

  • (!) no unit tests implemented so far

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

  • (!) no e2e tests implemented so far

About

Chrome plugin using a small angular2 popup to sync harvest timesheet entries to JIRA.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 82.0%
  • HTML 11.0%
  • JavaScript 4.9%
  • CSS 2.1%