1.2.2 • Published 6 years ago

maxymiser-workflow v1.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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
OptionDefinition
-h, --helpPrint usage Information.
-t, --templateCopy template files.
-f, --forceForces copying of template files (will overwrite).
-c, --campaignCampaign 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
OptionDefinition
-h, --helpPrint usage Information.
-v, --variantVariant to want to generate for
-a, --autoUses 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
OptionDefinition
-h, --helpPrint usage Information.
--minifyMinify scripts (defaults to true).

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