Skip to content

Commit

Permalink
Follow-up to pull AOEpeople#1 - move jQuery to devDependencies for …
Browse files Browse the repository at this point in the history
…clarity

* Also move QUnit from peer to `devDependencies`
* AOEpeople#1
  • Loading branch information
nfreear committed May 29, 2018
1 parent fa4075b commit 181b95a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.1.10",
"description": "Show a widely configurable notice for European cookie law",
"main": "gruntfile.js",
"browser": "dist/cookie-notice.js",
"browser": "dist/cookie.notice.js",
"scripts": {
"test": "./node_modules/.bin/grunt test"
"test": "grunt test"
},
"keywords": [
"GDPR",
Expand All @@ -23,10 +23,8 @@
"grunt-contrib-qunit": "^2.0.0",
"grunt-contrib-uglify": "^3.3.0",
"grunt-strip-code": "^1.0.6",
"phantomjs-prebuilt": "^2.1.16"
},
"peerDependencies": {
"jquery": "^3.3.1",
"phantomjs-prebuilt": "^2.1.16",
"qunit": "^2.6.1"
},
"repository": {
Expand Down
12 changes: 7 additions & 5 deletions tests/index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>QUnit Example</title>
<title>QUnit tests — cookie-notice</title>

<link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-2.6.1.css">
<link rel="stylesheet" href="../node_modules/qunit/qunit/qunit.css">

</head>
<body>

<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://code.jquery.com/qunit/qunit-2.6.1.js"></script>

<script src="../node_modules/jquery/dist/jquery.slim.js"></script>
<script src="../node_modules/qunit/qunit/qunit.js"></script>
<script src="tests.js"></script>

<script src="../src/cookie.notice.js"></script>
Expand Down

0 comments on commit 181b95a

Please sign in to comment.