chromium / caterpillar

Project to investigate porting Chrome Apps to websites.
Apache License 2.0
59 stars 31 forks source link

Caterpillar should generate app.info.js #12

Closed m-alger closed 8 years ago

m-alger commented 8 years ago

app.info.js is used by the runtime polyfill (and possibly in future polyfills) for querying the manifest and Chrome App ID (basically any metadata we were originally able to access in the Chrome App). This should be generated by Caterpillar and put into the root of the output web app.

m-alger commented 8 years ago

The structure of this file should be

chrome.caterpillar.manifest = {
  'name': 'test'
};
chrome.caterpillar.appId = 123;

It can assume chrome.caterpillar exists. It should be included as a dependency file, and injected into the HTML after caterpillar.js and before any polyfills.

m-alger commented 8 years ago

Resolved in this CL.