Build server prototype (integration with GitHub / NuGet / etc)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
micro-build-server/BuildServer/lib/tasks/packform.ts

30 lines
735 B

"use strict";
import { Task } from "../../types";
import sequential from "./sequential";
7 years ago
export default ((params, processor) => sequential({
tasks: [
{
7 years ago
params: { excludeFiles: params.eslintExcludeFiles },
type: "eslintbrowserall",
},
7 years ago
{ type: "uglifyjsall" },
{ type: "cssnanoall" },
{
7 years ago
params: {
data: processor.context.versionInfo,
filename: "version.txt",
},
7 years ago
type: "writefile",
},
{
7 years ago
params: {
archive: `${processor.context.reponame}.zip`,
directory: "",
},
7 years ago
type: "zip",
},
],
}, processor)) as Task;