1.2.1 • Published 6 years ago
attr-ui v1.2.1
Attrace UI CLI
CLI for easily bootstrapping ui system with modern react libraries
Install
npm install -g attr-uiUsage
attr-ui --helpCreate new app
attr-ui newappWith campaign id:
attr-ui newapp --campaignid=[campaignid]With campaign config: If campaignId is not provided as params, then new campaign can be automatically created! can provide the path to campaign json file.
attr-ui newapp --campaign-config [campaign_json_file_path]Update app
At the root app folder, run:
attr-ui --updateThe cli will take attrUiConfig.json and recompile all templates again
Force config update:
attr-ui --update --forceattrUiConfig.json
{
"companyName": "company name",
"name": "gaming",
"campaignId": "9d681161-9bad-4300-b689-3a06215541a4",
"description": "",
"repo": "",
"manager": "yarn",
"git": true,
"advertiserAddress": "ACPK4HPCM6HAAPAIE75ZJFSMNK2UI56CTCAAXNKI4THIQ33OOQKBQFFO",
"shortName": ""
}campaign.json
{
"TargetUrl": "https://example.com",
"CookieTime": 120,
"Conversions": [
{
"Type": "lead",
"ConversionUrl": "https://example.com/lead",
"PaymentType": "USD",
"Compensation": 120
}
]
}