import fs from 'fs-extra' import { packageJson } from 'mrm-core' const pipelinesTask: TaskExecution = ({ getTaskPath, getTargetPath }) => { packageJson() .setScript('build:dev', 'speedlo build -s dev') .removeScript('deploy:dev') return fs.copyFile( getTaskPath('pipelines-template.yml'), getTargetPath('bitbucket-pipelines.yml'), ) } pipelinesTask.description = 'Setup BitBucket pipelines for deployment' export default pipelinesTask