Skip to content

Commit 3ac2d6b

Browse files
author
Kuniwak
committed
Switch to bower from npm
1 parent c8e4c13 commit 3ac2d6b

File tree

11 files changed

+79
-52
lines changed

11 files changed

+79
-52
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
bower_components

package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,16 @@
2121
"homepage": "https://github.com/mixi-inc/JavaScriptTraining",
2222
"devDependencies": {
2323
"body-parser": "^1.12.0",
24-
"chai": "^2.1.1",
25-
"chai-as-promised": "^4.3.0",
2624
"express": "^4.12.2",
2725
"gulp": "^3.8.11",
2826
"gulp-eslint": "^0.6.0",
2927
"gulp-help": "^1.3.3",
3028
"gulp-nodemon": "^1.0.5",
3129
"gulp-run": "^1.6.6",
3230
"gulp-util": "^3.0.4",
33-
"mocha": "^2.2.0",
3431
"mocha-phantomjs": "^3.5.3"
3532
},
3633
"dependencies": {
37-
"bootstrap": "^3.3.2",
38-
"bower": "^1.3.12",
39-
"chai-jquery": "^2.0.0",
40-
"jquery": "^2.1.3",
41-
"whatwg-fetch": "^0.7.0"
34+
"bower": "^1.3.12"
4235
}
4336
}

public/bower.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "mixi-js-training-client",
3+
"version": "0.0.0",
4+
"homepage": "https://github.com/mixi-inc/JavaScriptTraining",
5+
"authors": [
6+
"Kuniwak <yuki.kokubun@mixi.co.jp>"
7+
],
8+
"description": "Training course repositry for JavaScript by mixi",
9+
"main": "index.html",
10+
"moduleType": [
11+
"globals"
12+
],
13+
"keywords": [
14+
"training"
15+
],
16+
"license": "MIT",
17+
"private": true,
18+
"ignore": [
19+
"**/.*",
20+
"node_modules",
21+
"bower_components",
22+
"test",
23+
"tests"
24+
],
25+
"dependencies": {
26+
"chai": "~2.1.2",
27+
"chai-as-promised": "~4.3.0",
28+
"mocha": "~2.2.1",
29+
"bootstrap": "~3.3.4",
30+
"chai-jquery": "~2.0.0",
31+
"jquery": "~2.1.3",
32+
"fetch": "~0.7.0",
33+
"github-fork-ribbon-css": "~0.1.1"
34+
}
35+
}

public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>mixi JS Training</title>
7-
<link rel="stylesheet" href="modules/bootstrap/dist/css/bootstrap.css" media="all">
8-
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.1.1/gh-fork-ribbon.min.css" />
7+
<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.css" media="all">
8+
<link rel="stylesheet" href="/bower_components/github-fork-ribbon-css/gh-fork-ribbon.css" />
99
<style>
1010
.github-fork-ribbon {
1111
background-color: #f80;

public/stage1/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<link href="http://img.mixi.net/img/basic/favicon.ico" type="image/vnd.microsoft.icon" rel="icon">
88
<link href="http://img.mixi.net/img/basic/favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon">
9-
<link rel="stylesheet" href="/modules/mocha/mocha.css" />
10-
<link rel="stylesheet" href="../common/mocha-patch.css" />
9+
<link rel="stylesheet" href="/bower_components/mocha/mocha.css" />
10+
<link rel="stylesheet" href="/common/mocha-patch.css" />
1111
<link rel="stylesheet" href="style.css" />
1212
</head>
1313
<body>
@@ -30,10 +30,10 @@
3030
<li data-js-training="darkorchid">12</li>
3131
</ul>
3232
<div id="mocha"></div>
33-
<script src="/modules/jquery/dist/jquery.js"></script>
34-
<script src="/modules/mocha/mocha.js"></script>
35-
<script src="/modules/chai/chai.js"></script>
36-
<script src="/modules/chai-jquery/chai-jquery.js"></script>
33+
<script src="/bower_components/jquery/dist/jquery.js"></script>
34+
<script src="/bower_components/mocha/mocha.js"></script>
35+
<script src="/bower_components/chai/chai.js"></script>
36+
<script src="/bower_components/chai-jquery/chai-jquery.js"></script>
3737
<script>
3838
mocha.ui('bdd');
3939
mocha.reporter('html');

public/stage2/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<link href="http://img.mixi.net/img/basic/favicon.ico" type="image/vnd.microsoft.icon" rel="icon">
88
<link href="http://img.mixi.net/img/basic/favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon">
9-
<link rel="stylesheet" href="/modules/mocha/mocha.css">
10-
<link rel="stylesheet" href="../common/mocha-patch.css">
9+
<link rel="stylesheet" href="/bower_components/mocha/mocha.css">
10+
<link rel="stylesheet" href="/common/mocha-patch.css">
1111
<link rel="stylesheet" href="style.css">
1212
</head>
1313
<body>
@@ -34,10 +34,10 @@
3434
<div class="js-training-trick">&#x1f420;&#x1f420;</div>
3535
</div>
3636
<div id="mocha"></div>
37-
<script src="/modules/jquery/dist/jquery.js"></script>
38-
<script src="/modules/mocha/mocha.js"></script>
39-
<script src="/modules/chai/chai.js"></script>
40-
<script src="/modules/chai-jquery/chai-jquery.js"></script>
37+
<script src="/bower_components/jquery/dist/jquery.js"></script>
38+
<script src="/bower_components/mocha/mocha.js"></script>
39+
<script src="/bower_components/chai/chai.js"></script>
40+
<script src="/bower_components/chai-jquery/chai-jquery.js"></script>
4141
<script>
4242
mocha.ui('bdd');
4343
mocha.reporter('html');

public/stage3/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<link href="http://img.mixi.net/img/basic/favicon.ico" type="image/vnd.microsoft.icon" rel="icon">
88
<link href="http://img.mixi.net/img/basic/favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon">
9-
<link rel="stylesheet" href="/modules/mocha/mocha.css">
10-
<link rel="stylesheet" href="../common/mocha-patch.css">
9+
<link rel="stylesheet" href="/bower_components/mocha/mocha.css">
10+
<link rel="stylesheet" href="/common/mocha-patch.css">
1111
<link rel="stylesheet" href="style.css">
1212
</head>
1313
<body>
@@ -32,10 +32,10 @@
3232
<div class="js-training-trick">&#x1f420;&#x1f420;</div>
3333
</div>
3434
<div id="mocha"></div>
35-
<script src="/modules/jquery/dist/jquery.js"></script>
36-
<script src="/modules/mocha/mocha.js"></script>
37-
<script src="/modules/chai/chai.js"></script>
38-
<script src="/modules/chai-jquery/chai-jquery.js"></script>
35+
<script src="/bower_components/jquery/dist/jquery.js"></script>
36+
<script src="/bower_components/mocha/mocha.js"></script>
37+
<script src="/bower_components/chai/chai.js"></script>
38+
<script src="/bower_components/chai-jquery/chai-jquery.js"></script>
3939
<script>
4040
mocha.ui('bdd');
4141
mocha.reporter('html');

public/stage4/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<link href="http://img.mixi.net/img/basic/favicon.ico" type="image/vnd.microsoft.icon" rel="icon">
88
<link href="http://img.mixi.net/img/basic/favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon">
9-
<link rel="stylesheet" href="/modules/mocha/mocha.css">
10-
<link rel="stylesheet" href="../common/mocha-patch.css">
9+
<link rel="stylesheet" href="/bower_components/mocha/mocha.css">
10+
<link rel="stylesheet" href="/common/mocha-patch.css">
1111
<link rel="stylesheet" href="style.css">
1212
</head>
1313
<body>
@@ -20,10 +20,10 @@
2020
</ul>
2121
</div>
2222
<div id="mocha"></div>
23-
<script src="/modules/jquery/dist/jquery.js"></script>
24-
<script src="/modules/mocha/mocha.js"></script>
25-
<script src="/modules/chai/chai.js"></script>
26-
<script src="/modules/chai-jquery/chai-jquery.js"></script>
23+
<script src="/bower_components/jquery/dist/jquery.js"></script>
24+
<script src="/bower_components/mocha/mocha.js"></script>
25+
<script src="/bower_components/chai/chai.js"></script>
26+
<script src="/bower_components/chai-jquery/chai-jquery.js"></script>
2727
<script>
2828
mocha.ui('bdd');
2929
mocha.reporter('html');

public/stage5/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<link href="http://img.mixi.net/img/basic/favicon.ico" type="image/vnd.microsoft.icon" rel="icon">
88
<link href="http://img.mixi.net/img/basic/favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon">
9-
<link rel="stylesheet" href="/modules/mocha/mocha.css">
10-
<link rel="stylesheet" href="../common/mocha-patch.css">
9+
<link rel="stylesheet" href="/bower_components/mocha/mocha.css">
10+
<link rel="stylesheet" href="/common/mocha-patch.css">
1111
</head>
1212
<body>
1313
<div id="mocha"></div>
14-
<script src="/modules/jquery/dist/jquery.js"></script>
15-
<script src="/modules/mocha/mocha.js"></script>
16-
<script src="/modules/chai/chai.js"></script>
17-
<script src="/modules/chai-jquery/chai-jquery.js"></script>
18-
<script src="/modules/chai-as-promised/lib/chai-as-promised.js"></script>
19-
<script src="/modules/whatwg-fetch/fetch.js"></script>
14+
<script src="/bower_components/jquery/dist/jquery.js"></script>
15+
<script src="/bower_components/mocha/mocha.js"></script>
16+
<script src="/bower_components/chai/chai.js"></script>
17+
<script src="/bower_components/chai-jquery/chai-jquery.js"></script>
18+
<script src="/bower_components/chai-as-promised/lib/chai-as-promised.js"></script>
19+
<script src="/bower_components/whatwg-fetch/fetch.js"></script>
2020
<script>
2121
mocha.ui('bdd');
2222
mocha.reporter('html');

public/stage6/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<link href="http://img.mixi.net/img/basic/favicon.ico" type="image/vnd.microsoft.icon" rel="icon">
88
<link href="http://img.mixi.net/img/basic/favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon">
9-
<link rel="stylesheet" href="/modules/mocha/mocha.css">
10-
<link rel="stylesheet" href="../common/mocha-patch.css">
9+
<link rel="stylesheet" href="/bower_components/mocha/mocha.css">
10+
<link rel="stylesheet" href="/common/mocha-patch.css">
1111
</head>
1212
<body>
1313
<div id="mocha"></div>
14-
<script src="/modules/jquery/dist/jquery.js"></script>
15-
<script src="/modules/mocha/mocha.js"></script>
16-
<script src="/modules/chai/chai.js"></script>
17-
<script src="/modules/chai-jquery/chai-jquery.js"></script>
18-
<script src="/modules/chai-as-promised/lib/chai-as-promised.js"></script>
19-
<script src="/modules/whatwg-fetch/fetch.js"></script>
14+
<script src="/bower_components/jquery/dist/jquery.js"></script>
15+
<script src="/bower_components/mocha/mocha.js"></script>
16+
<script src="/bower_components/chai/chai.js"></script>
17+
<script src="/bower_components/chai-jquery/chai-jquery.js"></script>
18+
<script src="/bower_components/chai-as-promised/lib/chai-as-promised.js"></script>
19+
<script src="/bower_components/whatwg-fetch/fetch.js"></script>
2020
<script>
2121
mocha.ui('bdd');
2222
mocha.reporter('html');

0 commit comments

Comments
 (0)