On Sun, 25 Feb 2018 15:03:45 +1100 Ben Finney <bign...@debian.org> wrote: > On 15-Feb-2018, Pirate Praveen wrote: > > > wget `npm view at.js dist.tarball` will get you the dist tarball. > > Compare dist/js/jquery.atwho.js in the tarball with the file installed > > by the debian package. > > (There is no ‘npm’ in Debian Buster yet, so I'm not easily able to get > anything from NPM.)
You can just use wget to get the files from npm registry. $ npm view at.js dist.tarball https://registry.npmjs.org/at.js/-/at.js-1.5.3.tgz (it is the same pattern for all npm modules) $ wget https://registry.npmjs.org/at.js/-/at.js-1.5.3.tgz > Looking at the ‘/usr/share/javascript/jquery-atwho/jquery.atwho.js’ > file installed by the Debian package, I see that the Reference Error > is because ‘Controller’ is defined in a different scope. > > As you have suggested, the custom build rules in the Debian package > were implemented before we had Gulp in Debian. So the build process > may be to blame for the error behaviour. > > What should be done in this package to use the ‘gulpfile.js’ tasks, > now that Gulp is available in Debian? https://wiki.debian.org/Javascript/Nodejs#Using_build_tools_like_grunt You can just call gulp from debian/rules. But you may need to package some gulp plugins or embed them https://wiki.debian.org/Javascript/Nodejs/Npm2Deb#Embedding_some_modules some of them plugins you may be able to skip. $ npm2deb depends -r at.js Module at.js has no dependencies. Build dependencies: NPM Debian gulp (^3.9.0) node-gulp (3.9.1-6) gulp-bump (^1.0.0) None gulp-coffee (^2.3.1) node-gulp-coffee (2.3.4-1) gulp-concat (^2.6.0) node-gulp-concat (2.6.1-1) gulp-cssmin (^0.1.7) None gulp-debug (^2.1.2) None gulp-header (^1.7.1) None gulp-jasmine (^2.2.1) None gulp-jasmine-phantom (^2.0.1) None gulp-rename (^1.2.2) node-gulp-rename (1.2.2-1) gulp-uglify (^1.5.1) None gulp-umd (^0.2.0) None gulp-util (^3.0.7) node-gulp-util (3.0.7-1) jasmine-ajax (^3.2.0) None jasmine-jquery (^2.1.1) None phantomjs (^1.9.19) None We can skip phantomjs and jasmine in the first iteration and enable tests later. For skipping some modules, you have to patch the gulpfile.js.
signature.asc
Description: OpenPGP digital signature