2.8.1 • Published 2 years ago

@blue-modus/bluetasks v2.8.1

Weekly downloads
156
License
MIT
Repository
-
Last release
2 years ago

@blue-modus/bluetasks

Front-End Task Runner

	npm install --save-dev @blue-modus/bluetasks

Example Scripts:

...in your package.json

1) Optionally pass a --port flag to a task that runs the server to specify the port it should run on. If this is omitted, the server will generate a random port. 2) Optionally pass a --config flag to a task. This should be a relative path to a configuration file. Use this file to override the default any of the default options listed below.

	"dev": "bluetasks --port=3000 --config=./bluetasks.dev.js",
	"dist": "bluetasks --config=./bluetasks.dist.js"

Available Options:

...and their defaults

	module.exports = {
		bwd: __dirname.replace('\\', '\\\\'),
		pwd: process.cwd().replace('\\', '\\\\'),
		client: '[client website]',
		verbose: true,
		debounce_add: 2000,
		debounce_change: 500,
		source: './',
		output: './dist/',
		tasks: [
			'clean',
			'copy',
			'pug',
			'sass',
			'script',
			'vue',
			// 'mjml',
			// 'optimize',
			'server'
		],
		clean: {
			title: 'Clean Output',
			script: './task/clean.js',
			source: '',
			output: '',
			allows: [
				'${this.pug.output}*.html',
				'${this.mjml.output}*.html',
				'${this.sass.output}*.css',
				'${this.sass.output}*.map',
				'${this.script.output}*.js',
				'${this.script.output}*.map',
				'${this.vue.output}*.js',
				'${this.vue.output}*.map',
				'${this.vue.output}*.css',
				'${this.copy.allows[0]}',
				'${this.copy.allows[1]}',
				'${this.copy.allows[2]}'
			],
			options: {
				allows: {}
			}
		},
		copy: {
			title: 'Copy Assets',
			script: './task/copy.js',
			source: '',
			output: '',
			allows: [
				'./img/**/*.{png,jpg,jpeg,gif,bmp,svg}',
				'./fonts/**/*.{ttf,otf,woff,woff2,svg,eot}',
				'./robots.txt'
			],
			watch: true,
			options: {
				allows: {}
			}
		},
		optimize: {
			title: 'Optimize Images',
			script: './task/optimize.js',
			source: '',
			output: '',
			allows: './img/**/*.{png,jpg,jpeg}',
			options: {
				allows: {}
			}
		},
		pug: {
			title: 'Compile Pug',
			script: './task/pug.js',
			source: './pug/',
			output: './',
			allows: '**/*.{pug,jade}',
			watch: true,
			options: {
				allows: {},
				pretty: true
			},
			globals: {},
		},
		mjml: {
			title: 'Compile MJML',
			script: './task/mjml.js',
			source: './mjml/',
			output: './email/',
			allows: '*.{pug,jade,mjml}',
			watch: true,
			options: {
				allows: {}
			},
			globals: {},
		},
		sass: {
			title: 'Compile Sass',
			script: './task/sass.js',
			source: './scss/',
			output: './styles/',
			allows: '*.{sass,scss}',
			watch: true,
			prefix: {},
			options: {
				uglify: false,
				allows: {}
			},
		},
		vue: {
			title: 'Compile Vue',
			script: './task/vue.js',
			source: './vue/',
			output: './vue/',
			allows: '*.{js,json,vue,css,scss}',
			watch: true,
			options: {
				uglify: false,
				scss: ['src/assets/styles/main'],
				allows: {}
			},
		},
		script: {
			title: 'Compile Script',
			script: './task/script.js',
			source: './js/',
			output: './js/',
			allows: '*.js',
			watch: true,
			options: {
				uglify: false,
				allows: {}
			},
		},
		server: {
			title: 'Dev Server',
			script: './task/server.js',
		},
		browsers: [
			'last 2 versions',
			'ie >= 11'
		]
	}
2.8.1

2 years ago

2.8.0

2 years ago

2.7.6

2 years ago

2.7.5

2 years ago

2.7.7

2 years ago

2.7.2

2 years ago

2.7.1

2 years ago

2.7.4

2 years ago

2.7.3

2 years ago

2.7.0

2 years ago

2.6.5

2 years ago

2.6.6

2 years ago

2.6.1

3 years ago

2.6.3

3 years ago

2.6.2

3 years ago

2.6.4

3 years ago

2.6.0

3 years ago

2.5.0

3 years ago

2.5.2

3 years ago

2.5.1

3 years ago

2.5.3

3 years ago

2.4.0

3 years ago

2.3.2

3 years ago

2.3.1

3 years ago

2.3.0

3 years ago

2.2.10

3 years ago

2.2.9

4 years ago

2.2.8

4 years ago

2.2.7

4 years ago

2.2.6

4 years ago

2.2.5

4 years ago

2.2.4

4 years ago

2.2.3

4 years ago

2.2.2

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.4.0

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

0.4.4

5 years ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.6

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago

1.0.0

5 years ago