Comments (6)
@thebergamo Thanks for your interest in contributing! I created a CONTRIBUTING.md with a roadmap. Let me know if you have any questions or if there is any part of the process I can make clearer.
Note: I think querybuilder.js is generic enough to work for both the card
and set
APIs. If that's the case, adding support for set
may only be a matter of adding set: qb('set')
to the object exported by index.js. Making this change and creating corresponding unit tests for set
could be an easy way to get started!
from mtg-sdk-javascript.
Hi Abner! Thanks for wanting to contribute!
Currently the only function exposed in the javascript api is card()
. An obvious endpoint to add would be set()
to find a set by code. The same could be done for the types
, subtypes
, and supertypes
apis. A good starting point would be to add unit tests for the missing features, then building them in TDD style.
Let me know if you have any questions along the way, I'm happy to support you!
from mtg-sdk-javascript.
Hey Raine. Thanks for answering back so quickly. I'm looking through the test suite now. To be honest, I haven't done a whole lot of TDD before but am familiar with some aspects of it and have done some basic stuff with RSpec. Anything you think would be helpful to read for Chai in particular before jumping in?
from mtg-sdk-javascript.
It really depends on your understanding of unit testing. If the overall
concept is fuzzy, I would suggest finding some general intro tutorials on
unit testing. If you mostly just need to understand the syntax of chai,
read up on the documentation. Look through the tests of this project again
and notice how they call library functions and compare the results with
hardcoded values to prove that they do what they intend.
mocha is the test runner (what runs the tests, parsing "describe" and "it"
blocks to generate coherent output) and chai is the assertion library
(giving you the functions to assert that values are equal, unequal, have a
given property, have a given type, etc).
You are welcome to ask me questions for anything that is confusing to you!
On Mon, Aug 1, 2016 at 12:37 AM Abner Yang [email protected] wrote:
Hey Raine. Thanks for answering back so quickly. I'm looking through the
test suite now. To be honest, I haven't done a whole lot of TDD before but
am familiar with some aspects of it and have done some basic stuff with
RSpec. Anything you think would be helpful to read for Chai in particular
before jumping in?—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAtyxIUM-RgOc2SpoKQRBYWEVps1l0q_ks5qbZQVgaJpZM4JYvCY
.
from mtg-sdk-javascript.
Hi! This project is awesome!
Can you add a roadmap and the apis must be added?
I want to contribute to this project too :D
from mtg-sdk-javascript.
Closing this because @raineorshine's latest comment seems to cover everything. The addition of the CONTRIBUTING.md should also help answer any future questions about contributing.
from mtg-sdk-javascript.
Related Issues (15)
- Can't search for cards by mana cost HOT 4
- Return more than 100 results? HOT 1
- Issue in react-native app HOT 2
- use of sdk ambiguous in documentation
- Error on load mtgsdk HOT 1
- Add ES6 module support HOT 3
- Add support for supertypes, subtypes and types HOT 1
- mtg.card.where overwrites the page property with 0 HOT 1
- Question: Can I query multiple CMCs? HOT 3
- Search query for card names with "Aether" always return an empty result. HOT 4
- TransformError: Couldn't find preset "es2015" HOT 4
- broken test on master branch: card > find > returns card HOT 1
- Helper function for getting a card's static abilities HOT 3
- Babel doesn't seem to play well with Angular HOT 4
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 mtg-sdk-javascript.