0.0.40 • Published 1 year ago

@doop/core-vue v0.0.40

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@DOOP/Core-Vue

Doop core module for frontend Vue projects

This module generally lives inside a build script.

/**
* Process all .vue file <script frontend/>, <template/> and <style/> blocks
*/
let gulp = require('gulp');
let {compiler} = require('@doop/core-vue');

gulp.task('build.vue', ['load:app', 'load:app.git'], ()=>
	compiler({
		log: gulp.log, // Fancy logging output
	})
);

API

This module exports the following sub-modules:

Compiler(options)

Perform a Doop / Frontend compilation process placing all files in the dist directory within the parent Doop project.

This function expects the Doop global app to be available and it will use it for pathing, config information.

Options:

NameTypeDefaultDescription
oncebooleanfalseRun the compiler loop once, if falsy a watcher is setup and the process never terminates
configObjectInternal config*The Webpack config to use, see notes
configMergeObject{}Additional config to merge into base using _.merge()
logfunctionconsole.logLogging function for any output
colorsbooleantrueWhether to display coloring in output

NOTES:

  • The default Webpack config is avaiable here
  • When cacheCompiler is enabled the Webpack compiler is loaded once and held in memory, it gets reused on all subsequent hits
  • When cacheCompiler is enabled and the compiler is busy it is waited on before continuing so it can finish caching local data, a status message is displayed when this occurs

expressMiddleware

Included automatically when a Doop backend server loads to inject the Webpack HMR handlers.

0.0.40

1 year ago

0.0.37

1 year ago

0.0.38

1 year ago

0.0.39

1 year ago

0.0.35

2 years ago

0.0.36

1 year ago

0.0.33

2 years ago

0.0.34

2 years ago

0.0.30

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.27

2 years ago

0.0.28

2 years ago

0.0.29

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.26

2 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago