Permalink
Browse files

Utilise Bower pour la gestion des dépendances

  • Loading branch information...
2ec0b4 committed Jun 17, 2016
1 parent 8bd3862 commit 1c764e1d12833bb8b87ffe1d743ef4b1e215103d
Showing with 47 additions and 24 deletions.
  1. +1 −0 .gitignore
  2. +34 −0 bower.json
  3. +1 −1 index.html
  4. +1 −1 js/app/app.js
  5. +10 −10 js/app/main.js
  6. +0 −12 package.json
View
@@ -1,2 +1,3 @@
+bower_components
dist
node_modules
View
@@ -0,0 +1,34 @@
+{
+ "name": "kaamelott-soundboard",
+ "description": "Quelques-unes des meilleures répliques sonores de Kaamelott. C'était ça ou chante Sloubi.",
+ "main": "js/app/main.js",
+ "authors": [
+ "Antoine @2ec0b4"
+ ],
+ "license": "MIT",
+ "keywords": [
+ "kaamelott",
+ "soundboard"
+ ],
+ "homepage": "https://github.com/2ec0b4/kaamelott-soundboard",
+ "private": true,
+ "ignore": [
+ "**/.*",
+ "node_modules",
+ "bower_components",
+ "test",
+ "tests"
+ ],
+ "dependencies": {
+ "backbone.marionette": "^2.4.6",
+ "backbone.radio": "^1.0.5",
+ "handlebars": "^4.0.5",
+ "jquery": "^2.2.4",
+ "ilyabirman-likely": "^2.1.0",
+ "require-css": "^0.1.8",
+ "require-handlebars-plugin": "^1.0.0",
+ "requirejs": "^2.2.0",
+ "requirejs-text": "^2.0.12",
+ "underscore": "^1.8.3"
+ }
+}
View
@@ -72,6 +72,6 @@ <h1>Kaamelott Soundboard</h1>
</footer>
</div>
- <script data-main="/js/app/main" src="/node_modules/requirejs/require.js"></script>
+ <script data-main="/js/app/main" src="/bower_components/requirejs/require.js"></script>
</body>
</html>
View
@@ -6,7 +6,7 @@ define("app", function(require) {
SoundboardController = require("controllers/soundboard"),
app;
- require("css!../../node_modules/ilyabirman-likely/release/likely.css");
+ require("css!../../bower_components/ilyabirman-likely/release/likely.css");
require("likely");
app = Marionette.Application.extend({
View
@@ -1,16 +1,16 @@
require.config({
baseUrl: "/js/app",
paths: {
- backbone: "../../node_modules/backbone/backbone-min",
- "backbone.radio": "../../node_modules/backbone.radio/build/backbone.radio",
- css: "../../node_modules/require-css/css",
- handlebars: "../../node_modules/handlebars/dist/handlebars.min",
- hbs: "../../node_modules/require-handlebars-plugin/hbs",
- jquery: "../../node_modules/jquery/dist/jquery.min",
- likely: "../../node_modules/ilyabirman-likely/release/likely",
- marionette: "../../node_modules/backbone.marionette/lib/backbone.marionette.min",
- text: "../../node_modules/requirejs-text/text",
- underscore: "../../node_modules/underscore/underscore-min"
+ backbone: "../../bower_components/backbone/backbone-min",
+ "backbone.radio": "../../bower_components/backbone.radio/build/backbone.radio",
+ css: "../../bower_components/require-css/css",
+ handlebars: "../../bower_components/handlebars/handlebars.min",
+ hbs: "../../bower_components/require-handlebars-plugin/hbs",
+ jquery: "../../bower_components/jquery/dist/jquery.min",
+ likely: "../../bower_components/ilyabirman-likely/release/likely",
+ marionette: "../../bower_components/backbone.marionette/lib/backbone.marionette.min",
+ text: "../../bower_components/requirejs-text/text",
+ underscore: "../../bower_components/underscore/underscore-min"
},
shim: {
backbone: {
View
@@ -20,18 +20,6 @@
"url": "https://github.com/2ec0b4/kaamelott-soundboard/issues"
},
"homepage": "https://github.com/2ec0b4/kaamelott-soundboard#readme",
- "dependencies": {
- "backbone.marionette": "^2.4.6",
- "backbone.radio": "^1.0.5",
- "handlebars": "^4.0.5",
- "jquery": "^2.2.4",
- "ilyabirman-likely": "^2.1.0",
- "require-css": "^0.1.8",
- "require-handlebars-plugin": "^1.0.0",
- "requirejs": "^2.2.0",
- "requirejs-text": "^2.0.12",
- "underscore": "^1.8.3"
- },
"devDependencies": {
"del": "^2.2.0",
"gulp": "^3.9.1",

0 comments on commit 1c764e1

Please sign in to comment.