Design system.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.ts 647 B

12345678910111213141516
  1. import { copyFileSync } from 'fs';
  2. import { resolve } from 'path';
  3. const doCopy = (src: string, dest: string) => {
  4. const trueSrc = resolve(src);
  5. const trueDest = resolve(dest);
  6. console.log('Copying...');
  7. console.log(`${trueSrc} -> ${trueDest}`);
  8. copyFileSync(trueSrc, trueDest);
  9. console.log('Done');
  10. }
  11. doCopy('./src/components/TagInput/TagInput.css', './dist/TagInput.css');
  12. doCopy('./src/components/ToggleButton/ToggleButton.css', './dist/ToggleButton.css');
  13. doCopy('./src/components/ToggleSwitch/ToggleSwitch.css', './dist/ToggleSwitch.css');
  14. doCopy('./src/components/ToggleTickBox/ToggleTickBox.css', './dist/ToggleTickBox.css');