summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2016-02-16 13:59:51 -0800
committerAlexander Early <alexander.early@gmail.com>2016-02-16 13:59:51 -0800
commit73d57d2635dacd7f4d22464355a239a4e3d6ea3f (patch)
tree1e5e258ce6d97d6dddf50b586735af6f7518983d /support
parent430e42f543e00a7525c4b4c1757b4d7454dafc1a (diff)
downloadasync-73d57d2635dacd7f4d22464355a239a4e3d6ea3f.tar.gz
move es build to separate folder/package
Diffstat (limited to 'support')
-rw-r--r--support/es.test.js6
-rwxr-xr-xsupport/sync-cjs-package.js10
-rwxr-xr-xsupport/sync-es-package.js14
-rwxr-xr-xsupport/xyz.sh4
4 files changed, 29 insertions, 5 deletions
diff --git a/support/es.test.js b/support/es.test.js
index 3107e13..9f7fd5e 100644
--- a/support/es.test.js
+++ b/support/es.test.js
@@ -1,8 +1,8 @@
// simple async example to test ES module build output
-import {waterfall as waterfall} from "../build/es/index";
-import async from "../build/es/index";
-import constant from "../build/es/constant";
+import {waterfall as waterfall} from "../build-es/index";
+import async from "../build-es/index";
+import constant from "../build-es/constant";
waterfall([
constant(42),
diff --git a/support/sync-cjs-package.js b/support/sync-cjs-package.js
new file mode 100755
index 0000000..7db78b0
--- /dev/null
+++ b/support/sync-cjs-package.js
@@ -0,0 +1,10 @@
+#!/usr/bin/env node
+
+var fs = require('fs');
+var json = JSON.parse(fs.readFileSync(__dirname + "/../package.json"), "utf8");
+
+delete json.dependencies["lodash-es"];
+
+process.stdout.write(JSON.stringify(json, null, 2));
+
+
diff --git a/support/sync-es-package.js b/support/sync-es-package.js
new file mode 100755
index 0000000..12aee8c
--- /dev/null
+++ b/support/sync-es-package.js
@@ -0,0 +1,14 @@
+#!/usr/bin/env node
+
+var fs = require('fs');
+var json = JSON.parse(fs.readFileSync(__dirname + "/../package.json"), "utf8");
+
+json.name = "async-es";
+delete json.dependencies["lodash"];
+delete json.volo;
+delete json.spm;
+delete json.jam;
+
+process.stdout.write(JSON.stringify(json, null, 2));
+
+
diff --git a/support/xyz.sh b/support/xyz.sh
index fe3f2ec..8fd8d2d 100755
--- a/support/xyz.sh
+++ b/support/xyz.sh
@@ -167,5 +167,5 @@ run "git commit --message '$message'"
run "git tag --annotate '$tag' --message '$message'"
run "git push '$repo' 'refs/heads/$branch' 'refs/tags/$tag'"
-cd build/
-run "npm pack"
+#cd build/
+#run "npm pack"