forked from storybookjs/storybook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Single source of truth for LICENCE for all packages
- Loading branch information
Showing
15 changed files
with
15 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ coverage/ | |
build | ||
packages/examples/automated-* | ||
yarn.lock | ||
/**/LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,32 @@ | ||
const path = require('path'); | ||
const shell = require('shelljs'); | ||
const chalk = require('chalk'); | ||
const babel = path.join(__dirname, '..', 'node_modules', '.bin', 'babel'); | ||
|
||
require('./ver'); | ||
const packageJson = require('../package.json'); | ||
shell.echo(chalk.bold(`${packageJson.name}@${packageJson.version}`)); | ||
|
||
shell.echo(chalk.gray('\n=> Clean dist.')); | ||
shell.rm('-rf', 'dist'); | ||
|
||
const babel = path.join(__dirname, '..', 'node_modules', '.bin', 'babel'); | ||
const args = [ | ||
'--ignore tests,__tests__,test.js,stories/,story.jsx', | ||
'--plugins "transform-runtime"', | ||
'./src --out-dir ./dist', | ||
'--copy-files', | ||
].join(' '); | ||
|
||
const cmd = `${babel} ${args}`; | ||
shell.rm('-rf', 'dist'); | ||
|
||
const command = `${babel} ${args}`; | ||
shell.echo(chalk.gray('\n=> Transpiling "src" into ES5 ...\n')); | ||
shell.echo(chalk.gray(cmd)); | ||
shell.echo(chalk.gray(command)); | ||
shell.echo(''); | ||
const code = shell.exec(cmd).code; | ||
const code = shell.exec(command).code; | ||
if (code === 0) { | ||
shell.echo(chalk.gray('\n=> Transpiling completed.')); | ||
} else { | ||
shell.exit(code); | ||
} | ||
|
||
const licence = path.join(__dirname, '..', 'LICENSE'); | ||
shell.echo(chalk.gray('\n=> Copy LICENSE.')); | ||
shell.cp(licence, './'); |
This file was deleted.
Oops, something went wrong.