Ejemplo n.º 1
0
gulp.task("publish", function () {
    return workspace.workspacePackages()
        .pipe(workspace.filter(function (packageDescriptor, packagePath) {
            return !packageDescriptor.private
        }))
        .pipe(workspace.npmPublish({ shrinkWrap: false, bump: "patch" }));
});
Ejemplo n.º 2
0
gulp.task("install", function () {
    var postInstallActions = [
        workspace.postInstallActions.installTypings(),
        {
            action: function (packageDescriptor, packagePath, callback) {
                rimraf.sync(path.join(packagePath, "./typings/**/browser*"));

                callback();
            }
        }
    ];

    return workspace.workspacePackages()
        .pipe(workspace.npmInstall({ postInstallActions: postInstallActions, verboseLogging: true }));
});
Ejemplo n.º 3
0
gulp.task("uninstall", function () {
    var postUninstallActions = [
        {
            condition: function (packageDescriptor, packagePath) {
                return fs.existsSync(path.join(packagePath, "./typings"));
            },
            action: function (packageDescriptor, packagePath, callback) {
                rimraf.sync(path.join(packagePath, "./typings"));

                callback();
            }
        }  
    ];
    
    return workspace.workspacePackages()
        .pipe(workspace.npmUninstall( { postUninstallActions: postUninstallActions, verboseLogging: true } ));
});
Ejemplo n.º 4
0
gulp.task("compile", function () {
    return workspace.workspacePackages()
        .pipe(workspace.buildTypeScriptProject());
});