felipesousa / wunderlist-api Goto Github PK
View Code? Open in Web Editor NEW:closed_book: Wunderlist in a simple way.
Home Page: https://www.npmjs.com/package/wunderlist-api
License: MIT License
:closed_book: Wunderlist in a simple way.
Home Page: https://www.npmjs.com/package/wunderlist-api
License: MIT License
Acceptance criteria:
Acceptance Criteria:
Acceptance criteria:
I'm afraid the ES6 modules are breaking the npm-module in node v8.9.3
➜ node --version
v8.9.3
➜ node index.js
./node_modules/wunderlist-api/build/index.js:524
export default Wunderlist;
^^^^^^
SyntaxError: Unexpected token export
Even with the experimental flag on, it doesn't work:
➜ node --experimental-modules index.js
(node:94262) ExperimentalWarning: The ESM module loader is experimental.
index.js:11
import WunderlistAPI from 'wunderlist-api';
^^^^^^
SyntaxError: Unexpected token import
at createScript (vm.js:80:10)
And if you'll try babel with prefixes (2015 or 2016) it doesn't work as well.
➜ npm start
> babel-node index.js --presets es2015,stage-2
./node_modules/wunderlist-api/build/index.js:524
export default Wunderlist;
^^^^^^
SyntaxError: Unexpected token export
Acceptance criteria:
hi guys. thanks for publishing your project! :)
when trying to authenticate with my clientID/accessToken I get an error saying:
body: '{"error":{"type":"server_error","translation_key":"api_error_unknown","message":"An unknown server error occurred","authentication":["missing"]}}' }
here's my code:
"use strict";
const Wunderlist = require("wunderlist-api");
const wunderlist = new Wunderlist({
clientID: "xxx",
accessToken: "xxx"
});
// authentication
wunderlist
.user()
.then(response => {
// response
console.log(response);
})
.catch(error => {
// handle error
});
what am i doing wrong?
Acceptance Criteria:
more details here.
Add support to typescript language. - more details here.
More details here: https://coveralls.io/
acceptance criteria:
more details here.
more details here
Acceptance criteria:
Add prettier support and automation;
more details here.
TSLint support with Prettier (https://palantir.github.io/tslint/)
When the script build is executed the prompt return a dependecies error:
> tsc -p tsconfig.json && rollup -c rollup.config.js
node_modules/@types/jest/index.d.ts:484:51 - error TS2307: Cannot find module 'jest-diff'.
484 diff(a: any, b: any, options?: import("jest-diff").DiffOptions): string | null;
~~~~~~~~~~~
node_modules/@types/jest/index.d.ts:538:44 - error TS2307: Cannot find module 'pretty-format'.
538 type SnapshotSerializerPlugin = import('pretty-format').Plugin;
~~~~~~~~~~~~~~~
Describe the solution you'd like
Describe alternatives you've considered
Use npm publish and plugins to run the actions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.