Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
c4a25d4
[typescript] Add test for style overrides.
Aug 23, 2017
efbc658
[typescript] Refactor typings to modules
Aug 23, 2017
79b519d
renamed the styleSheet argument in withStyles to styles (#7819)
phiilu Aug 18, 2017
f5b2a06
[typescript] Create typings for TS when building. (#7820)
sebald Aug 18, 2017
5867e62
[core] Fix size-limit warning (#7822)
oliviertassinari Aug 18, 2017
25f8a36
[icons] Automate release process (#7823)
oliviertassinari Aug 18, 2017
99297eb
[docs] Advanced table (#7824)
oliviertassinari Aug 18, 2017
95a2e37
[icons] Fix release
oliviertassinari Aug 18, 2017
688e5c7
[icons] Release v1.0.0-beta.5
oliviertassinari Aug 18, 2017
09457cd
[core] Update some dependencies (#7831)
oliviertassinari Aug 18, 2017
4cc74da
[docs] Use next.js (#7759)
oliviertassinari Aug 18, 2017
d975f65
[RadioGroup] Rename selectedValue to value (#7832)
oliviertassinari Aug 18, 2017
1a73450
[core] Better usage of the CI 🚀 (#7833)
oliviertassinari Aug 18, 2017
8d610b7
[TextField] Fix placeholder issue (#7838)
oliviertassinari Aug 19, 2017
96044a9
[docs] Add a ROADMAP page (#7840)
oliviertassinari Aug 19, 2017
b9cdff3
[docs] Add a team page (#7842)
oliviertassinari Aug 19, 2017
5599e36
[docs] Show inherited components (#7846)
oliviertassinari Aug 19, 2017
a588516
[docs] Some last improvement before the release (#7847)
oliviertassinari Aug 20, 2017
8c696ac
[CHANGELOG] Prepare v1.0.0-beta.6
oliviertassinari Aug 20, 2017
ec0967c
v1.0.0-beta.6
oliviertassinari Aug 20, 2017
7cefb97
[docs] Fix release script
oliviertassinari Aug 20, 2017
aee9eb4
[docs] Fix release script v2
oliviertassinari Aug 20, 2017
a040ee5
[docs] Small fixes after the next.js refactorization (#7851)
oliviertassinari Aug 20, 2017
5cd1578
[docs] Fix missing props in css-in-js examples (#7867)
Izhaki Aug 22, 2017
c80a554
Merge branch 'v1-beta' into refactor-typings-to-modules
Aug 23, 2017
a80d3e1
[typescript] Fix tests.
Aug 23, 2017
678a0a6
[build] Copy .d.ts files to build folder.
Aug 23, 2017
0517579
[typescript] Create module typings for icons.
Aug 23, 2017
658fe8b
[typescript] Lint.
Aug 23, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion scripts/copy-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import path from 'path';
import fse from 'fs-extra';
import flowCopySource from 'flow-copy-source';
import glob from 'glob';

function copyFile(file) {
const buildPath = path.resolve(__dirname, '../build/', path.basename(file));
Expand All @@ -15,6 +16,12 @@ function copyFile(file) {
}).then(() => console.log(`Copied ${file} to ${buildPath}`));
}

function copyTypings(from, to) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oliviertassinari I had to update this script, because the .d.ts were not picked up while building :(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, the .js are copied by Babel.

const files = glob.sync('**/*.d.ts', { cwd: from });
const cmds = files.map(file => fse.copy(path.resolve(from, file), path.resolve(to, file)));
return Promise.all(cmds);
}

function createPackageFile() {
return new Promise(resolve => {
fse.readFile(path.resolve(__dirname, '../package.json'), 'utf8', (err, data) => {
Expand Down Expand Up @@ -71,7 +78,9 @@ function createPackageFile() {

const files = ['README.md', 'CHANGELOG.md', 'LICENSE'];

Promise.all(files.map(file => copyFile(file))).then(() => createPackageFile());
Promise.all(files.map(file => copyFile(file)))
.then(() => createPackageFile())
.then(() => copyTypings(path.resolve(__dirname, '../src'), path.resolve(__dirname, '../build')));

// Copy original implementation files for flow.
flowCopySource(['src'], 'build', { verbose: true, ignore: '**/*.spec.js' });