Skip to content

Commit

Permalink
chore: Template based generator (#29)
Browse files Browse the repository at this point in the history
* Template based generator, first try
* Custom regex after handlebar
* Regenerated services based on new templates
* dependencies updated
  • Loading branch information
svrooij committed Jan 2, 2020
1 parent 834a985 commit 0ef0fb3
Show file tree
Hide file tree
Showing 27 changed files with 9,015 additions and 1,208 deletions.
16 changes: 16 additions & 0 deletions .vscode/launch.json
Expand Up @@ -37,5 +37,21 @@
"SONOS_HOST":"192.168.96.56"
},
},
{
"type": "node",
"request": "launch",
"name": "Debug generator",
"program": "${workspaceFolder}/src/generator/service-generator.js",
"args": [
"--generate",
"--save-description"
],
"console": "integratedTerminal",
"sourceMaps": true,
"internalConsoleOptions": "neverOpen",
"env": {
"SONOS_HOST":"192.168.96.56"
},
},
]
}
26 changes: 12 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -10,9 +10,8 @@
"specs": "mocha -r ts-node/register tests/**/*.test.ts",
"lint-fix": "eslint ./src/*.ts ./src/**/*.ts --fix",
"lint": "eslint ./src/*.ts ./src/**/*.ts",
"gen-srv": "node ./src/generator/service-generator.js",
"gen-srv": "node ./src/generator/service-generator.js --save-description --generate",
"coverage": "nyc -r lcov -e .ts -x \"*.test.ts\" npm run test",
"postinstall": "echo \"Check out the documentation in https://github.com/svrooij/node-sonos-ts or give me a shoutout on twitter @svrooij\"",
"semantic-release": "semantic-release",
"prepack": "npm run build",
"docs": "typedoc ./src"
Expand Down Expand Up @@ -42,6 +41,7 @@
"@typescript-eslint/parser": "^2.8.0",
"chai": "^4.2.0",
"eslint": "^6.7.0",
"handlebars": "^4.5.3",
"mocha": "^6.2.2",
"nyc": "^14.1.1",
"semantic-release": "^15.4.0",
Expand All @@ -51,7 +51,7 @@
},
"dependencies": {
"debug": "^4.1.1",
"fast-xml-parser": "^3.15.0",
"fast-xml-parser": "^3.15.1",
"guid-typescript": "^1.0.9",
"node-fetch": "^2.6.0"
},
Expand Down

0 comments on commit 0ef0fb3

Please sign in to comment.