Commit Graph

593 Commits

Author SHA1 Message Date
github-actions[bot] ef34f5de7b Version Packages 2021-11-25 12:40:52 +00:00
Patrik Oldsberg 781f91ab30 Merge pull request #8231 from backstage/rugvip/create-app-pack
create-app: add pack scripts that excludes peer depdencies during publish
2021-11-25 13:35:42 +01:00
Patrik Oldsberg dcaeaac174 create-app: add pack scripts that excludes peer depdencies during publish
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-25 12:06:49 +01:00
Fredrik Adelöw 42ebbc18c0 get both gitbeaker packages bumped, and add changeset
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-11-24 14:21:45 +01:00
Tim Jacomb 52d3ca287e Fix broken ssl postgres docs
Signed-off-by: Tim Jacomb <tim.jacomb@hmcts.net>
2021-11-22 16:30:51 +00:00
Fredrik Adelöw 1e57d1c23e Merge pull request #8071 from backstage/feat/change-default-port
Change default port of backend from 7000 to 7007
2021-11-22 15:58:48 +01:00
Eric Peterson 5bfead02ec Merge pull request #8141 from backstage/emmaindal/techdocs-search-default-app
Add techdocs search to default app
2021-11-19 15:56:41 +01:00
Otto Sichert 97b8c8c8fc Ensure all relevant port references are updated and document changes
Signed-off-by: Otto Sichert <git@ottosichert.de>
2021-11-18 17:23:43 +01:00
Otto Sichert b23bc7f9c3 Change default port of backend to 7007 due to MacOS Control Center update
Signed-off-by: Otto Sichert <git@ottosichert.de>
2021-11-18 16:45:57 +01:00
Emma Indal 860254207c prettier
Signed-off-by: Emma Indal <emmai@spotify.com>
2021-11-18 14:45:06 +01:00
github-actions[bot] 99bf179ccf Version Packages 2021-11-18 11:52:08 +00:00
Emma Indal d3248fb8c9 add techdocs search capabilities to default app
Signed-off-by: Emma Indal <emmai@spotify.com>
2021-11-18 12:15:02 +01:00
blam 92f87a9a16 chore: fixing dockerode
Signed-off-by: blam <ben@blam.sh>
2021-11-18 10:52:37 +01:00
blam fb4377ac53 chore: updating the bump in package.jsons too as it a security risk for the ssh2 packages
Signed-off-by: blam <ben@blam.sh>
2021-11-17 21:32:43 +01:00
Vincenzo Scamporlino d63e5dcfdd Merge branch 'master' into vinzscam/create-app-add-bsversion-file 2021-11-16 10:51:25 +01:00
Patrik Oldsberg 2345b318fb create-app: fix windows file copy and mocking
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-15 22:54:29 +01:00
Vincenzo Scamporlino 677bfc2dd0 fix comments
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2021-11-15 17:22:17 +01:00
Vincenzo Scamporlino b6b4d4b73f Bump .backstage.json version
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2021-11-15 16:34:41 +01:00
Vincenzo Scamporlino 085edcfc5f fix comments
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2021-11-15 16:34:41 +01:00
Vincenzo Scamporlino 4ebc9fd277 Create .backstage-version file
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2021-11-15 16:34:36 +01:00
Colton Padden 1b3fab7193 Use mock-fs during createApp to prevent filesystem modifications
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-11-11 13:28:43 -05:00
Colton Padden bd90ded8b7 Add type annotations for mocked child_process.exec
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-11-11 13:28:43 -05:00
Colton Padden 1d666cb67e Add regression tests to createApp entrypoint
Ensure that appropriate tasks are called depending on inquirer prompt answers,
and command-line argument options (--path, and --skip-install).

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-11-11 13:28:43 -05:00
Colton Padden 2163e83fa2 Refactor create-app tasks and introduce regression tests
- Tasks were moved from the script entrypoint to the lib directory
- Doc comments were added for each task function defined in `src/lib/tasks.ts`
- The `yarn test` script was added to package.json
- Unit tests were written for each task -- verying file operations using fs-mock

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-11-11 13:28:43 -05:00
Patrik Oldsberg 03da4c0946 create-app: add app-defaults dependency to app + notice in changeset
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-11 17:26:47 +01:00
Patrik Oldsberg 687fca4ff7 changesets,create-app: update for createApp split
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-11 17:26:13 +01:00
Patrik Oldsberg 44976c138c core-app-api, create-app, dev-utils: updates to use withDefaults
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-11 17:24:35 +01:00
Patrik Oldsberg 014cbf8cb9 core-app-api: deprecate dependency on core-components
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-11 17:24:33 +01:00
github-actions[bot] 3369ade8c0 Version Packages 2021-11-11 11:07:58 +00:00
Rod Machen 5dcea2586c Add Search Modal component (#7316)
Signed-off-by: rodmachen <rmachen@expediagroup.com>
2021-11-11 09:26:15 +01:00
Ben Lambert c90e5727d4 Merge pull request #7920 from backstage/freben/drop-overrides
revert the graphql package pinning
2021-11-09 15:37:12 +01:00
Fredrik Adelöw 1921f70aa7 revert the graphql package pinning
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-11-09 14:50:21 +01:00
Patrik Oldsberg 5725f87e4c create-app: default to making new plugins private
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-08 20:56:03 +01:00
Patrik Oldsberg 4eb087ccdc techdocs-backend: release schema hotfix
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-29 11:03:53 +02:00
github-actions[bot] d66c5f1282 Version Packages 2021-10-28 14:06:43 +00:00
Patrik Oldsberg 5d5cac5b80 Merge pull request #7439 from cmpadden/create-app-path-option
Support optional [path] argument in create-app command-line utility
2021-10-28 13:17:47 +02:00
Colton Padden c9e843547e Create --path directory if it does not already exist
Instead of failing when the specified path does not exist, create it using
`mkdirs`. This ensures that that either the directory already exists, or it's
created.

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-27 14:03:28 -04:00
Colton Padden c671c38279 Template directly to specified path otherwise use temp dir
When the `--path` argument is specified, then perform the create-app templating
directly to that path. Otherwise, template to a temporary directory, and move
the files to a directory based on the project name.

Removed the `cleanUp` method in favor of removing temporary files directly in
the `moveApp` method in a `finally` block.

Reverted `moveApp` method to use the move operation instead ofe recursively
copying files.

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-21 14:53:29 -04:00
github-actions[bot] bf5090e59d Version Packages 2021-10-21 13:28:13 +00: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 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
colton 0a788da873 Use standard error message in catch of copy file call
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-11 15:25:08 -04:00
colton 10f513dd8c Use standard error message in temporary app file copy catch
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-11 13:44:14 -04:00
Patrik Oldsberg eaca0f53fb backend,create-app: install ScaffolderEntitiesProcessor
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-10 20:36:01 +02:00
Colton Padden c80e7ffbf9 use relative temporary file paths in resolving app destination paths
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-07 12:34:12 -04:00
Colton Padden 6c93f322ca use resolvePath with targetDir when using cmd.path
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-07 11:00:40 -04:00
github-actions[bot] 97420439e1 Version Packages 2021-10-07 12:17:39 +00:00
Colton Padden 1d7078df93 validate path directory, and prevent target from being overwritten
Validation now occurs to ensure that the target path exists and is a directory.
Additionally, instead of moving the temporary directory to the target path,
files are now recursively copied, and then cleaned up. This was to support app
creation in the current directory, without clobbering existing files (for
example .git/)

Instead of overwriting the target `path` directory while using the
move method,

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-05 16:10:07 -04:00