-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feature/readme update #85
base: master
Are you sure you want to change the base?
Feature/readme update #85
Conversation
Codecov Report
@@ Coverage Diff @@
## master #85 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 5 5
Lines 45 45
=====================================
Hits 45 45 Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #85 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 5 5
Lines 45 45
=====================================
Hits 45 45 Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #85 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 5 5
Lines 45 45
=====================================
Hits 45 45 Continue to review full report at Codecov.
|
Thanks for your pull request, looks good to me, @sn3p any thoughts? |
@SzymonKrysztofiak thanks for the PR 💯 Will look into it today |
No problem, btw. this is very good lib, and if You have any suggestions to this PR, i'll find time to look at this again :) |
Thanks for sharing your implementation. I really like the path aliases :) We are in the process of moving from Brunch to Webpack in our apps. Our approach is slightly different, but I guess the result is the same (?). We are kinda new to Webpack so I'm not sure if we are on the right track. I'm curious, would you prefer one implementation over the other? assets/webpack.config.js const glob = require("glob");
module.exports = {
entry: {
app: [].concat(
glob.sync("./js/**/*.js"),
glob.sync("../lib/app_web/cells/**/*.js"),
glob.sync("../lib/app_web/views/**/*.js"),
glob.sync("./css/app.css"),
glob.sync("../lib/app_web/cells/**/*.css"),
glob.sync("../lib/app_web/views/**/*.css")
)
}
} assets/js/app.js import { Builder as CellBuilder } from "@defacto/cell-js";
CellBuilder.reload(); lib/app_web/cells/avatar/index.js import { Cell, Builder } from "@defacto/cell-js";
class AvatarCell extends Cell {
initialize() {}
}
Builder.register(AvatarCell, "AvatarCell");
export default AvatarCell; |
I'm saying this because we are experiencing some issues with our implementation of CSS Modules (see this post on StackOverflow). Are you using CSS Modules by any chance? |
|
||
... | ||
import Cell from "@vendor/cell/cell" | ||
import Builder from "@vendor/cell/builder" |
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.
How did you install cell-js? I would expect this:
import { Cell, Builder } from "@defacto/cell-js";
Would you mind sharing your webpack entry
config?
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.
Thanks, I'll respond for couple hours :)
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.
In assets i have src folder and app.js file which is the entry point of my webpack.config.js
entry: {
"./js/app.js": "./src/js/app.js"
},
But now i see that i have a copy of builder.js and cell.js lib in vendor folder. I'll try import it from node modules.
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.
But now i see that i have a copy of builder.js and cell.js lib in vendor folder. I'll try import it from node modules.
That explains 😄
Let me know if importing the package works fo you. If so I'd say we use this in the examples so we can get this merged 🚀
Unfortunately, I don't work with CSS-Modules. Maybe @TheLarkInn will be able to help, he is an expert from Webpack. |
Any help or advise is welcome 👍 |
Configuration for Webpack 4.