Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Contributing section #95

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.gitignore
node_modules
contrib
build-all.js
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,30 @@ However, the recommended way to invoke this utility is via npm:
npm run-script build-core
```

You can bundle the contrib with the included utility:
```
./contrib/bundle.js
```
You can read more about this in the [contrib](https://github.com/getify/asynquence/tree/master/contrib#readme).

If you got this repo from github you can run the other utility:
```
./build-all.js
```
This will actually run `npm install`. Only run this as soon as you get it or if you edit the deps.
## Contributing

You can start contributing by cloning this repo:
```
git clone https://github.com/getify/asynquence.git
cd asynquence
```
Then run:
```
./build-all.js
npm test
```
Then change things, refer to the [above](#builds) for how to build it.
## License

The code and all the documentation are released under the MIT license.
Expand Down
33 changes: 33 additions & 0 deletions build-all.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env node

var exec = require('child_process').exec,
ASQ = require('.'),
commands = ['npm install', function $$cd(done) {
process.chdir('contrib');
done();
}, 'npm install', function $$chdir(done) {
process.chdir('..');
done();
}],
queue = commands.map(function $$map(v, i) {
return function $$run(done) {
console.log('Running step #' + (i + 1));
if (typeof v == 'function') {
console.log('Running function in', process.cwd() + '.');
v(done);
} else {
console.log('Running', v, 'in', process.cwd() + '.');
exec(v, {cwd: process.cwd()}, done.errfcb);
}
};
});
var seq = ASQ(function (done) {
console.log('*** Starting Build ***');
done();
});
queue.forEach(function (v, i) {
seq.then(v);
});
seq.val(function () {
console.log('*** Finishing Build ***');
});