mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 12:13:19 +00:00
Generate phaser.json
This commit is contained in:
parent
ab9fced253
commit
904d1f446f
3 changed files with 7 additions and 1 deletions
|
@ -18,6 +18,8 @@ function publish(data, opts) {
|
|||
if (!fs.existsSync(opts.destination)) {
|
||||
fs.mkdirSync(opts.destination);
|
||||
}
|
||||
var str = JSON.stringify(data().get(), null, 4);
|
||||
fs.writeFileSync(path.join(opts.destination, 'phaser.json'), str);
|
||||
var out = new Parser_1.Parser(data().get()).emit();
|
||||
fs.writeFileSync(path.join(opts.destination, 'phaser.d.ts'), out);
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"publish.js","sourceRoot":"","sources":["../src/publish.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,6BAA6B;AAC7B,qCAAkC;AAElC,SAAgB,OAAO,CAAC,IAAS,EAAE,IAAS;IACxC,6BAA6B;IAC7B,IAAI,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IACtC,sBAAsB;IACtB,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IACnC,yBAAyB;IACzB,IAAI,CAAC,EAAE,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IACjD,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IACrC,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IAEhC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;QAClC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;KAClC;IAED,IAAI,GAAG,GAAG,IAAI,eAAM,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CAAC;IAElE,IAAI,GAAG,GAAG,IAAI,eAAM,CAAC,IAAI,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAE1C,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC,EAAE,GAAG,CAAC,CAAC;AACtE,CAAC;AAvBD,0BAuBC;AAAA,CAAC"}
|
|
@ -18,6 +18,10 @@ export function publish(data: any, opts: any) {
|
|||
fs.mkdirSync(opts.destination);
|
||||
}
|
||||
|
||||
var str = JSON.stringify(data().get(), null, 4);
|
||||
|
||||
fs.writeFileSync(path.join(opts.destination, 'phaser.json'), str);
|
||||
|
||||
var out = new Parser(data().get()).emit();
|
||||
|
||||
fs.writeFileSync(path.join(opts.destination, 'phaser.d.ts'), out);
|
||||
|
|
Loading…
Reference in a new issue