[Pkg-javascript-devel] Help needed to package juniper

Andreas Tille andreas at an3as.eu
Wed Dec 12 13:09:05 GMT 2018


Hi Paolo,

> to know how upstream builds it, look at package.json in scripts.build key
> 
> It says: 
> NODE_ENV=production webpack --display-chunks && rm -rf dist/*.juniper.min.js"
> 
> so you'll need webpack.
> 
> You'd then proceed to webpack.config.js to see what plugins/tools it will pull
> 
> See: https://wiki.debian.org/Javascript/Nodejs?highlight=%28webpack%29

Thanks for the helpful hint.  I made some progress but now I get:


ERROR in ./src/index.js
Module not found: Error: Can't resolve '@jupyterlab/outputarea' in '/home/andreas/debian-maintain/salsa/js-team/juniper/src'
 @ ./src/index.js 5:0-69

ERROR in ./src/index.js
Module not found: Error: Can't resolve '@jupyterlab/rendermime' in '/home/andreas/debian-maintain/salsa/js-team/juniper/src'
 @ ./src/index.js 6:0-87

ERROR in ./src/index.js
Module not found: Error: Can't resolve '@jupyterlab/services' in '/home/andreas/debian-maintain/salsa/js-team/juniper/src'
 @ ./src/index.js 4:0-64

ERROR in ./src/index.js
Module not found: Error: Can't resolve '@phosphor/widgets' in '/home/andreas/debian-maintain/salsa/js-team/juniper/src'
 @ ./src/index.js 3:0-43

ERROR in ./src/index.js
Module not found: Error: Can't resolve 'codemirror' in '/home/andreas/debian-maintain/salsa/js-team/juniper/src'
 @ ./src/index.js 1:0-36

ERROR in ./src/index.js
Module not found: Error: Can't resolve 'codemirror/mode/python/python' in '/home/andreas/debian-maintain/salsa/js-team/juniper/src'
 @ ./src/index.js 2:0-51


May be that's a matter of missing Build-Depends (I've added
node-babel-loader but with for instance libjs-codemirror is not
providing anything that would help here).

Any further hints?

Kind regards

       Andreas.

PS: I'm not subscribed to this list so CC would be welcome
    but I can (obviously) read the web archive. ;-)

-- 
http://fam-tille.de



More information about the Pkg-javascript-devel mailing list