maxymiser-workflow

1.2.2 • Public • Published

Maxymiser Workflow

A mechanism to speed up maxymiser test development without having to copy-paste-save

To Initialise

npm i maxymiser-workflow

npm run init-workflow
Option Definition
-h, --help Print usage Information.
-t, --template Copy template files.
-f, --force Forces copying of template files (will overwrite).
-c, --campaign Campaign name (will default to package name).

init will run extract unless --template or --force is provided. Then it will run generate.

To extract from a URL

npm run extract

Follow the onscreen questions. You will need the full URL of //service.maxymiser.net/cg/v5/ get this from the devtools in your favourite browser or a Web Debugging Proxy.

To generate the file

npm run generate
npm run generate -- --variant=variant-name
Option Definition
-h, --help Print usage Information.
-v, --variant Variant to want to generate for
-a, --auto Uses first vaiant it finds

If no variant is provided (--variant=<name>). An interactive list will prompt for action. If --auto is use it the generate for the first variant it finds.

To dev

npm run watch

You will need to use a Web Debugging Proxy like Fidder or Charles to use the file generated.

Example Fiddler rule regex:(?ix)^https?://service.maxymiser.net/cg/v5/ to PATH/dist/replace_cg_v5.js

To Build

npm run build
Option Definition
-h, --help Print usage Information.
--minify Minify scripts (defaults to true).

This will build transform all of the script files to be copy-and-pasted into Maxymiser.

Readme

Keywords

none

Package Sidebar

Install

npm i maxymiser-workflow

Weekly Downloads

2

Version

1.2.2

License

MIT

Unpacked Size

45.3 kB

Total Files

28

Last publish

Collaborators

  • ao-retail