2.0.2 • Published 7 months ago

ophan-tracker-js v2.0.2

Weekly downloads
768
License
-
Repository
-
Last release
7 months ago

Ophan Tracker JS

Browser JavaScript client for Ophan.

Install

$ npm install ophan-tracker-js

Contribute

Proxy tracker-ts:

  1. Install dependencies

    $ brew install lighttpd
    .../ophan/tracker-js $ npm install
  2. In one terminal window:

    .../ophan/tracker-js $ grunt
    .../ophan/tracker-js $ grunt watch
  3. In another terminal window:

    .../ophan/tracker-js $ lighttpd -f lighttpd.conf -D
  4. Install FoxyProxy (https://getfoxyproxy.org/downloads/) in your browser and create a rule that forces j.ophan.co.uk to localhost 8000. (For me FoxyProxy needed a few switches on and off before it decided to start talking to lighttpd.)

  5. In another terminal window, start a server that is running the Guardian frontend

  6. Navigate to where you are running the Guardian locally (e.g. https://localhost:9000/uk)

  7. Ensure FoxyProxy is enabled

  8. Develop with pleasure

Publish

Two formats for release

When you make a change to Tracker JS, you must release on both these systems:

Ensure that before you merge a change, you first bump the version in package.json. Please make sure you update the changes.md file too. If you have added a new Ophan client to support a new platform, please add the path to the built output file to the files list in package.json.

Publish to NPM

Whenever the Tracker script is changed, its ophan-tracker-js NPM package will need to be updated to a new version.

If you don't already have an NPM account, be sure to set up two-factor authentification.

Log into NPM

$ npm login

Compile

.../ophan/tracker-js $ npm install

Publish

.../ophan/tracker-js $ npm publish

You will need to be added as an owner of ophan-tracker-js. To find the current owners:

$ npm owner ls ophan-tracker-js 

To add someone as an owner:

npm owner add npm.username ophan-tracker-js

More information on setting owners is available in NPM's documentation.

2.0.2

7 months ago

2.0.1

8 months ago

1.4.3

8 months ago

1.4.2

9 months ago

1.4.1

9 months ago

2.0.0-beta-5

9 months ago

2.0.0-beta-4

9 months ago

2.0.0-beta-3

9 months ago

2.0.0-beta-2

9 months ago

2.0.0-beta

1 year ago

2.0.0

1 year ago

1.4.0

2 years ago

1.4.0-beta.0

2 years ago

1.3.29

2 years ago

1.3.28

3 years ago

1.3.27

3 years ago

1.3.26

3 years ago

1.3.25

3 years ago

1.3.24

3 years ago

1.3.23

4 years ago

1.3.22

4 years ago

1.3.21

4 years ago

1.3.20

5 years ago

1.3.19

5 years ago

1.3.18

5 years ago

1.3.17

5 years ago

1.3.16

5 years ago

1.3.14

6 years ago

1.3.13

6 years ago

1.3.12

6 years ago

1.3.11

6 years ago

1.3.10

6 years ago

1.3.9

7 years ago

1.3.8

7 years ago

1.3.7

7 years ago

1.3.6

7 years ago

1.3.5

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago