Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trinitymirrordigital/cue-templates-plugin

Package Overview
Dependencies
Maintainers
21
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trinitymirrordigital/cue-templates-plugin - npm Package Compare versions

Comparing version 2.0.7-alpha.0 to 2.0.8-alpha.0

3

lib/helpers.js

@@ -62,4 +62,5 @@ /* eslint-env node */

exports.startShell = (path) => {
let started = false;
let started = !path;
return () => {
console.log('Starting shell');
if (started) return; // so only runs once

@@ -66,0 +67,0 @@ started = true;

@@ -7,3 +7,3 @@ const { getComment, getName, getYml, outputYaml, processYml, startShell } = require('./helpers');

constructor(options) {
console.log('TemplatePlugin');
console.log('TemplatePlugin >>>>>');
this.ymlList = []; // Stores yaml

@@ -47,5 +47,6 @@ this.options = options;

const assets = Object.entries(compilation.assets);
console.log('Processing YAML files');
this.ymlList = this.ymlList.map(({ name, value }) => {
const path = this.dev ? publicPath : js; // Sets webpack-dev-server path if in dev
console.log(`Processing ${name}`);
console.log(`Processing ${name}`, path);
const yml = processYml(value, assets, path);

@@ -82,2 +83,3 @@

this.processComments(compiler);
console.log('TemplatePlugin >>>>> apply');
// For webpack dev server

@@ -84,0 +86,0 @@ compiler.hooks.watchRun.tap(PLUGIN_NAME, (comp) => {

{
"name": "@trinitymirrordigital/cue-templates-plugin",
"version": "2.0.7-alpha.0",
"version": "2.0.8-alpha.0",
"description": "Webpack plugin to create cue component yml",

@@ -42,3 +42,3 @@ "author": "Adrian Stainforth <adrian.stainforth@gmail.com>",

},
"gitHead": "036f16daa496de56b5cb72dd00da3ee98fead7c2",
"gitHead": "161aa41331e12dcaea7d48adf2c7d97d9bbe85f7",
"devDependencies": {

@@ -45,0 +45,0 @@ "@trinitymirrordigital/dragonfly-jest-config": "^5.0.5",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc