Skip to content

Commit

Permalink
Add AppVeyor configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Stone committed Feb 9, 2017
1 parent f62ab7a commit 32e0460
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
10 changes: 10 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
environment:
matrix:
- nodejs_version: "4"
- nodejs_version: "6"
install:
- ps: Install-Product node $env:nodejs_version
- npm install
test_script:
- npm test
build: off
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lerna": "2.0.0-beta.32",
"lerna": "2.0.0-beta.37",
"packages": [
"packages/*"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"devDependencies": {
"colors": "^1.1.2",
"lerna": "2.0.0-beta.32",
"lerna": "2.0.0-beta.37",
"moment": "^2.17.1",
"semver": "^5.3.0",
"sleep-promise": "^2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/composer-runtime-hlf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The Hyperledger Fabric runtime container for Fabric Composer",
"main": "index.js",
"scripts": {
"prepublish": "NODE_PATH=node_modules node ./scripts/build.js",
"prepublish": "node ./scripts/build.js",
"test": "echo \"Warning: no test specified\" && exit 0"
},
"repository": {
Expand Down
6 changes: 4 additions & 2 deletions packages/composer-runtime-hlf/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ wstream3.setDefaultEncoding('utf8');
const wstream4 = fs.createWriteStream(targetFile4);
wstream4.setDefaultEncoding('utf8');

const execSuffix = /^win/.test(process.platform) ? '.cmd' : '';

return Promise.resolve()
.then(() => {
return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -105,7 +107,7 @@ return Promise.resolve()
// https://github.com/Starcounter-Jack/JSON-Patch/issues/140
.transform('babelify', { presets: [ 'es2015' ], global: true, ignore: /fast-json-patch/ })
.bundle();
const exorcist = child_process.spawn('exorcist', [targetFile2]);
const exorcist = child_process.spawn(`exorcist${execSuffix}`, [targetFile2]);
rstream.pipe(exorcist.stdin);
exorcist.stdout.pipe(wstream3);
exorcist.stdout.on('end', () => {
Expand All @@ -116,7 +118,7 @@ return Promise.resolve()
.then(() => {
return new Promise((resolve, reject) => {
const rstream = fs.createReadStream(targetFile3);
const uglifyjs = child_process.spawn('uglifyjs', ['-', '--in-source-map', targetFile2, '--source-map-inline']);
const uglifyjs = child_process.spawn(`uglifyjs${execSuffix}`, ['-', '--in-source-map', targetFile2, '--source-map-inline']);
rstream.pipe(uglifyjs.stdin);
uglifyjs.stderr.pipe(process.stderr);
uglifyjs.stdout.pipe(wstream4);
Expand Down

0 comments on commit 32e0460

Please sign in to comment.