-
Notifications
You must be signed in to change notification settings - Fork 57
feat: add start:with-theme and build:with-theme NPM scripts with Paragon CLI #641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
adamstankiewicz
wants to merge
3
commits into
master
Choose a base branch
from
ags/paragon-install-theme-cli
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
chore: wip
- Loading branch information
commit ba328da06c2c37dc6a3f50dd414bf0d415070b98
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ | |
| "lint:fix": "fedx-scripts eslint --fix --ext .js --ext .jsx .", | ||
| "snapshot": "fedx-scripts jest --updateSnapshot", | ||
| "start": "fedx-scripts webpack-dev-server --progress", | ||
| "start:with-theme": "paragon install-theme && npm start", | ||
| "start:with-theme": "paragon install-theme --brand=@edx/brand-edx.org@latest && npm start", | ||
| "test": "fedx-scripts jest --coverage --passWithNoTests" | ||
| }, | ||
| "husky": { | ||
|
|
@@ -36,10 +36,10 @@ | |
| }, | ||
| "dependencies": { | ||
| "@edx/brand": "npm:@edx/[email protected]", | ||
| "@edx/frontend-component-footer": "12.2.0", | ||
| "@edx/frontend-component-footer": "12.2.1", | ||
| "@edx/frontend-component-header": "4.6.0", | ||
| "@edx/frontend-platform": "5.1.0", | ||
| "@edx/paragon": "21.1.2", | ||
| "@edx/frontend-platform": "4.6.3", | ||
| "@edx/paragon": "21.1.6", | ||
| "@fortawesome/fontawesome-svg-core": "1.2.36", | ||
| "@fortawesome/free-brands-svg-icons": "5.15.4", | ||
| "@fortawesome/free-regular-svg-icons": "5.15.4", | ||
|
|
@@ -50,8 +50,8 @@ | |
| "react": "17.0.2", | ||
| "react-dom": "17.0.2", | ||
| "react-redux": "7.2.9", | ||
| "react-router": "6.15.0", | ||
| "react-router-dom": "6.15.0", | ||
| "react-router": "5", | ||
| "react-router-dom": "5", | ||
| "redux": "4.2.1", | ||
| "regenerator-runtime": "0.13.11" | ||
| }, | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be made generic, somehow? Otherwise, the command would warrant being called
start:with-edx-theme... and in that case, including it here would be debatable.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arbrandes Ah, yes. Let me mark this PR as a draft as it's still in flux a bit. The
paragon install-themecommand does now accept a--brandargument for more programmatic usage of the CLI tool (e.g., in build+deploy processes, if needed). But, we do not intend to include--brandas part of the NPM scripts in MFEs.Instead, if the
--brandargument is not passed, it prompts the user in terminal for the name/version of an NPM package to install as the@edx/brandalias instead.We also heard some feedback recently, where a third usage pattern for this command might be a Git-ignored config file where an engineer could specify something like the following to persist the custom
@edx/brandtheme selection without requiring manual input each time.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latter looks like a neat way out!