clyfe

Results 33 comments of clyfe

This `webpack.config.js` avoids the override, with the output being `bundle.js` instead `main.js`. ```js module.exports = { output: { filename: "bundle.js" } }; ```

@bhauman figwheel-main/0.2.12 here. Re: https://github.com/bhauman/figwheel-main/commit/c05a544bd7737bbd43c278441f09ce0edc29a16b , here lies the problem. In new [webpack cli](https://webpack.js.org/api/cli/) input must be via `--entry` & there's no `--output-filename`.

``` ➜ npx webpack --version webpack 5.18.0 webpack-cli 4.4.0 ``` These are the setup where `--output-filename` is not recognized for me.

Seems this: ```clojure :none [:npx-cmd "webpack" "--mode=development" "--entry" :output-to "--output-path" :final-output-dir "--output-filename" :final-output-filename] ``` Results in this: ```shell [Figwheel] Bundling: npx webpack --mode=development \ --entry ./target/public/cljs-out/dev/main.js \ --output-path ./target/public/cljs-out/dev \...

@bhauman 0.2.13-SNAPSHOT fixes it for me.

Possible libs for callback rewrite: http://api.rubyonrails.org/classes/ActiveSupport/Callbacks.html http://api.rubyonrails.org/classes/ActiveModel/Callbacks.html http://api.rubyonrails.org/classes/AbstractController/Callbacks.html The ActiveSupport is the smallest common denominator that the controller callbacks and model callbacks are based on. Since an `DAV4Rack::Resource` has bot...

Sample implementation: - nicely decoupled - same known interface as ActiveRecord - provides better alternative for the DAV_ prefix hack, namely `method_without_callbacks` ``` ruby require 'rubygems' require 'active_model/callbacks' class Resource...

Checkout this branch where I implemented these ideas, maybe do a pull ? https://github.com/clyfe/dav4rack/tree/callbacks_cleanup

The proposed solution only provides callbacks, it does not bring none of the other AciveRecord module (like validations and such). As far as I can tell, the ActiveModell::Callbacks only expands...

Side note: let's not break the current (2.4) API before 3.0