UNPKG

react-vertical-timeline-component

Version:
29 lines (24 loc) 626 B
/* eslint-disable */ // adapted based on rackt/history (MIT) // Node 0.10+ var execSync = require('child_process').execSync; var stat = require('fs').stat; // Node 0.10 check if (!execSync) { execSync = require('sync-exec'); } function exec(command) { execSync(command, { stdio: [0, 1, 2] }); } stat('dist-modules', function(error, stat) { // Skip building on Travis if (process.env.TRAVIS) { return; } if (error || !stat.isDirectory()) { exec('npm i @babel/cli @babel/core @babel/plugin-syntax-dynamic-import @babel/preset-es2015 @babel/preset-react'); exec('npm run dist:modules'); } });