widget-ts-cookiecutter
widget-ts-cookiecutter copied to clipboard
how to specify javascript code needed
Hi folks, in basic js based extensions, the developer could specify the files required, like the following
https://github.com/ipython-contrib/jupyter_contrib_nbextensions/blob/master/src/jupyter_contrib_nbextensions/nbextensions/codefolding/main.js#L13-L23
What is the equivalent in this repo? Where could it be specified? I need the 'codemirror/addon/fold/foldcode', and I don't know where to specify it.
Thanks!
I think ipycytoscape is a good example for those types of imports.
The imports are here: https://github.com/QuantStack/ipycytoscape/blob/61c4679b07bb820b88a7ede1bdc7c678d9c141b9/src/widget.ts#L20-L28 and the packages are specified in package.json here https://github.com/QuantStack/ipycytoscape/blob/61c4679b07bb820b88a7ede1bdc7c678d9c141b9/package.json#L58-L62