@sproutsocial/seeds-motion
Advanced tools
Comparing version 0.2.10 to 0.2.11
@@ -25,26 +25,26 @@ const fs = require('fs'); | ||
gulp.task('motion-docs', done => { | ||
theo.plugins.file(motionTokensPath).pipe(theo.plugins.transform('web')).pipe( | ||
theo.plugins.getResult(result => { | ||
const tokens = JSON.parse(result); | ||
const easings = tokens.propKeys.map(key => { | ||
const prop = tokens.props[key]; | ||
const {value, description} = prop; | ||
theo.plugins | ||
.file(motionTokensPath) | ||
.pipe(theo.plugins.transform('web')) | ||
.pipe( | ||
theo.plugins.getResult(result => { | ||
const tokens = JSON.parse(result); | ||
const easings = tokens.propKeys.map(key => { | ||
const prop = tokens.props[key]; | ||
const {value, description} = prop; | ||
return { | ||
sass: sassVar(prop.package, prop.name), | ||
javascript: javascriptConst(prop.package, prop.name), | ||
value, | ||
description | ||
}; | ||
}); | ||
return { | ||
sass: sassVar(prop.package, prop.name), | ||
javascript: javascriptConst(prop.package, prop.name), | ||
value, | ||
description | ||
}; | ||
}); | ||
fs.writeFileSync( | ||
'dist/tokens.json', | ||
`${JSON.stringify(easings)}` | ||
); | ||
done(); | ||
}) | ||
); | ||
fs.writeFileSync('dist/tokens.json', `${JSON.stringify(easings)}`); | ||
done(); | ||
}) | ||
); | ||
}); | ||
gulp.task('default', gulp.series(['clean', gulp.parallel(['motion-scss', 'motion-js']), 'motion-docs'])); |
{ | ||
"name": "@sproutsocial/seeds-motion", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"stability": "beta", | ||
@@ -16,4 +16,4 @@ "description": "SEEDS Design System Motion and Animation Values", | ||
"devDependencies": { | ||
"@sproutsocial/seeds-utils": "^0.1.10" | ||
"@sproutsocial/seeds-utils": "^0.1.11" | ||
} | ||
} |
5497