-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed date/color knobs by forcing a single version of react #1345
Changes from all commits
359e74e
078b6af
28a1157
c655827
a81c2d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
node_modules | ||
*.log | ||
.idea | ||
|
||
package-lock.json | ||
npm-shrinkwrap.json | ||
yarn.lock | ||
*.lerna_backup | ||
packs/*.tgz | ||
|
||
dist | ||
build | ||
coverage/ | ||
docs/public | ||
|
||
.cache | ||
|
||
.tern-port | ||
*.DS_Store | ||
.cache | ||
junit.xml | ||
coverage/ | ||
*.lerna_backup | ||
build | ||
packages/examples/automated-* | ||
yarn.lock | ||
/**/LICENSE | ||
docs/public | ||
packs/*.tgz | ||
package-lock.json |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,7 @@ storiesOf('Button', module) | |
|
||
// NOTE: color picker is currently broken | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ndelangen if it's fixed, please remove this 😄 |
||
const backgroundColor = color('background', '#ffff00'); | ||
// const backgroundColor = '#ffff00'; | ||
const items = array('Items', ['Laptop', 'Book', 'Whiskey']); | ||
const otherStyles = object('Styles', { | ||
border: '3px solid #ff00ff', | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,6 @@ | |
"type": "git", | ||
"url": "https://github.com/storybooks/storybook.git" | ||
}, | ||
"scripts": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ndelangen remove opencollective deps? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah the postinstall was messing with hoisting which I experimented with, When refactoring the cli I will add a opencollective notice during first run or something like it. |
||
"postinstall": "opencollective postinstall --collective=storybook" | ||
}, | ||
"dependencies": { | ||
"@storybook/codemod": "^3.1.5", | ||
"chalk": "^1.1.3", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,15 @@ shell.echo(chalk.bold(`${packageJson.name}@${packageJson.version}`)); | |
shell.echo(chalk.gray('\n=> Clean dist.')); | ||
shell.rm('-rf', 'dist'); | ||
|
||
const pwd = shell.pwd(); | ||
shell.echo(`pwd = ${pwd}`); | ||
shell.cd(path.join(__dirname, '..')); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ndelangen what's this for? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Babel WAS run inside each folder, using the babel binary from root, but presets from package folders. This changes so the directory where babel is run from IS root, so presets are taken from there. This will allow us to clean up the babel presets dependencies in packages a bit. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you explain this a bit more? Doesn't babel end up looking for the preset in root if it doesn't find it in the package anyway (w/ standard |
||
|
||
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', | ||
`${pwd}/src --out-dir ${pwd}/dist`, | ||
'--copy-files', | ||
].join(' '); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should be ignoring these files (also
yarn.lock
)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmeasday see my PR here: #1338
We tried merging in the package lock, but it broke everything, and I pulled it out. I think until somebody figures out what to do here, we are better off not checking them in and ignoring them so that they don't accidentally get checked in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that makes sense but it certainly feels weird to be ignoring a file that npm tells you to check in. We should open an issue about this I guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1346