Skip to content

Commit 5d17e37

Browse files
authored
Combine all themes into a single playground (rjsf-team#1539)
* move playground to new folder * move playground to packages and standardize playground structure * don't rely on bootstrap in playground * fix styling, move share button to top right * remove footer things * more fixes * encode theme in playground hash * fix: don't switch to default theme when changing tabs * correct package name is @rjsf/playground * fix prod config for playground * fix more configs * use webpack-dev-server * render form in a Frame * add dependencies * use DemoFrame component to properly fix material-ui styles * use old bootstrap look and feel for the playground itself * fix dist * move netlify toml * update netlify * empty commit * remove npm prepare to speed up travis runs * fix webpack dist config for playground * fix import * disable minicssextractplugin to try to fix netlify * fix netlify path * no need to build playground / gh-pages for core package * add HtmlWebpackPlugin
1 parent caab8e6 commit 5d17e37

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+19134
-570
lines changed

netlify.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[build]
2+
base = "packages/playground"
3+
publish = "build"
4+
command = "npm run build:playground"
5+
6+
[build.environment]
7+
SHOW_NETLIFY_BADGE = "true"

packages/core/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55
"scripts": {
66
"build:lib": "rimraf lib && cross-env NODE_ENV=production babel -d lib/ src/",
77
"build:dist": "rimraf dist && cross-env NODE_ENV=production webpack --config webpack.config.dist.js",
8-
"build:playground": "rimraf build && cross-env NODE_ENV=production webpack --config webpack.config.prod.js && cp playground/index.prod.html build/index.html",
98
"cs-check": "prettier -l \"{playground,src,test}/**/*.js\"",
109
"cs-format": "prettier \"{playground,src,test}/**/*.js\" --write",
1110
"dist": "npm run build:lib && npm run build:dist",
1211
"lint": "eslint src test playground",
13-
"prepare": "npm run dist",
1412
"precommit": "lint-staged",
15-
"publish-to-gh-pages": "npm run build:playground && gh-pages --dist build/",
1613
"publish-to-npm": "npm run dist && npm publish",
1714
"preversion": "npm run build:playground && npm run dist && npm run cs-check && npm run lint",
1815
"start": "node devServer.js",

0 commit comments

Comments
 (0)