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
Deploy codesandbox example to gh-pages #59
Conversation
package.json
Outdated
@@ -17,7 +17,9 @@ | |||
"jest": "NODE_ICU_DATA=`yarn -s run node-full-icu-path` jest", | |||
"test": "eslint ./ && flow check && yarn test:ts && yarn jest", | |||
"test:ts": "tslint -p tsconfig.json", | |||
"deploy": "yarn next build && yarn next export && gh-pages -d out", | |||
"copy-sandbox-examples": "mkdir -p ./out/pages && find ./pages -type d -mindepth 1 -maxdepth 1 -exec cp -R \\{\\} ./out/pages \\;", |
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.
Maybe rename to codesandboxes then?
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 meant rename dist folder to codesandboxes. pages
doesn't make much sense in gh-pages
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.
:-) done
next.config.js
Outdated
const rifmPath = | ||
process.env.NODE_ENV === 'production' | ||
? './dist/rifm.esm.js' | ||
: './src/index.js'; |
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.
Does source work without next babel config extension?
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.
Yep it works, even reloads on change
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.
Then let's consume only src. I used dist to consume released version.
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.
done
No description provided.