@lwce/meta-rollup-plugin
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "@lwce/meta-rollup-plugin", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Rollup plugin to deal with LWC meta-data", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -31,3 +31,3 @@ /* eslint-env node */ | ||
buildStart() { | ||
console.log(`BUILD START`); | ||
//console.log(`BUILD START`); | ||
}, | ||
@@ -37,3 +37,3 @@ buildEnd(error) { | ||
} | ||
console.log(`BUILD END`); | ||
//console.log(`BUILD END`); | ||
for (const moduleId of this.getModuleIds()) { | ||
@@ -67,8 +67,6 @@ if(moduleId.endsWith('.js')) { | ||
console.log(`DIR: ${targetDir}`); | ||
// Ideally, we should emit s custome-element.json file here | ||
const metaFileName = path.join(targetDir,'metadata.json') | ||
fs.writeFileSync(metaFileName,JSON.stringify(components,null,' ')); | ||
//console.log(`Graph Generation Directory: ${targetDir}`); | ||
const graphFileName = path.join(targetDir,'graph.dot') | ||
fs.mkdirSync(targetDir,{recursive:true}) | ||
fs.writeFileSync(graphFileName,generateGraph(components)); | ||
@@ -75,0 +73,0 @@ } |
28719
846