Skip to content

Commit

Permalink
Fix (global): remove Promise-polyfill as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Mar 9, 2016
1 parent 71e209f commit 678d29b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
3 changes: 1 addition & 2 deletions js/profile-w3c-common.js
Expand Up @@ -9,10 +9,9 @@ require.config({
paths: {
"handlebars": "/node_modules/handlebars/dist/handlebars",
"jquery": "/node_modules/jquery/dist/jquery",
"Promise": "/node_modules/promise-polyfill/Promise",
"webidl2": "/node_modules/webidl2/lib/webidl2",
},
deps: ["core/jquery-enhanced", "Promise"]
deps: ["core/jquery-enhanced"]
});

define([
Expand Down
8 changes: 2 additions & 6 deletions karma.conf.js
Expand Up @@ -20,7 +20,7 @@ module.exports = function(config) {

// configuration
detectBrowsers: {
enabled: true,
enabled: false,
usePhantomJS: false,
postDetection: function(browsers) {
return browsers;
Expand Down Expand Up @@ -52,10 +52,6 @@ module.exports = function(config) {
pattern: "node_modules/requirejs/require.js",
included: false,
served: true,
}, {
pattern: "node_modules/promise-polyfill/Promise.js",
included: false,
served: true,
}, {
pattern: "node_modules/jquery/dist/jquery.js",
included: true,
Expand Down Expand Up @@ -115,7 +111,7 @@ module.exports = function(config) {


// See "detectBrowsers"
browsers: ["Chrome", "Safari", "Chrome"],
browsers: ["Safari"],

// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -41,7 +41,6 @@
"moment": "^2.11.2",
"mozilla-download": "^1.1.1",
"phantomjs-prebuilt": "^2.1.4",
"promise-polyfill": "^3.1.0",
"prompt": "^1.0.0",
"requirejs": "^2.1.22",
"webidl2": "^2.0.11"
Expand Down
2 changes: 0 additions & 2 deletions tools/builder.js
Expand Up @@ -84,7 +84,6 @@ var Builder = {
paths: {
"require": "../node_modules/requirejs/require",
"jquery": "../node_modules/jquery/dist/jquery",
"Promise": "../node_modules/promise-polyfill/Promise",
"handlebars": "../node_modules/handlebars/dist/handlebars",
"webidl2": "../node_modules/webidl2/lib/webidl2",
},
Expand All @@ -97,7 +96,6 @@ var Builder = {
include: [
"../node_modules/requirejs/require",
"../node_modules/jquery/dist/jquery",
"../node_modules/promise-polyfill/Promise",
"../node_modules/handlebars/dist/handlebars",
"../node_modules/webidl2/lib/webidl2",
],
Expand Down

0 comments on commit 678d29b

Please sign in to comment.