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
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
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
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
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
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
Colton Padden
973678fd8c
use --path option instead of [path] argument in create-app
...
Signed-off-by: Colton Padden <colton.padden@fastmail.com >
2021-10-05 11:20:35 -04:00
Colton Padden
fe48f0ea95
update create-app usage to include optional [path] argument
...
Signed-off-by: Colton Padden <colton.padden@fastmail.com >
2021-10-05 09:41:38 -04:00
Colton Padden
4f1c30c176
Support optional [path] argument in create-app command-line utility
...
When this is specified, then copy the newly created application to the specified
directory, otherwise, copy the application to a folder based on the name
specified name.
Signed-off-by: Colton Padden <colton.padden@fastmail.com >
2021-10-04 15:36:50 -04:00
Patrik Oldsberg
8142a8ecb2
packages,plugins: add package documentation
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-09-14 18:47:53 +02:00
Patrik Oldsberg
9258c54f87
Merge branch 'master' into rugvip/mod
2021-06-22 10:07:18 +02:00
Patrik Oldsberg
9f527db1bd
create-app: update available package versions to use new core packages
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-06-19 19:48:43 +02:00
Fredrik Adelöw
a88073c29a
Update copyright headers
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-06-18 20:26:42 +02:00
Eric Peterson
e84f6aac87
Update @backstage/create-app to include the latest improvements in @backstage/search*
...
Signed-off-by: Eric Peterson <ericpeterson@spotify.com >
2021-06-10 10:11:32 +02:00
Otto Sichert
1ddf551f4e
Add CLI output and README how to start app after create-app CLI
...
Signed-off-by: Otto Sichert <git@ottosichert.de >
2021-06-02 11:05:07 +02:00
Tim Hansen
8b62311cbb
Replace quickstart-app-auth with updated docs
...
Signed-off-by: Tim Hansen <timbonicus@gmail.com >
2021-05-24 12:46:59 -06:00
Tim Hansen
f88fe9dd9b
Update create-app template for better parity with example app
...
Fixes #4613
Signed-off-by: Tim Hansen <timbonicus@gmail.com >
2021-03-19 15:18:26 -06:00
Tim
2a8d622216
Merge pull request #4975 from backstage/timbonicus/db-default
...
Switch the default DB choice to SQLite
2021-03-16 16:39:07 -06:00
Fredrik Adelöw
3385b374bd
introduce @backstage/integration-react and its scmIntegrationsApiRef
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-03-16 18:37:59 +01:00
Tim Hansen
10e2163a82
Switch the default DB choice to SQLite
...
Signed-off-by: Tim Hansen <timbonicus@gmail.com >
2021-03-16 09:36:01 -06:00
Fredrik Adelöw
8686eb38cf
Introduce the @backstage/errors package.
...
Encode thrown errors in the backend as a JSON payload using a facility in that package, and render helpful frontend displays of those errors.
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-03-11 14:31:21 +01:00
Johan Haals
0b94e83ba4
create-app: Add catalog-client dependency
...
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-02-16 14:22:08 +01:00
Oliver Sand
c677643afa
Rename from @backstage/plugin-catalog-common-react to @backstage/plugin-catalog-react
2021-01-29 10:54:09 +01:00
Oliver Sand
019fe39a08
Createa @backstage/plugin-catalog-common-react package
2021-01-29 10:54:09 +01:00
Patrik Oldsberg
d3947caf38
create-app: fix accidental runtime package dependencies
2021-01-21 18:33:04 +01:00
Adam Harvey
65632b3a36
Add catalog-import plugin
2020-12-27 23:44:51 -05:00
Philipp Hugenroth
f742a8bf7b
Add search plugin to new CLI created apps
2020-12-18 10:42:38 +01:00
Patrik Oldsberg
7d7abd50c8
create-app: add app-backend plugin to template
2020-11-19 01:20:13 +01:00
Patrik Oldsberg
0efbdfbbb8
cli,create-app: refactor package versions handling + fix tasks test
2020-10-28 01:17:31 +01:00
Patrik Oldsberg
2283fd92fc
create-app: decouple versions
2020-10-28 01:17:30 +01:00
Patrik Oldsberg
468d4a2dae
Merge pull request #2684 from themousepotato/lintrule-dirname-fix
...
Add a lint rule to avoid using __dirname
2020-10-09 21:03:13 +02:00
Ivan Shmidt
28793b502c
Merge pull request #2820 from spotify/Rugvip-patch-1
...
create-app: remove build step
2020-10-09 14:09:41 +02:00
Navaneeth Suresh
bbeaff9daf
Add a lint rule to avoid using __dirname
2020-10-09 15:03:29 +05:30
Patrik Oldsberg
bd785fff17
create-app: remove build step
2020-10-09 11:00:02 +02:00
Navaneeth Suresh
c2cb5a038b
Prompt about enabling auth providers when creating new app
2020-10-04 16:00:32 +05:30
Patrik Oldsberg
410bd7cab1
create-app: avoid printing help
2020-08-06 17:04:44 +02:00