Comments (7)
I'm actually curious to compare Grunt, Anvil and Gulp build setups. If I can carve out some time, I'll cut a branch and see how Gulp works...
from postal.js.
You could also consider an npm run approach, which might be pretty feasible for this project.
from postal.js.
Just a quick update. I cut a Gulp branch and have a preliminary build (no minifying, no test harness, etc.) running. I'll spend some time over the next week or two fleshing this out to see how feasible it is.
from postal.js.
I have a Gulp based build working here (gulp branch). Let me know what you think. Next step is to investigate test & example runner options, etc.
from postal.js.
Great! It's so fast. Couple of things I noted:
return h.push(t),void 0;
has becomereturn void h.push(t);
somewhere in the minified version. But it's essentially the same. Probably an updated version of uglifyjs.- No unminified version yet.
- There's an array of licenses in
package.json
, so that would need a fix in the banner.
As for the tests, there are some options for a quick start (potentially they can all work on the same codebase):
- gulp-mocha
- Testem: just add
<script src="/testem.js"></script>
(conditionally if running testem) and you can run the tests withtestem -t spec/index.html
however you want. Just let it watch the right files and that should be it (I don't think Gulp adds a lot here). - mocha-phantomjs should also be fairly easy to support/set up. Basically this all that's needed in
spec/index.html
:
if (window.mochaPhantomJS) {
mochaPhantomJS.run();
} else {
mocha.run();
}
from postal.js.
I've used testem before, so I pulled it down and tried it out again. It's acting very buggy, unfortunately. It's opening multiple tabs per browser, failing tests in one, passing the tests in another - frustrating. I also have the mocha-phantomjs setup working, so we may roll with that...
from postal.js.
I've been quite happy with Gulp, and the tests are currently setup to work in browser and "headlessly". I would eventually like to either look into testem again, or some other way to farm out the tests to run on multiple browsers/versions - but I'm closing this for now and will address that as a separate issue in the future.
from postal.js.
Related Issues (20)
- How to publish data between Node.js modules? HOT 2
- Bower Release v2.0.5
- Competing consumers HOT 1
- Help improve the quality of the DefinitelyTyped (TypeScript) definitions
- postal.preserve: Still taking a ConduitJS dependency HOT 2
- Default Subscriber
- Stack overflow in IE 11 when publish called on channel with many pending unsubscribes
- Shouldn't postal.channel() implement the Singleton pattern? HOT 2
- Subscriber callback method can brake calling other subscribers HOT 1
- Devtools extension for Chrome
- Messages published inside a subscriber won't be passed to uncached subscribers
- why cache only for result === true
- postal.lodash.js Error: Module name "lodash/after" has not been loaded
- Is this project still active? HOT 6
- Wait for messages to be delivered and processed in unit tests
- timeStamp in envelope should honor timezone
- Timestamp missing on wireTap envelopes
- Thank you
- Regarding publish and subscribe, Important question
- How does postal.js support replay?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postal.js.