mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-01 16:49:39 +02:00
The main nodejs flavor is "npm", which is to be used to lint/test and the publication of an official npm package -- and by design it has dependencies on mocha, eslint, etc. A new flavor "dig" has been created with minimal dependencies and which purpose is to easily allow to write specialized code to investigate local code changes in uBO -- and it's not meant for publication. Consequently, "make nodejs" has been replaced with "make npm", and a new "dig" target has been added to the makefile, to be used for instrumenting local code changes for investigation purpose.
18 lines
251 B
Bash
Executable File
18 lines
251 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# This script assumes a linux environment
|
|
|
|
set -e
|
|
|
|
DES="dist/build/uBlock0.dig"
|
|
|
|
./tools/make-nodejs.sh $DES
|
|
./tools/make-assets.sh $DES
|
|
|
|
cp -R platform/dig/* $DES/
|
|
|
|
cd $DES
|
|
npm run build
|
|
|
|
echo "*** uBlock0.dig: Package done."
|