canjs / devtools

Chrome DevTools for CanJS.
https://chrome.google.com/webstore/detail/canjs-devtools/hhdfadlgplkpapjfehnjhcebebgmibcb
MIT License
5 stars 0 forks source link

Separate files for Chrome Store publishing and add a build script #100

Open phillipskevin opened 4 years ago

phillipskevin commented 4 years ago

Currently, there is no build in this package in order to limit the npm dependencies (adding steal-tools makes Chrome's Web Store complain because a dependency of a dependency includes something that looks like a private key).

This means that this package has to use the CanJS dependencies from the devtools-components package and that package has to export them like this: https://github.com/canjs/can-devtools-components/blob/03cbb453e81f12d8cff35f2fd390035dea91d20b/bindings-graph/bindings-graph.js#L91

In another extension I've built I've gotten around this by creating a separate folder to hold the files that will be published to the chrome store. The structure looks like this:

extension/
  manifest.json
  lib/
    can.js <- built file
node_modules/
package.json
build.js
can.js <- source file