Skip to content

Commit

Permalink
feat: Moving away from spotify/web-scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Santosh Yadav <santosh.yadav198613@gmail.com>
  • Loading branch information
santoshyadavdev committed Mar 20, 2024
1 parent 8cc47df commit 0acf108
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 67 deletions.
5 changes: 5 additions & 0 deletions .changeset/olive-radios-fly.md
@@ -0,0 +1,5 @@
---
'@backstage/create-app': patch
---

remove @spotify/prettier-config
5 changes: 5 additions & 0 deletions .prettierrc.json
@@ -0,0 +1,5 @@
{
"trailingComma": "all",
"arrowParens": "avoid",
"singleQuote": true
}
40 changes: 19 additions & 21 deletions microsite/package.json
@@ -1,34 +1,22 @@
{
"version": "0.0.0",
"name": "backstage-microsite",
"license": "Apache-2.0",
"version": "0.0.0",
"private": true,
"license": "Apache-2.0",
"scripts": {
"start": "node scripts/pre-build.js && docusaurus start",
"build": "node scripts/pre-build.js && docusaurus build",
"prettier:fix": "prettier --write .",
"deploy": "docusaurus deploy",
"docusaurus": "docusaurus",
"prettier:check": "prettier --check .",
"prettier:fix": "prettier --write .",
"publish-gh-pages": "docusaurus-publish",
"write-translations": "docusaurus-write-translations",
"version": "docusaurus-version",
"rename-version": "docusaurus-rename-version",
"verify:sidebars": "node ./scripts/verify-sidebars",
"start": "node scripts/pre-build.js && docusaurus start",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"docusaurus": "docusaurus"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.1.1",
"@spotify/prettier-config": "^15.0.0",
"@tsconfig/docusaurus": "^2.0.0",
"@types/luxon": "^3.0.0",
"@types/webpack-env": "^1.18.0",
"js-yaml": "^4.1.0",
"prettier": "^2.6.2",
"typescript": "~5.1.0",
"yaml-loader": "^0.8.0"
"verify:sidebars": "node ./scripts/verify-sidebars",
"version": "docusaurus-version",
"write-translations": "docusaurus-write-translations"
},
"prettier": "@spotify/prettier-config",
"dependencies": {
"@docusaurus/core": "^3.1.1",
"@docusaurus/plugin-client-redirects": "^3.1.1",
Expand All @@ -42,5 +30,15 @@
"react-dom": "^18.0.0",
"sass": "^1.57.1",
"swc-loader": "^0.2.3"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.1.1",
"@tsconfig/docusaurus": "^2.0.0",
"@types/luxon": "^3.0.0",
"@types/webpack-env": "^1.18.0",
"js-yaml": "^4.1.0",
"prettier": "^2.6.2",
"typescript": "~5.1.0",
"yaml-loader": "^0.8.0"
}
}
10 changes: 0 additions & 10 deletions microsite/yarn.lock
Expand Up @@ -2532,15 +2532,6 @@ __metadata:
languageName: node
linkType: hard

"@spotify/prettier-config@npm:^15.0.0":
version: 15.0.0
resolution: "@spotify/prettier-config@npm:15.0.0"
peerDependencies:
prettier: 2.x
checksum: aa5ec5739427f9acdb9d62ae6c04f04a344898567239f7ee45c75c6205ebdffbc61747ea8de6e83baf0bc3785359967de4b7097a8723c4b4063ff57dc5cb6c44
languageName: node
linkType: hard

"@svgr/babel-plugin-add-jsx-attribute@npm:^6.5.1":
version: 6.5.1
resolution: "@svgr/babel-plugin-add-jsx-attribute@npm:6.5.1"
Expand Down Expand Up @@ -3855,7 +3846,6 @@ __metadata:
"@docusaurus/module-type-aliases": ^3.1.1
"@docusaurus/plugin-client-redirects": ^3.1.1
"@docusaurus/preset-classic": ^3.1.1
"@spotify/prettier-config": ^15.0.0
"@swc/core": ^1.3.46
"@tsconfig/docusaurus": ^2.0.0
"@types/luxon": ^3.0.0
Expand Down
2 changes: 0 additions & 2 deletions package.json
Expand Up @@ -82,7 +82,6 @@
"node ./scripts/verify-lockfile-duplicates --fix"
]
},
"prettier": "@spotify/prettier-config",
"resolutions": {
"@material-ui/pickers@^3.2.10": "patch:@material-ui/pickers@npm%3A3.3.11#./.yarn/patches/@material-ui-pickers-npm-3.3.11-1c8f68ea20.patch",
"@material-ui/pickers@^3.3.10": "patch:@material-ui/pickers@npm%3A3.3.11#./.yarn/patches/@material-ui-pickers-npm-3.3.11-1c8f68ea20.patch",
Expand All @@ -105,7 +104,6 @@
"@octokit/rest": "^19.0.3",
"@playwright/test": "^1.32.3",
"@spotify/eslint-plugin": "^15.0.0",
"@spotify/prettier-config": "^15.0.0",
"@techdocs/cli": "workspace:*",
"@types/node": "^18.17.8",
"@types/webpack": "^5.28.0",
Expand Down
5 changes: 5 additions & 0 deletions packages/create-app/templates/default-app/.prettierrc.json
@@ -0,0 +1,5 @@
{
"trailingComma": "all",
"arrowParens": "avoid",
"singleQuote": true
}
2 changes: 0 additions & 2 deletions packages/create-app/templates/default-app/package.json.hbs
Expand Up @@ -34,7 +34,6 @@
"@backstage/cli": "^{{version '@backstage/cli'}}",
"@backstage/e2e-test-utils": "^{{version '@backstage/e2e-test-utils'}}",
"@playwright/test": "^1.32.3",
"@spotify/prettier-config": "^12.0.0",
"concurrently": "^8.0.0",
"lerna": "^7.3.0",
"node-gyp": "^9.0.0",
Expand All @@ -45,7 +44,6 @@
"@types/react": "^18",
"@types/react-dom": "^18"
},
"prettier": "@spotify/prettier-config",
"lint-staged": {
"*.{js,jsx,ts,tsx,mjs,cjs}": [
"eslint --fix",
Expand Down
43 changes: 21 additions & 22 deletions packages/techdocs-cli-embedded-app/package.json
@@ -1,17 +1,35 @@
{
"name": "techdocs-cli-embedded-app",
"version": "0.2.92",
"private": true,
"backstage": {
"role": "frontend"
},
"bundled": true,
"private": true,
"homepage": "https://backstage.io",
"repository": {
"type": "git",
"url": "https://github.com/backstage/backstage",
"directory": "packages/techdocs-cli-embedded-app"
},
"scripts": {
"build": "backstage-cli package build --config ./app-config.yaml",
"clean": "backstage-cli package clean",
"lint": "backstage-cli package lint",
"start": "backstage-cli package start --config ./app-config.yaml",
"test": "backstage-cli package test"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"dependencies": {
"@backstage/app-defaults": "workspace:^",
"@backstage/catalog-model": "workspace:^",
Expand Down Expand Up @@ -44,24 +62,5 @@
"@types/react-dom": "*",
"cross-env": "^7.0.0"
},
"scripts": {
"start": "backstage-cli package start --config ./app-config.yaml",
"build": "backstage-cli package build --config ./app-config.yaml",
"clean": "backstage-cli package clean",
"test": "backstage-cli package test",
"lint": "backstage-cli package lint"
},
"prettier": "@spotify/prettier-config",
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
"bundled": true
}
10 changes: 0 additions & 10 deletions yarn.lock
Expand Up @@ -16513,15 +16513,6 @@ __metadata:
languageName: node
linkType: hard

"@spotify/prettier-config@npm:^15.0.0":
version: 15.0.0
resolution: "@spotify/prettier-config@npm:15.0.0"
peerDependencies:
prettier: 2.x
checksum: aa5ec5739427f9acdb9d62ae6c04f04a344898567239f7ee45c75c6205ebdffbc61747ea8de6e83baf0bc3785359967de4b7097a8723c4b4063ff57dc5cb6c44
languageName: node
linkType: hard

"@stoplight/better-ajv-errors@npm:1.0.3":
version: 1.0.3
resolution: "@stoplight/better-ajv-errors@npm:1.0.3"
Expand Down Expand Up @@ -40848,7 +40839,6 @@ __metadata:
"@octokit/rest": ^19.0.3
"@playwright/test": ^1.32.3
"@spotify/eslint-plugin": ^15.0.0
"@spotify/prettier-config": ^15.0.0
"@techdocs/cli": "workspace:*"
"@types/node": ^18.17.8
"@types/webpack": ^5.28.0
Expand Down

0 comments on commit 0acf108

Please sign in to comment.