Skip to content

Commit 771a9f3

Browse files
committed
output variable analysis to meta/variables.json in dist
1 parent 7f0cca8 commit 771a9f3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

script/dist.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ remove(outDir)
6969
const meta = {bundles}
7070
return writeFile(join(outDir, 'meta.json'), JSON.stringify(meta, null, 2), encoding)
7171
})
72+
.then(writeVariableData)
7273
.then(writeDeprecationData)
7374
})
7475
.catch(error => {
@@ -102,3 +103,10 @@ function writeDeprecationData() {
102103
}
103104
return writeFile(join(outDir, 'deprecations.json'), JSON.stringify(data, null, 2))
104105
}
106+
107+
function writeVariableData() {
108+
const analyzeVariables = require('./analyze-variables')
109+
return analyzeVariables('src/support/index.scss').then(data =>
110+
writeFile(join(outDir, 'variables.json'), JSON.stringify(data, null, 2))
111+
)
112+
}

0 commit comments

Comments
 (0)