GithubHelp home page GithubHelp logo

spotify-api-course's Introduction

Spotify API Course

A wrapper to work with the Spotify Web API.

npm mocha Build Status

About the course

TDD with JavaScript Course by William Justen

Browser Support

This library relies on Fetch API. And this API is supported in the following browsers.

Chrome Firefox Opera Safari IE
39+ ✔ 42+ ✔ 29+ ✔ 10.1+ ✔ Nope ✘

Important commands

1.0 - List global npm plugins

npm list -g --depth=0

Fix possible bugs

1.0 - Webpack > UglifyJSPlugin

Maybe you'll have some trouble with this plugin. However, you can solve this installing it separately.

npm i -D uglifyjs-webpack-plugin

Config your webpack.config.js file.

const UglifyJSPlugin = require('uglifyjs-webpack-plugin');

[...]
plugins: [
  new UglifyJSPlugin({
    uglifyOptions: {
      compress: { warnings: false },
      output: { comments: false },
    },
    sourceMap: true,
  }),
],

2.0 - NPM Error while running the test

This is a problem when using npm run, it has to do with Mocha exiting with code !== 0 whenever a test fails.

http://prntscr.com/hripxp

"scripts": {
  "test": "./node_modules/.bin/mocha specs/**/*.spec.js || ECHO.",
},

3.0 - Solve LF replace to CRLF on Git

This command will solve the problem with linebreak replacement on git commit.

git config --global core.autocrlf input

eslint-magic

License

This project is licensed under the MIT License - see the LICENSE file for details

spotify-api-course's People

Contributors

brunomacedo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.