From 1d0e233a7391cdadf03e12b0df50bb2284726ccd Mon Sep 17 00:00:00 2001 From: literat Date: Sat, 24 Jun 2023 12:51:54 +0200 Subject: [PATCH] Docs(repo): Clean up of unused examples * web-react's demo app is used instead --- .renovaterc.json | 8 ----- examples/index.html | 8 ----- examples/web-react/.browserslistrc | 1 - examples/web-react/.gitignore | 2 -- examples/web-react/babel.config.js | 6 ---- examples/web-react/index.html | 54 ---------------------------- examples/web-react/package.json | 31 ---------------- examples/web-react/src/demo.jsx | 29 --------------- examples/web-react/webpack.config.js | 26 -------------- package.json | 3 -- 10 files changed, 168 deletions(-) delete mode 100644 examples/index.html delete mode 100644 examples/web-react/.browserslistrc delete mode 100644 examples/web-react/.gitignore delete mode 100644 examples/web-react/babel.config.js delete mode 100644 examples/web-react/index.html delete mode 100644 examples/web-react/package.json delete mode 100644 examples/web-react/src/demo.jsx delete mode 100644 examples/web-react/webpack.config.js diff --git a/.renovaterc.json b/.renovaterc.json index 3bf0794fa6..07fa4efb86 100644 --- a/.renovaterc.json +++ b/.renovaterc.json @@ -12,14 +12,6 @@ ], "prConcurrentLimit": 3, "packageRules": [ - { - "groupName": "all example dependencies", - "groupSlug": "all-examples", - "matchPaths": ["examples/**/package.json"], - "matchPackagePatterns": ["*"], - "separateMajorMinor": false, - "rangeStrategy": "pin" - }, { "groupName": "monorepo:storybook", "groupSlug": "monorepo-storybook", diff --git a/examples/index.html b/examples/index.html deleted file mode 100644 index 110c5948f6..0000000000 --- a/examples/index.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - - Spirit Design System - - - diff --git a/examples/web-react/.browserslistrc b/examples/web-react/.browserslistrc deleted file mode 100644 index b69f848edd..0000000000 --- a/examples/web-react/.browserslistrc +++ /dev/null @@ -1 +0,0 @@ -extends @lmc-eu/browserslist-config diff --git a/examples/web-react/.gitignore b/examples/web-react/.gitignore deleted file mode 100644 index b0bced66bc..0000000000 --- a/examples/web-react/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/build -yarn.lock diff --git a/examples/web-react/babel.config.js b/examples/web-react/babel.config.js deleted file mode 100644 index 32c0151763..0000000000 --- a/examples/web-react/babel.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - presets: [ - '@babel/preset-env', - '@babel/preset-react' - ], -}; diff --git a/examples/web-react/index.html b/examples/web-react/index.html deleted file mode 100644 index 10d8555f15..0000000000 --- a/examples/web-react/index.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - Spirit Web React Demo - - - - - - - - - - - - - - - -
-
-

Spirit Web React Demo

-
-
- -
- - diff --git a/examples/web-react/package.json b/examples/web-react/package.json deleted file mode 100644 index 2c8aef7a4f..0000000000 --- a/examples/web-react/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "@lmc-eu/spirit-example-web-react", - "version": "0.4.7", - "description": "Example project with Spirit React components", - "license": "MIT", - "private": true, - "publishConfig": { - "access": "restricted" - }, - "scripts": { - "precopy": "mkdir -p ./build", - "copy": "yarn copy:css", - "copy:css": "cp -r ../../node_modules/@lmc-eu/spirit-web/dist/css/. build", - "prebuild": "yarn copy", - "build": "webpack --config ./webpack.config.js --mode development" - }, - "dependencies": { - "@lmc-eu/spirit-web": "0.45.0", - "@lmc-eu/spirit-web-react": "0.43.0", - "react": "18.2.0", - "react-dom": "18.2.0" - }, - "devDependencies": { - "@babel/core": "7.21.4", - "@babel/preset-env": "7.21.4", - "@babel/preset-react": "7.18.6", - "babel-loader": "9.1.2", - "webpack": "5.80.0", - "webpack-cli": "5.0.2" - } -} diff --git a/examples/web-react/src/demo.jsx b/examples/web-react/src/demo.jsx deleted file mode 100644 index b276e745e1..0000000000 --- a/examples/web-react/src/demo.jsx +++ /dev/null @@ -1,29 +0,0 @@ -import React from 'react'; -import { render } from 'react-dom'; -import { Button } from '@lmc-eu/spirit-web-react/components/Button'; -import { Container } from '@lmc-eu/spirit-web-react/components/Container'; - -const Demo = () => ( -
- -

Button

- - - - - -
-
-); - -render(, document.getElementById('demo_container')); diff --git a/examples/web-react/webpack.config.js b/examples/web-react/webpack.config.js deleted file mode 100644 index 1430cbed85..0000000000 --- a/examples/web-react/webpack.config.js +++ /dev/null @@ -1,26 +0,0 @@ -const Path = require('path'); - -module.exports = () => ({ - entry: { - demo: [Path.join(__dirname, 'src/demo.jsx')], - }, - module: { - rules: [ - { - exclude: /node_modules/, - include: [Path.join(__dirname, 'src')], - test: /\.(js|jsx)$/, - use: [{ loader: 'babel-loader' }], - }, - ], - }, - output: { - filename: '[name].js', - path: Path.join(__dirname, 'build'), - publicPath: '/build/', - }, - resolve: { - extensions: ['.js', '.jsx'], - modules: ['src', 'node_modules'], - }, -}); diff --git a/package.json b/package.json index 13c3c3d8f5..071c9758a5 100644 --- a/package.json +++ b/package.json @@ -22,9 +22,6 @@ "build": "yarn packages:build", "es:lint": "eslint ./", "es:lint:fix": "yarn es:lint --fix", - "examples": "yarn examples:build", - "examples:install": "cd examples/web-react && yarn install", - "examples:build": "cd examples/web-react && yarn build", "commit:lint:test": "yarn commitlint --from HEAD~1 --to HEAD --verbose", "format": "yarn format:check", "format:check": "prettier --check ./",