diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..94075e9 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2016 Code School + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 4103c30..732d128 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,3 @@ -# jQuery Badges +# Moved -Welcome to the jQuery Badges Project! For this project, you'll be creating a web app that displays all of the courses you've taken on Code School by displaying its titles and badges. We will test your knowledge of JavaScript and jQuery to make AJAX requests, and create DOM objects programmatically. - -Please follow the instructions below to complete the project. Be sure to run tests to make sure your tests are passing before submitting your code. - -## Getting Started - -To get started with this project, head over to the [jQuery Badges](#) project on Code School, and begin! - -For further instructions on how to get the app setup locally, visit our wiki: - -1. [Welcome](https://github.com/codeschool/project-jquery-badges/wiki) -2. [Prerequisites](https://github.com/codeschool/project-jquery-badges/wiki/Prerequisites) -3. [Setup](https://github.com/codeschool/project-jquery-badges/wiki/Setup) -4. [What we'll build](https://github.com/codeschool/project-jquery-badges/wiki/What-we'll-build) -5. [Step by step](https://github.com/codeschool/project-jquery-badges/wiki/Step-by-step) +Future updates to this project have been moved to the [codeschool-projects/jQueryBadgesProject](https://github.com/codeschool-projects/jQueryBadgesProject) repository. If you have already started this project from a fork of this repository, things should continue to work as expected. diff --git a/package.json b/package.json index f9e9e06..c7d7e4d 100644 --- a/package.json +++ b/package.json @@ -5,13 +5,15 @@ "private": true, "scripts": { "start": "browser-sync start --server ./src --files ./src", - "test": "mocha -t 20000 test/*.spec.js", + "test": "mocha -t 20000 --compilers js:babel-register test/*.spec.js", "test-watch": "npm test -- --bail --watch", "deploy:github-pages": "git subtree push --prefix src origin gh-pages" }, "author": "Sergio Cruz ", "license": "MIT", "devDependencies": { + "babel-preset-es2015": "^6.18.0", + "babel-register": "^6.18.0", "browser-sync": "^2.14.0", "chai": "^3.5.0", "javascript-sandbox": "git+https://github.com/codeschool/javascript-sandbox.git", @@ -20,7 +22,10 @@ "sinon": "^1.17.5" }, "engines": { - "node": ">=6.2", - "npm": ">=3.8" + "node": ">=4.6", + "npm": ">=2.15" + }, + "babel": { + "presets": ["es2015"] } } diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..289a4c4 Binary files /dev/null and b/screenshot.png differ diff --git a/test/badges.spec.js b/test/badges.spec.js index 956e57a..071742f 100644 --- a/test/badges.spec.js +++ b/test/badges.spec.js @@ -7,7 +7,7 @@ const sinon = require('sinon'); const srcScript = fs.readFileSync('./src/assets/main.js', 'utf8'); const scriptRegex = /<\s*script[\s\S]*?>[\s\S]*?<\s*\/\s*script\s*>/ig; -const codeschoolRegex = /https:\/\/www\.codeschool\.com\/users\/\d+\.json/i; +const codeschoolRegex = /https:\/\/www\.codeschool\.com\/users\/.+\.json/i; // HTML Page let srcHtml = fs.readFileSync('./src/index.html', 'utf8');