gaetan
03/13/2018, 11:44 AMpopulateNodeModules
task. But I think I miss something. See https://youtrack.jetbrains.com/issue/KT-20210anton.bannykh
03/13/2018, 11:50 AMgaetan
03/13/2018, 11:55 AMkotlin-js-min
. No problem here.
But I thought that using kotlin-dce with devmode set to true could be used to remove the populateNodeModules
task that we find in a lot of kotlin/JS project.
But I cannot make my build working without a node_modules
directory.gaetan
03/13/2018, 11:58 AManton.bannykh
03/13/2018, 11:58 AMnode_modules
name is special - NodeJs (and browserify) treat such directories as a place where to get modules from (e.g kotlin.js)gaetan
03/13/2018, 11:58 AManton.bannykh
03/13/2018, 11:59 AMpaths
option to browserify (e.g. https://github.com/vigetlabs/blendid/issues/17)gaetan
03/13/2018, 11:59 AMgaetan
03/13/2018, 12:02 PMpopulateNodeModules
is working so there is no problem here. I was just asking in case a better solution was working.anton.bannykh
03/13/2018, 12:13 PManton.bannykh
03/13/2018, 12:29 PMnode_modules
to someDirectory
in the populateNodeModules task in your repository. The tests failed to launch as expected. Adding browserify: { paths: ['build/someDirectory'] },
to the karma.conf.js solved the problem.anton.bannykh
03/13/2018, 12:30 PMgaetan
03/13/2018, 12:34 PMpaths: ['build/kotlin-js-min/test', 'build/kotlin-js-min/main']
gaetan
03/13/2018, 12:35 PMgaetan
03/13/2018, 12:36 PMgaetan
03/13/2018, 12:36 PManton.bannykh
03/13/2018, 12:39 PManton.bannykh
03/13/2018, 12:44 PMgaetan
03/13/2018, 1:12 PManton.bannykh
03/13/2018, 1:14 PMgaetan
03/13/2018, 3:46 PManton.bannykh
03/13/2018, 3:50 PMgaetan
03/13/2018, 3:57 PManton.bannykh
03/13/2018, 3:58 PMgaetan
03/13/2018, 3:58 PManton.bannykh
03/13/2018, 3:58 PMgaetan
03/13/2018, 3:59 PM