react-awesome-slider
Version:
React Awesome Slider is a 60fps performant, extendable, highly customisable, production ready React Component that renders a media (image/video) gallery slider carousel.
19 lines (16 loc) • 487 B
JavaScript
import fs from 'fs';
import path from 'path';
import shell from 'shelljs';
const THEMES = path.resolve(__dirname, 'src/styled');
const THEMES_PATH = './dist/custom-animations';
const THEMES_ARG = 'AWESOME_THEME';
fs.readdir(THEMES, (err, files) => {
files.forEach(file => {
if (file.match(/-animation/gi)) {
shell.exec(
`${THEMES_ARG}=${file} webpack --config webpack.animations.config.js`
);
shell.exec(`rm ${THEMES_PATH}/${file}.js`);
}
});
});