@doop/core-vue

Doop core module for frontend Vue projects
1,412
Install
npm install @doop/core-vue
Latest Version:0.0.40
License:MIT
Last Updated:Mar 31, 2023
Links: GitHub  ·  npm
Maintainer: hash-bang

@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:

Name Type Default Description
once boolean false Run the compiler loop once, if falsy a watcher is setup and the process never terminates
config Object Internal config* The Webpack config to use, see notes
configMerge Object {} Additional config to merge into base using _.merge()
log function console.log Logging function for any output
colors boolean true Whether 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.

Related Packages

@doop/search

A search service for the Doop framework

1,032 0
vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

333,357,380 686

Version History

Version Released License
0.0.40 MIT
0.0.39 MIT
0.0.38 MIT
0.0.37 MIT
0.0.36 MIT