Before you start working on a larger contribution, you should get in touch with us first through the issue tracker with your idea so that we can help out and possibly guide you. Coordinating up front makes it much easier to avoid frustration later on.
Source Maps are enabled by default (as of Chrome 39), but if you’d like to double-check or enable them, first open DevTools and click the settings cog gear. Under Sources, check Enable JavaScript Source Maps. You might also check Enable CSS Source Maps.
During development you should only use the debug mode, which provides additional informations and pre-checks over:
npm run debugIf you change something in the source code, you will need to re-compile it by:
npm run rebuildAfter this you only need to reload the Chrome App to see your change in action.
Run the following command to update the dependencies to the latest version:
npm run updateAfter this you only need to reload the Chrome App to see your change in action.
To enable the experimental Google Drive support add your application key and
your api key to the app/manifest.json file:
…
"description": "Coding with Chrome.",
"key": "MIIBIjANBgkqhki…",
…
"oauth2": {
"client_id": "958…",
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/userinfo.profile"
]
},
…Since this feature is experimental, although problems are unlikely we can not guarantee this code is error free. Please make sure that you back up your Google Drive data, or only use test accounts without critical files or data.
See: https://developer.chrome.com/apps/app_identity
For debug instruction, please check DEBUG.md.