A mechanism to speed up maxymiser test development without having to copy-paste-save
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
.
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.
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.
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
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.