widget-ts-cookiecutter icon indicating copy to clipboard operation
widget-ts-cookiecutter copied to clipboard

how to specify javascript code needed

Open yifanwu opened this issue 5 years ago • 1 comments
trafficstars

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!

yifanwu avatar Mar 14 '20 21:03 yifanwu

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

ianhi avatar Jul 11 '20 15:07 ianhi