Skip to content

Comments

feat: add autoinstall#3

Merged
brian-smith-tcril merged 1 commit intoopenedx:mainfrom
brian-smith-tcril:tgz-flow
Jan 30, 2026
Merged

feat: add autoinstall#3
brian-smith-tcril merged 1 commit intoopenedx:mainfrom
brian-smith-tcril:tgz-flow

Conversation

@brian-smith-tcril
Copy link
Contributor

No description provided.

Copy link
Contributor Author

@brian-smith-tcril brian-smith-tcril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is mostly identical to what landed in openedx/frontend-base#151

I left comments on the small parts I changed

I verified this works against the frontend-base branch of frontend-app-authn here: brian-smith-tcril/frontend-app-authn@e45c637

Comment on lines +5 to +7
export const FRONTEND_BASE_DIR = process.env.FRONTEND_BASE_DIR
? path.resolve(process.env.FRONTEND_BASE_DIR)
: path.resolve('../frontend-base');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has changed from the version in test-site which was hardcoded to point to frontend-base in its parent directory.

Comment on lines +14 to +19
if (!process.env.PORT) {
throw new Error(
'[frontend-dev-utils] PORT is required. Example: PORT=1234 devutils-dev-with-autoinstall'
);
}
export const PORT = Number(process.env.PORT);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was hardcoded in the test-site version, now it needs to be set explicitly.

@brian-smith-tcril brian-smith-tcril marked this pull request as ready for review January 30, 2026 15:56
"license": "AGPL-3.0",
"author": "Open edX Community",
"bin": {
"devutils-dev-with-autoinstall": "./tools/autoinstall/dev-with-autoinstall.mjs"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love this name. If we want to get fancy with it I could move this away from directly providing the script in bin. If we had a cli.mjs then apps could have frontend-dev-utils dev-with-autoinstall instead.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine as-is. It's going to be abstracted away by an npm run invocation, anyway.

Copy link

@arbrandes arbrandes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 👍🏼

"license": "AGPL-3.0",
"author": "Open edX Community",
"bin": {
"devutils-dev-with-autoinstall": "./tools/autoinstall/dev-with-autoinstall.mjs"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine as-is. It's going to be abstracted away by an npm run invocation, anyway.

@brian-smith-tcril brian-smith-tcril merged commit 35f5e8c into openedx:main Jan 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants