-
-
Notifications
You must be signed in to change notification settings - Fork 638
Phase 3: Prepare core package for workspace structure #1830
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
Changes from all commits
7745727
ce91f23
0182224
6f08b49
385df7f
4417277
3b34f34
5fd223e
ef7c6e6
4b94aba
8cf9138
ee4487a
5eb784f
a9e1e01
3250a03
660cab3
eab8e2a
c1c6b45
b34e161
946698d
a784eb6
87fe9cc
3e992bc
20f2f0b
dfc1275
caf8d34
325e4e8
e0d1365
fd728b3
0a97c1e
86e0ab6
ceb15a6
4331ea1
40ccdb2
c9c406f
804a88d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ tmp/ | |
|
||
node_modules | ||
|
||
/node_package/lib | ||
/packages/*/lib | ||
|
||
yarn-debug.* | ||
yarn-error.* | ||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -6,7 +6,7 @@ tmp/ | |||||||
coverage/ | ||||||||
**/app/assets/webpack/ | ||||||||
gen-examples/examples/* | ||||||||
node_package/lib/* | ||||||||
packages/*/lib/* | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keep ignoring node_package/lib while builds still output there PR states outDir remains node_package/lib; replacing the ignore with packages//lib/ drops coverage for node_package/lib and may format compiled artifacts. Add both patterns. Apply: - packages/*/lib/*
+node_package/lib/*
+packages/*/lib/* Based on learnings. π Committable suggestion
Suggested change
π€ Prompt for AI Agents
|
||||||||
spec/react_on_rails/dummy-for-generators/app/javascript/bundles/HelloWorld/* | ||||||||
bundle/ | ||||||||
spec/dummy/lib/bs/** | ||||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -71,7 +71,7 @@ Changes since the last non-beta release. | |||||
|
||||||
#### Pro License Features | ||||||
|
||||||
- **Core/Pro separation**: Moved Pro features into dedicated `lib/react_on_rails/pro/` and `node_package/src/pro/` directories with clear licensing boundaries [PR 1791](https://github.com/shakacode/react_on_rails/pull/1791) by [AbanoubGhadban](https://github.com/AbanoubGhadban) | ||||||
- **Core/Pro separation**: Moved Pro features into dedicated `lib/react_on_rails/pro/` and `node_package/src/pro/` directories with clear licensing boundaries (now located at `packages/react-on-rails/src/pro/`) [PR 1791](https://github.com/shakacode/react_on_rails/pull/1791) by [AbanoubGhadban](https://github.com/AbanoubGhadban) | ||||||
- **Runtime license validation**: Implemented Pro license gating with graceful fallback to core functionality when Pro license unavailable [PR 1791](https://github.com/shakacode/react_on_rails/pull/1791) by [AbanoubGhadban](https://github.com/AbanoubGhadban) | ||||||
- **Enhanced immediate hydration**: Improved immediate hydration functionality with Pro license validation and warning badges [PR 1791](https://github.com/shakacode/react_on_rails/pull/1791) by [AbanoubGhadban](https://github.com/AbanoubGhadban) | ||||||
- **License documentation**: Added NOTICE files in Pro directories referencing canonical `REACT-ON-RAILS-PRO-LICENSE.md` [PR 1791](https://github.com/shakacode/react_on_rails/pull/1791) by [AbanoubGhadban](https://github.com/AbanoubGhadban) | ||||||
|
@@ -400,6 +400,8 @@ _Major bump because dropping support for Ruby 2.7 and deprecated `webpackConfigL | |||||
@ ./client/app/packs/client-bundle.js 5:0-42 32:0-23 35:0-21 59:0-26 | ||||||
``` | ||||||
|
||||||
_Note: The `node_package/lib/` path in these error examples is now `packages/react-on-rails/lib/` in the current structure._ | ||||||
|
||||||
Comment on lines
+403
to
+404
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Path note contradicts Phase 3 objective; keep output at node_package/lib The note says errors now point to packages/react-on-rails/lib/, but Phase 3 preserves build output at node_package/lib/ for backward compatibility. Update the note accordingly to avoid confusing users and tools relying on that path. - _Note: The `node_package/lib/` path in these error examples is now `packages/react-on-rails/lib/` in the current structure._
+ _Note: The build output path remains `node_package/lib/` for backward compatibility in this phase._ Based on learnings. π Committable suggestion
Suggested change
π€ Prompt for AI Agents
|
||||||
It can be safely [suppressed](https://webpack.js.org/configuration/other-options/#ignorewarnings) in your Webpack configuration. | ||||||
|
||||||
### [13.0.2] - 2022-03-09 | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ It's critical to configure your IDE/editor to ignore certain directories. Otherw | |
- /coverage | ||
- /tmp | ||
- /gen-examples | ||
- /node_package/lib | ||
- /packages/react-on-rails/lib | ||
- /node_modules | ||
Comment on lines
40
to
44
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Restore The TypeScript build still writes compiled output to π€ Prompt for AI Agents
|
||
- /spec/dummy/app/assets/webpack | ||
- /spec/dummy/log | ||
|
@@ -121,7 +121,7 @@ Don't forget you may need to run yarn after adding packages with yalc to install | |
|
||
#### Example: Testing NPM changes with the dummy app | ||
|
||
1. Add `console.log('Hello!')` to [clientStartup.ts, function render](https://github.com/shakacode/react_on_rails/blob/master/node_package/src/clientStartup.ts in `/node_package/src/clientStartup.js` to confirm we're getting an update to the node package client side. Do the same for function `serverRenderReactComponent` in `/node_package/src/serverRenderReactComponent.ts`. | ||
1. Add `console.log('Hello!')` to [clientStartup.ts, function render](https://github.com/shakacode/react_on_rails/blob/master/packages/react-on-rails/src/clientStartup.ts) in `/packages/react-on-rails/src/clientStartup.ts` to confirm we're getting an update to the node package client side. Do the same for function `serverRenderReactComponent` in [/packages/react-on-rails/src/serverRenderReactComponent.ts](https://github.com/shakacode/react_on_rails/blob/master/packages/react-on-rails/src/serverRenderReactComponent.ts). | ||
2. Refresh the browser if the server is already running or start the server using `foreman start` from `react_on_rails/spec/dummy` and navigate to `http://localhost:5000/`. You will now see the `Hello!` message printed in the browser's console. If you did not see that message, then review the steps above for the workflow of making changes and pushing them via yalc. | ||
|
||
# Development Setup for Gem and Node Package Contributors | ||
|
@@ -134,7 +134,7 @@ After checking out the repo, making sure you have Ruby and Node version managers | |
|
||
### Local Node Package | ||
|
||
Note, the example and dummy apps will use your local `node_packages` folder as the `react-on-rails` node package. This will also be done automatically for you via the `rake examples:gen_all` rake task. | ||
Note, the example and dummy apps will use your local `packages/react-on-rails` folder as the `react-on-rails` node package. This will also be done automatically for you via the `rake examples:gen_all` rake task. | ||
|
||
_Side note: It's critical to use the alias section of the Webpack config to avoid a double inclusion error. This has already been done for you in the example and dummy apps, but for reference:_ | ||
|
||
|
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.
Build before yalc publish to ensure lib exists
The workflow publishes via yalc without building first. Insert a build step before publishing.
π Committable suggestion
π€ Prompt for AI Agents