scripts/new.js
function linkCss(component) {
  const destination = path.join(demo, component);

  process.chdir(destination);

  const dist = path.join(packages, component, 'dist');
  const source = path.relative(destination, dist);

  fs.readdirSync(source).forEach(file => {
    fs.symlinkSync(path.join(source, file), file);
  });

  console.log(chalk.green('success'), 'Linked demo CSS');
}
function linkCss(component) {
  const destination = path.join(demo, component);

  process.chdir(destination);

  const dist = path.join(packages, component, 'dist');
  const source = path.relative(destination, dist);

  fs.readdirSync(source).forEach(file => {
    fs.symlinkSync(path.join(source, file), file);
  });

  console.log(chalk.green('success'), 'Linked demo CSS');
}
function linkCss ( component ) { const destination = path . join ( demo , component ) ; process . chdir ( destination ) ; const dist = path . join ( packages , component , 'dist' ) ; const source = path . relative ( destination , dist ) ; fs . readdirSync ( source ) . forEach ( file => { fs . symlinkSync ( path . join ( source , file ) , file ) ; } ) ; console . log ( chalk . green ( 'success' ) , 'Linked demo CSS' ) ; }
Link demo CSS to the package dist for the given component.

@param {String} component The name of the component to link.
Link demo CSS to the package dist for the given component .