-
Notifications
You must be signed in to change notification settings - Fork 10
feat: extracted packages: license-kit CLI and @callstack/react-native-legal-shared
#44
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
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
908bea0
refactor: extract common logic to shared package
artus9033 7d17de0
feat: rename to license-kit
thymikee 73185ac
chore: update bin
thymikee 0cd2111
chore: not private
thymikee 2841e6f
chore: set version instead of workspace
thymikee fa761cb
chore: changeset
thymikee cdd6923
v0.1.1
thymikee b531ff5
fix: set shebang
thymikee 115c900
chore: license-kit@0.1.2
thymikee 51acaf5
refactor!: refactor extracted parts of code to the shared module
artus9033 f419c6d
chore: tsc watch script for development in shared package, updated docs
artus9033 b3b6f59
feat: print version of the CLI
artus9033 4b72608
feat: output and format flags to export to file in a given format, im…
artus9033 859f2e3
chore: added dev script to CLI package
artus9033 869e1f1
docs: rewrite of docs for all packages
artus9033 f7da356
docs: added badges to README.md
artus9033 1490774
docs: added links to documentation website in README.md
artus9033 d193c30
chore: stripped obsolete style rule for docs
artus9033 bcd60f8
feat!: split the CLI into commands: report, copyleft
artus9033 738a61e
docs: reorganized landing page layout
artus9033 cfdaedd
chore: stripped obsolete console.log statements
artus9033 e7c016a
chore: remove obsolete config file
artus9033 56b75f9
fix: import shared utilities from dependency package rather than loca…
artus9033 a85f910
fix: revert accidental removal of plugin-utils dir from package.json …
artus9033 129f1ef
chore: remove obsolete development plugin to reduce obsolete indirect…
artus9033 08fd87b
chore: replace del-cli with rimraf
artus9033 dcbd694
chore: remove obsolete eslint configuration
artus9033 39d7f02
Merge branch 'main' into feat/extracted-logic-and-cli
artus9033 b9d675e
chore: updated project banner
artus9033 c0a42ad
docs: rspress typedoc plugin for API docs for @callstack/react-native…
artus9033 f9c1809
chore: changes after CR
artus9033 3d04626
chore: added changesets
artus9033 19e68bd
feat: improve docs
mateusz1913 bfac40c
feat: improve shared package
mateusz1913 2f58502
feat: improve license-kit copyleft output and detection of copyleft l…
mateusz1913 0df99c0
chore: implement integration tests for license-kit
mateusz1913 afb7f33
Merge branch 'main' into feat/extracted-logic-and-cli
artus9033 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
There are no files selected for viewing
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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| 'license-kit': minor | ||
| --- | ||
|
|
||
| Separated copyleft and report commands, general code refactor |
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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| 'react-native-legal': minor | ||
| --- | ||
|
|
||
| Consume extracted core logic from @callstack/react-native-legal-shared |
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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@callstack/react-native-legal-shared': minor | ||
| --- | ||
|
|
||
| Complete refactor, renamed generate* functions to write* and extracted generation logic to functions under previous generate\* names |
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 |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| 'license-kit': patch | ||
| '@callstack/react-native-legal-shared': patch | ||
| --- | ||
|
|
||
| feat: setup new packages in monorepo |
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
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
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
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
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 |
|---|---|---|
|
|
@@ -12,3 +12,6 @@ doc_build/ | |
| .vscode/* | ||
| !.vscode/extensions.json | ||
| .idea | ||
|
|
||
| # @rspress/plugin-typedoc | ||
| docs/api | ||
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 |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| import { usePageData } from 'rspress/runtime'; | ||
| import { Button, HomeFeature, HomeFooter, HomeHero } from 'rspress/theme'; | ||
|
|
||
| export function CustomHomePage() { | ||
| const { | ||
| page: { routePath }, | ||
| } = usePageData(); | ||
|
|
||
| return ( | ||
| <> | ||
| <HomeHero | ||
| frontmatter={{ | ||
| hero: { | ||
| name: | ||
| `<span class="hero-name">React Native Legal</span>` + | ||
| '<br/>' + | ||
| `<span class="hero-name">License Kit</span>`, | ||
| text: '', | ||
| tagline: | ||
| `<span class="hero-tagline" style="line-height: 1.4;">` + | ||
| 'Automagically generate license acknowledgements' + | ||
| '\n' + | ||
| 'for your <ins>React Native app</ins> & <ins>any Node.js</ins> project' + | ||
| `</span>`, | ||
| actions: [ | ||
| { theme: 'brand', text: 'React Native', link: '/docs/react-native' }, | ||
| { theme: 'brand', text: 'CLI', link: '/docs/standalone-cli' }, | ||
| { theme: 'brand', text: 'API', link: '/docs/programmatic-usage' }, | ||
| { theme: 'alt', text: 'GitHub', link: 'https://github.com/callstackincubator/react-native-legal' }, | ||
| ], | ||
| }, | ||
| }} | ||
| routePath={routePath} | ||
| /> | ||
|
|
||
| <HomeFeature | ||
| frontmatter={{ | ||
| features: [ | ||
| { | ||
| title: 'Native Integration', | ||
| details: | ||
| 'Uses native platform tools (LicensePlist for iOS and AboutLibraries for Android) to generate and display licenses.', | ||
| icon: '📱', | ||
| link: '/docs/react-native', | ||
| }, | ||
| { | ||
| title: 'Expo & Bare Workflow Support', | ||
| details: | ||
| 'Works with both Expo managed workflow via Config Plugin and React Native CLI via custom command.', | ||
| icon: '🔌', | ||
| link: '/docs/react-native#setup', | ||
| }, | ||
| { | ||
| title: 'NodeJS / Non-RN Projects Support', | ||
| details: | ||
| 'Works with any Node.js project, not just React Native apps. Use it to generate license reports for any Node.js application.', | ||
| icon: '💻', | ||
| link: '/docs/standalone-cli', | ||
| }, | ||
| { | ||
| title: 'Versatile output formats (CLI & Programmatic)', | ||
| details: | ||
| 'Generate license reports in a format of choice (JSON, Markdown, raw text, AboutLibraries-compatible JSON metadata).', | ||
| icon: '📝', | ||
| link: '/docs/standalone-cli#command-line-options', | ||
| }, | ||
| { | ||
| title: 'Programmatic API', | ||
| details: | ||
| 'Core functionalities are exposed as an importable package you can use programmatically and adjust the presentation / processing of the report contents.', | ||
| icon: '🛠️', | ||
| link: '/docs/programmatic-usage', | ||
| }, | ||
| { | ||
| title: 'Automatic Scanning', | ||
| details: | ||
| 'Automatically scans your dependencies and generates license information for both iOS and Android platforms.', | ||
| icon: '🔎', | ||
| link: '/docs/react-native', | ||
| }, | ||
| ], | ||
| }} | ||
| routePath={routePath} | ||
| /> | ||
|
|
||
| <div className="docs-introduction-cta"> | ||
| <span | ||
| onClick={() => { | ||
| window.location.pathname = routePath + (routePath.endsWith('/') ? '' : '/') + 'docs/introduction'; | ||
| }} | ||
| > | ||
| <Button text="Not sure, which to choose?" theme="alt" type="button" size="medium" /> | ||
| </span> | ||
| </div> | ||
|
|
||
| <div className="home-footer-wrapper"> | ||
| <HomeFooter /> | ||
| </div> | ||
| </> | ||
| ); | ||
| } |
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 |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import { LinkCard } from 'rspress/theme'; | ||
|
|
||
| export function PackagesPresentation() { | ||
| return ( | ||
| <div className="flex-intro-cards"> | ||
| <LinkCard | ||
| href="/react-native-legal/docs/react-native" | ||
| title="React Native" | ||
| description="I'm using React Native, either bare (RN CLI) or with Expo and want to display a licenses screen in my app." | ||
| /> | ||
|
|
||
| <LinkCard | ||
| href="/react-native-legal/docs/standalone-cli" | ||
| title="Node.js CLI" | ||
| description="I'm building a Node.js app or a non-React-Native project and want to generate license reports for my dependencies." | ||
| /> | ||
|
|
||
| <LinkCard | ||
| href="/react-native-legal/docs/programmatic-usage" | ||
| title="Programmatic API" | ||
| description="I want to use the core functionalities but adjust the presentation of the license report, or process the data in a different way." | ||
| /> | ||
| </div> | ||
| ); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.