Skip to content

Commit

Permalink
Single source of truth for LICENCE for all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed May 16, 2017
1 parent 32a530c commit 51ad5d5
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 297 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ coverage/
build
packages/examples/automated-*
yarn.lock
/**/LICENSE
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Your Name. <name@emailprovider.io>
Copyright (c) 2017 Kadira Inc. <hello@kadira.io>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 0 additions & 21 deletions addons/centered/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions addons/comments/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions addons/info/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions addons/knobs/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions app/react-native/LICENSE

This file was deleted.

74 changes: 0 additions & 74 deletions app/react/CODE_OF_CONDUCT.md

This file was deleted.

21 changes: 0 additions & 21 deletions app/react/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions lib/addons/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions lib/cli/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions lib/storyshots/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions lib/ui/LICENSE

This file was deleted.

20 changes: 13 additions & 7 deletions scripts/prepublish.js
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, './');
5 changes: 0 additions & 5 deletions scripts/ver.js

This file was deleted.

0 comments on commit 51ad5d5

Please sign in to comment.