@trinitymirrordigital/cue-templates-plugin
Advanced tools
Comparing version 2.0.7-alpha.0 to 2.0.8-alpha.0
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12863
173