Skip to content

Commit

Permalink
refs #11 (deprecate webpack.full and webpack.quick gracefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Charytoniuk committed Apr 13, 2015
1 parent 40793d2 commit c6c0d0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions gore-gulp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
"use strict";

var path = require("path"),
deprecate = require("deprecate"),
FS = require("q-io/fs"),
lint = require(path.join(__dirname, "/lint")),
pckg = require(path.join(__dirname, "..", "package.json")),
test = require(path.join(__dirname, "/test")),
webpack = require(path.join(__dirname, "/webpack"));

Expand All @@ -34,7 +36,13 @@ function setup(options, pckgPromise, gulp, self) {
defaultWebpackVariant
]);
gulp.task("webpack.development", self.webpack.development());
gulp.task("webpack.full", ["webpack.production"], function () {
deprecate(pckg.name + " - webpack.full task is deprecated, please use webpack.production instead");
});
gulp.task("webpack.production", self.webpack.production());
gulp.task("webpack.quick", ["webpack.development"], function () {
deprecate(pckg.name + " - webpack.quick task is deprecated, please use webpack.development instead");
});
}

function setupTask(baseDir, pckgPromise, task) {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"dependencies": {
"babel-core": "5.x",
"babel-loader": "5.x",
"deprecate": "0.x",
"eslint-plugin-react": "2.x",
"glob": "5.x",
"gulp": "3.x",
Expand Down Expand Up @@ -35,5 +36,5 @@
"scripts": {
"test": "gulp test"
},
"version": "0.2.3"
"version": "0.2.4"
}

0 comments on commit c6c0d0f

Please sign in to comment.