Socket
Socket
Sign inDemoInstall

@doop/core-vue

Package Overview
Dependencies
22
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @doop/core-vue

Doop core module for frontend Vue projects


Version published
Weekly downloads
33
increased by266.67%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 31 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc