Debian Browserify

305 Members
Mentoring Newbies in node/js packaging | Originally: package nodejs tools like browserify/webpack/rolup/babel. browserification is the process of adapting code written for nodejs to run on a browser. This may include combining modules to a single file or adding functionality only present in nodejs | Pre requisites  https://wiki.debian.org/Packaging/Pre-Requisites (Gives you instructions to setup a development environment)5 Servers

Load older messages

Timestamp Message
18 Feb 2019
14:56:13@praveen:poddery.comPirate ‍ Praveenand follow https://wiki.debian.org/Javascript/Nodejs#Rollup to run rollup during package build
14:56:59@sumedhpatkar:poddery.comsumedhpatkar"rollup -c" has to be run only once right?
14:58:13@praveen:poddery.comPirate ‍ Praveenit should be in debian/rules like in that wiki
14:58:29@praveen:poddery.comPirate ‍ PraveenI said to run that manually to see if the command is actually working before we add to rules
14:58:56@sumedhpatkar:poddery.comsumedhpatkarOh. So if it is in debian/rules, then dpkg-buildpackage considers it and runs it, right?
14:59:06@praveen:poddery.comPirate ‍ Praveenyes
14:59:34@praveen:poddery.comPirate ‍ Praveenyou have to add it correctly, rules follows gnu make syntax
15:02:02@nickdex:matrix.orgnickdex Question, do we package dist (or any built files)?
Or do we build them fresh for user installs package?
15:02:39@praveen:poddery.comPirate ‍ Praveen sumedhpatkar: see https://salsa.debian.org/js-team/node-chart.js/blob/master/debian/rules
15:03:30@praveen:poddery.comPirate ‍ Praveenhere you need just rollup -c (no need to pass the config file as rollup.config.js is in the root directory of the package)
15:03:46@praveen:poddery.comPirate ‍ Praveen nickdex: we generate during build
15:03:53@praveen:poddery.comPirate ‍ Praveensee the link I shared above
15:04:09@sumedhpatkar:poddery.comsumedhpatkarand not even uglifyjs, right? What about dh_auto_clean?
15:04:17@praveen:poddery.comPirate ‍ Praveen
and follow https://wiki.debian.org/Javascript/Nodejs#Rollup to run rollup during package build
nickdex ^
In reply to @praveen:poddery.com
nickdex: we generate during build
Good :)
In reply to @sumedhpatkar:poddery.com
dpkg-buildpackage is done.
.deb file is created in parent directory.

It gave a little warning at the end
"dpkg-buildpackage: warning: not signing UNRELEASED build; use --force-sign to override"

Can it be ignored? Or I do as it says?
I followed the process again. I am at this step now
15:10:18@praveen:poddery.comPirate ‍ Praveen
In reply to @sumedhpatkar:poddery.com
and not even uglifyjs, right? What about dh_auto_clean?
just follow the format, you only need one command there. clean also you need
15:10:51@praveen:poddery.comPirate ‍ Praveen sumedhpatkar: did you remove dist?
15:12:52@sumedhpatkar:poddery.comsumedhpatkarRedacted or Malformed Event
In reply to @praveen:poddery.com
sumedhpatkar: did you remove dist?
Do i need to remove it manually? Or dh_auto_clean will take care of that?
15:18:47@sumedhpatkar:poddery.comsumedhpatkarI can still see it after dpkg-buildpackage
15:26:04@sumedhpatkar:poddery.comsumedhpatkarOkay, I just understood. debclean follows dh_auto_clean commands.
15:27:14@sumedhpatkar:poddery.comsumedhpatkarDo I need to run debclean after dpkg-buildpackage ?
15:45:40@praveen:poddery.comPirate ‍ Praveen
In reply to @praveen:poddery.com
see https://wiki.debian.org/Javascript/Repacking
sumedhpatkar: did you follow these?
15:46:36@sumedhpatkar:poddery.comsumedhpatkarNo. I'll see now
15:47:14@sumedhpatkar:poddery.comsumedhpatkarWhat does it contain?
15:47:39@praveen:poddery.comPirate ‍ Praveenit has instructions to properly remove dist

There are no newer messages yet.

Back to Room List