Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

avi-solution #4

Open
wants to merge 7 commits into
base: solution
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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.
18 changes: 2 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"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",
Expand All @@ -20,7 +22,10 @@
"sinon": "^1.17.5"
},
"engines": {
"node": ">=6.2",
"npm": ">=3.8"
"node": ">=4.6",
"npm": ">=2.15"
},
"babel": {
"presets": ["es2015"]
}
}
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion test/badges.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down