Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
Release 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nchanged committed Jul 21, 2017
1 parent eda02b0 commit 43e5eda
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
25 changes: 15 additions & 10 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,18 @@ gulp.task("dist-typings", () => {
.pipe(gulp.dest("dist/typings"));
});
gulp.task("dist-commonjs", () => {
const distDir = "dist/commonjs";
const distDir = "dist/commonjs";
return gulp.src(filesMain)
.pipe(sourcemaps.init())
.pipe(projectCommonjs()).on("error", onError).js
.pipe(sourcemaps.mapSources((sourcePath, file) => {
let filePath = path.relative("..", sourcePath);
let outDir = path.join(distDir, path.dirname(filePath));
let srcPath = path.join("src",filePath);
let outPath = path.relative(outDir, srcPath);
return outPath;
}))
.pipe(sourcemaps.write(".", { includeContent: false }))
.pipe(projectCommonjs()).on("error", onError).js
.pipe(sourcemaps.mapSources((sourcePath, file) => {
let filePath = path.relative("..", sourcePath);
let outDir = path.join(distDir, path.dirname(filePath));
let srcPath = path.join("src", filePath);
let outPath = path.relative(outDir, srcPath);
return outPath;
}))
.pipe(sourcemaps.write(".", { includeContent: false }))
.pipe(gulp.dest(distDir));
});
gulp.task("dist-main", ["dist-typings", "dist-commonjs"]);
Expand All @@ -137,6 +137,11 @@ gulp.task("publish", ["dist-cdn-loader-js"], function(done) {
runSequence("dist", "increment-version", "commit-release", "npm-publish", done);
});

gulp.task("format-package", function(done) {
let json = require("./package.json");
fs.writeFileSync(__dirname + "/package.json", JSON.stringify(json, 2, 2));
});

gulp.task("beta", [], function(done) {
runSequence("dist", "increment-beta", "commit-beta", "npm-publish-beta", done);
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fuse-box",
"version": "2.2.1-beta.18",
"version": "2.2.1",
"description": "Fuse-Box a bundler that does it right",
"typings": "./dist/typings/index.d.ts",
"main": "dist/commonjs/index.js",
Expand Down

0 comments on commit 43e5eda

Please sign in to comment.