Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

docs(CodeSandbox): improve example #1844

Merged
merged 4 commits into from
Aug 26, 2019
Merged

docs(CodeSandbox): improve example #1844

merged 4 commits into from
Aug 26, 2019

Conversation

layershifter
Copy link
Member

@layershifter layershifter commented Aug 23, 2019

Fixes #1812.


馃拝 New template

I created a new template and decided to create a new package @stardust-ui/code-sandbox with it. It simplifies a lot template maintenance. Previously we had two separate templates for TS & JS, they also where defined as plain strings, https://github.com/stardust-ui/react/pull/1844/files#diff-b716b1190843f6af732bfcdd7f589a71.

Now we have single template, type-checks and all new CodeSandboxes can always use it 馃弾 We can also implement later more features, even integrate the variable editor 馃槑

馃搼 Updated issue templates

I updated Bug_report.md and Feature_request.md to use new template instead of SUIR template. I also fixed links in Support_question.md.

@@ -28,7 +28,7 @@ const createExampleSourceCode = (file: Vinyl): ExampleSource => {
})
const prettierResult = prettier.format(babelResult.code, {
...prettierConfig,
parser: 'babylon',
parser: 'babel',
Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, missed this one previously

@DustyTheBot
Copy link
Collaborator

Warnings
鈿狅笍 New package.json added: packages/code-sandbox/package.json. Make sure you have approval before merging!

Generated by 馃毇 dangerJS

@codecov
Copy link

codecov bot commented Aug 23, 2019

Codecov Report

Merging #1844 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1844   +/-   ##
=======================================
  Coverage   69.64%   69.64%           
=======================================
  Files         874      874           
  Lines        7612     7612           
  Branches     2216     2216           
=======================================
  Hits         5301     5301           
  Misses       2303     2303           
  Partials        8        8

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update cc37b82...d5f8265. Read the comment docs.

packages/code-sandbox/src/SandboxApp.tsx Outdated Show resolved Hide resolved
packages/docs-components/package.json Outdated Show resolved Hide resolved
Co-Authored-By: Pavel Lu膷iv艌谩k <pavel.lucivnak@gmail.com>
@vercel vercel bot temporarily deployed to staging August 26, 2019 08:28 Inactive
Co-Authored-By: Pavel Lu膷iv艌谩k <pavel.lucivnak@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue template sandbox points to semantic-ui-react
3 participants