Skip to content

Commit

Permalink
fix: test updating the SVG Icon build script to include the build pre…
Browse files Browse the repository at this point in the history
…p task
  • Loading branch information
sghoweri authored Jan 10, 2019
1 parent 4a9471e commit 8b14814
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/components/bolt-icons/build-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const prettier = require('prettier');
const SVGO = require('svgo');
const yaml = require('js-yaml');
const { getConfig } = require('@bolt/build-tools/utils/config-store');
const { buildPrep } = require('@bolt/build-tools/tasks/task-collections');

const svgo = new SVGO({
plugins: [
Expand Down Expand Up @@ -277,6 +278,7 @@ async function build() {
async function generateFile(icons) {
try {
const config = await getConfig();
await buildPrep();
const names = icons.map(icon => icon.id);
const schema = yaml.safeLoad(
fs.readFileSync('../bolt-icon/icon.schema.yml', 'utf8'),
Expand Down

0 comments on commit 8b14814

Please sign in to comment.