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

45 lines
1.1 KiB

"use strict";
import { GenericTask } from "../types";
import cssnanoall from "./cssnanoall";
import eslintbrowserall from "./eslintbrowserall";
import sequential from "./sequential";
import uglifyjsall from "./uglifyjsall";
import writefile from "./writefile";
import zip from "./zip";
interface IParameters {
readonly eslintExcludeFiles?: string[];
}
export default ((params) => (processor) => sequential({
8 years ago
tasks: [
{
name: "eslint",
task: eslintbrowserall({ excludeFiles: params.eslintExcludeFiles }),
},
{
name: "uglifyjs",
task: uglifyjsall({}),
},
{
name: "cssnano",
task: cssnanoall({}),
},
{
name: "writeversion",
task: writefile({
8 years ago
data: processor.context.versionInfo,
filename: "version.txt",
}),
},
{
name: "zip",
task: zip({
8 years ago
archive: `${processor.context.reponame}.zip`,
directory: "",
}),
8 years ago
},
],
})(processor)) as GenericTask<IParameters>;