[Pkg-javascript-devel] request to join the JS team
Pirate Praveen
praveen at onenetbeyond.org
Thu May 12 10:39:56 BST 2022
2022, മേയ് 12 2:21:24 PM IST, Philip Hands <phil at hands.com>ൽ എഴുതി
>Jérémy Lal <kapouer at melix.org> writes:
>
>> Le jeu. 12 mai 2022 à 10:27, Philip Hands <phil at hands.com> a écrit :
>>
>>> Jérémy Lal <kapouer at melix.org> writes:
>>>
>>> > Le jeu. 12 mai 2022 à 08:50, Philip Hands <phil at hands.com> a écrit :
>>> >
>>> >> Hi,
>>> >>
>>> >> I maintain openQA, which recently gained a dependency on (the currently
>>> >> unpackaged) shepherd.js.
>>> >>
>>> >> I therefore need to package that, and it seems that the right way to
>>> >> proceed is as part of the JS team, hence this request.
>>> >>
>>> >> I've already requested to join the Salsa group, and had a good look at
>>> >> the wiki pages about this stuff -- is there anything else I need to do?
>>> >>
>>> >> BTW If I need to ask newbie questions about packaging JS pacakges,
>>> >> where's the best place to do that: here, #debian-js, or somewhere else?
>>> >>
>>> >
>>> > shepherd.js depends on a lot of packages, some of them might need to be
>>> > bundled.
>>> > In any case, please don't bundle:
>>> > - tailwindcss
>>> > - svelte
>>>
>>> Oh, that wasn't the impression I got when I ran (as suggested here
>>> https://wiki.debian.org/Javascript/Tutorial#Starting_a_new_package):
>>>
>>> pkgjs-depends shepherd.js
>>>
>>> which told me:
>>>
>>> DEPENDENCIES:
>>> node-deepmerge (deepmerge)
>>> node-popper2 (@popperjs/core)
>>>
>>> MISSING:
>>> shepherd.js
>>> └── smoothscroll-polyfill (0.4.4)
>>>
>>> which I interpreted to mean that only `smoothscroll-polyfill` was
>>> missing -- is that wrong?
>>>
>>
>> Yes, it is wrong :)
>> package.json contains a build script that calls rollup, which in turn
>> bundles
>> several of its devDependencies into a distributable bundle (using postcss
>> and
>> several rollup plugins).
>> Mind that some devDependencies are only used to check source code (eslint,
>> prettier...),
>> or for test suites (jest, chai, http-server...)
>
>Hmm, I suspect that this task is not currently within my competence, I'm
>afraid.
>
>I'm vaguely aware that package.json is used as some sort of
>specification for packages in javascript-land.
>
>rollup is presumably some sort of build tool?
>
>How can one tell that something is only used for build-time stuff?
devDependencies section in package.json
Though you may be able to skip or replace some build dependencies.
As Jonas suggested, terser can be used to minify. May be skip CSS minification and avoid cssnano.
>Cheers, Phil.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
More information about the Pkg-javascript-devel
mailing list