[Pkg-javascript-commits] [node-yamljs] 03/07: replace browserify with webpack
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Fri Dec 29 20:00:46 UTC 2017
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository node-yamljs.
commit fb1b2413d1b89cd3dc8889309b93dd0fb734c45d
Author: Pirate Praveen <praveen at debian.org>
Date: Sat Dec 30 01:22:35 2017 +0530
replace browserify with webpack
---
debian/patches/series | 1 +
debian/patches/skip-browserify.patch | 29 +++++++++++++++++++++++++++++
debian/rules | 3 +--
3 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e51f077
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+skip-browserify.patch
diff --git a/debian/patches/skip-browserify.patch b/debian/patches/skip-browserify.patch
new file mode 100644
index 0000000..444fbbf
--- /dev/null
+++ b/debian/patches/skip-browserify.patch
@@ -0,0 +1,29 @@
+--- a/Cakefile
++++ b/Cakefile
+@@ -57,11 +57,11 @@
+ unless fs.existsSync distDir
+ fs.mkdirSync distDir
+ browserify = ->
+- exec 'browserify -t coffeeify --extension=".coffee" '+esc(srcDir+'/Yaml.coffee')+' > '+esc(distDir+'/yaml.js'), (err, res) ->
++ exec 'webpack --config debian/webpack.config.js '+esc(libDir+'/Yaml.js')+' '+esc(distDir+'/yaml.js'), (err, res) ->
+ if err then throw err
+
+ console.log "Browserified yaml.js"
+- exec 'browserify --debug -t coffeeify --extension=".coffee" '+esc(srcDir+'/Yaml.coffee')+' > '+esc(distDir+'/yaml.debug.js'), (err, res) ->
++ exec 'webpack --config debian/webpack.config.js '+esc(libDir+'/Yaml.js')+' '+esc(distDir+'/yaml.debug.js'), (err, res) ->
+ if err then throw err
+
+ console.log "Browserified yaml.js (debug)"
+@@ -77,10 +77,10 @@
+
+ # Compile spec
+ compileSpec = ->
+- exec 'coffee -b -c '+esc(specDir+'/YamlSpec.coffee'), (err, res) ->
++ exec 'echo "skip"', (err, res) ->
+ if err then throw err
+
+- console.log "Compiled YamlSpec.js"
++ console.log "Skipped compiling YamlSpec.js"
+ compileCLI()
+
+ # Compile CLI
diff --git a/debian/rules b/debian/rules
index 48b2029..2fd8130 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,10 +9,9 @@
override_dh_auto_build:
cake.coffeescript build
- webpack --config debian/webpack.config.js lib/Yaml.js dist/Yaml.js --output-library=Yaml
#override_dh_auto_test:
override_dh_auto_clean:
- rm -rf lib dist
+ rm -rf dist
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-yamljs.git
More information about the Pkg-javascript-commits
mailing list