Commit Graph

1279 Commits

Author SHA1 Message Date
Patrik Oldsberg 0ebcf168d2 cli: common helper for executing plugin package templates
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-12 16:47:22 +01:00
Patrik Oldsberg 142cd41b7e cli: refactor create factories to use common prompts
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-12 16:24:41 +01:00
Patrik Oldsberg 1c0ac6291c cli: added create backend plugin factory
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-12 16:24:41 +01:00
Patrik Oldsberg 7b8d432de5 cli: complete frontendPlugin create factory implementation
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-12 15:54:02 +01:00
Patrik Oldsberg 248c8eaa25 cli: allow empty create option values
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-12 15:33:45 +01:00
Patrik Oldsberg 602cf4d80d cli: run templating tasks in strict mode
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-12 15:24:08 +01:00
Patrik Oldsberg f8adebde77 cli: build out task lib a bit with command execution, adding deps
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-12 15:23:32 +01:00
Patrik Oldsberg e04cce9cdb cli: wrap create factories up in a bit more built-in logging
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-12 15:22:11 +01:00
Patrik Oldsberg 14e8162d19 cli: added temp dir utility to create context
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-12 13:08:25 +01:00
Patrik Oldsberg 84936dbcbe cli: cmd options and discovery for additional creation context
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-12 12:03:23 +01:00
Patrik Oldsberg 3ca0d3368e cli: display create prompt messages in blue and errors in red
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-12 11:31:53 +01:00
Patrik Oldsberg 55e58c5568 cli: moved bulk of create implementation over to lib
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-12 11:24:40 +01:00
Patrik Oldsberg 2ca3f5ff4c cli: added support for dynamically discovering create options
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-12 11:22:30 +01:00
Patrik Oldsberg e607456dbc cli: create command factory foundations
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-12 11:00:46 +01:00
Patrik Oldsberg 8acb23b29f cli: initial create command
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-12 11:00:45 +01:00
Patrik Oldsberg 25f637f39f cli: make sure JSS styles receive the highest priority
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-11 18:15:39 +01:00
github-actions[bot] 3369ade8c0 Version Packages 2021-11-11 11:07:58 +00:00
Patrik Oldsberg 87d38d61e5 Merge pull request #7911 from backstage/dependabot/npm_and_yarn/spotify/eslint-config-react-12.0.0
build(deps): bump @spotify/eslint-config-react from 10.0.0 to 12.0.0
2021-11-11 10:25:00 +01:00
dependabot[bot] 88677aee18 build(deps): bump @spotify/eslint-config-react from 10.0.0 to 12.0.0
Bumps [@spotify/eslint-config-react](https://github.com/spotify/web-scripts) from 10.0.0 to 12.0.0.
- [Release notes](https://github.com/spotify/web-scripts/releases)
- [Changelog](https://github.com/spotify/web-scripts/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spotify/web-scripts/compare/v10.0.0...v12.0.0)

---
updated-dependencies:
- dependency-name: "@spotify/eslint-config-react"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-10 17:41:51 +01:00
Patrik Oldsberg b393c4d4be cli: fix for config:check only validating frontend config
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-10 16:30:10 +01:00
dependabot[bot] 4de24185c8 build(deps): bump @spotify/eslint-config-typescript
Bumps [@spotify/eslint-config-typescript](https://github.com/spotify/web-scripts) from 10.0.0 to 12.0.0.
- [Release notes](https://github.com/spotify/web-scripts/releases)
- [Changelog](https://github.com/spotify/web-scripts/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spotify/web-scripts/compare/v10.0.0...v12.0.0)

---
updated-dependencies:
- dependency-name: "@spotify/eslint-config-typescript"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-08 15:38:21 +00:00
Fredrik Adelöw bc30f37af0 Merge pull request #7894 from backstage/freben/early-super
Call the super constructor early
2021-11-08 12:02:41 +01:00
Fredrik Adelöw ec64d9590c Call the super constructor early
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-11-06 10:25:17 +01:00
Matto ca58eeffc0 Merge remote-tracking branch 'origin/master' into read-remote-config
# Conflicts:
#	yarn.lock
2021-11-01 19:14:32 +11:00
Patrik Oldsberg dd355bca46 cli: dynamically determine which packages are unsafe to repack
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-29 16:17:47 +02:00
Muhammad Hamadto d86a5734fd Merge branch 'master' into read-remote-config 2021-10-29 15:26:03 +11:00
Matto 5cce78f968 Resolved conflicts
Signed-off-by: Matto <muhamadto@gmail.com>
2021-10-29 15:16:54 +11:00
Matto 1cecd737f9 Removed dependency, introduced isValidUrl, and reinstated configPaths
Signed-off-by: Matto <muhamadto@gmail.com>
2021-10-29 12:53:15 +11:00
Matto ce843364f0 Remove the dependency on Etag headers for reloading config
Signed-off-by: Matto <muhamadto@gmail.com>
2021-10-29 12:47:18 +11:00
Matto 5d4053c827 Read config from remote config server
Signed-off-by: Matto <muhamadto@gmail.com>
2021-10-29 12:43:53 +11:00
github-actions[bot] d66c5f1282 Version Packages 2021-10-28 14:06:43 +00:00
dependabot[bot] 6364c3d6ff build(deps): bump @spotify/eslint-config-base from 9.0.2 to 12.0.0
Bumps [@spotify/eslint-config-base](https://github.com/spotify/web-scripts) from 9.0.2 to 12.0.0.
- [Release notes](https://github.com/spotify/web-scripts/releases)
- [Changelog](https://github.com/spotify/web-scripts/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spotify/web-scripts/compare/v9.0.2...v12.0.0)

---
updated-dependencies:
- dependency-name: "@spotify/eslint-config-base"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-27 12:43:19 +00:00
blam d465f2e0af chore: bump the msw package and remove it from test-utils as it's not even needed
Signed-off-by: blam <ben@blam.sh>
2021-10-26 17:13:49 +02:00
dependabot[bot] dc6d2eb2a3 build(deps): bump webpack-dev-server from 4.0.0-rc.0 to 4.3.1
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.0.0-rc.0 to 4.3.1.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.0.0-rc.0...v4.3.1)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-26 14:32:56 +00:00
Johan Haals f1e96dc5b1 chore/cli: Replace msw with setupRequestMockHandlers
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-10-26 10:54:47 +02:00
Fredrik Adelöw 56f182dde2 Remove all internal usage of the Json types
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-10-22 16:11:35 +02:00
github-actions[bot] bf5090e59d Version Packages 2021-10-21 13:28:13 +00:00
Patrik Oldsberg 8238c8998f Merge pull request #7685 from backstage/rugvip/backability
cli: add in a redirect for jestEsmTransform for compatibility
2021-10-20 14:01:08 +02:00
Patrik Oldsberg a10ff21d59 cli: add in a redirect for jestEsmTransform for compatibility
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-20 10:45:23 +02:00
Patrik Oldsberg 36e67d2f24 more strict error type checking in most packages and backend plugins
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-17 15:09:05 +02:00
Patrik Oldsberg 35b7a0bbd5 Merge pull request #7569 from backstage/rugvip/transformers
cli: rework how we handle ESM transforms for tests
2021-10-15 10:28:53 +02:00
github-actions[bot] 4c840cebfa Version Packages 2021-10-14 12:45:08 +00:00
Patrik Oldsberg 4050e33f03 cli: remove old jest ESM transform
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-13 18:37:05 +02:00
Patrik Oldsberg b486adb8c6 cli: rework jest ESM handling by transforming by default
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-13 18:37:05 +02:00
Fredrik Adelöw 273014dd10 Merge pull request #7537 from backstage/dependabot/npm_and_yarn/mini-css-extract-plugin-2.4.2
build(deps): bump mini-css-extract-plugin from 1.4.1 to 2.4.2
2021-10-12 21:20:55 +02:00
Fredrik Adelöw 9e5005a4cf fix build error
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-10-12 12:19:51 +02:00
Patrik Oldsberg fe975842c2 Merge pull request #7528 from backstage/rugvip/root-tests
cli: allow __dirname usage in backend tests and fix test runs from root
2021-10-12 10:51:56 +02:00
dependabot[bot] c6f927d819 build(deps): bump mini-css-extract-plugin from 1.4.1 to 2.4.2
Bumps [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) from 1.4.1 to 2.4.2.
- [Release notes](https://github.com/webpack-contrib/mini-css-extract-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.4.1...v2.4.2)

---
updated-dependencies:
- dependency-name: mini-css-extract-plugin
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-11 13:09:49 +02:00
Júlio Zynger 6583c6ac40 Make prettier happy when generating plugins
I've noticed that creating a plugin and immediately running `prettier check` causes failures due to the missing semicolon in this file.

Signed-off-by: Julio Zynger <julio.zynger@soundcloud.com>
2021-10-11 12:39:46 +02:00
Patrik Oldsberg 668df8d33f cli: set project display name when running mmultiple projects
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-10 20:00:42 +02:00