opal / opal

Ruby ♥︎ JavaScript
https://opalrb.com
MIT License
4.83k stars 331 forks source link

asset pipeline precompile #1966

Closed epipheus closed 5 years ago

epipheus commented 5 years ago

I am in the middle of Opal hell. I could not figure out what was happening. In the end, it turns out that a bunch of opal is being culled out by a Proc I use to determine which items should be precompiled and which should not. As a result, Opal call just don't happen. Is there a simple way to determine what should be included and precompile and what should not?

epipheus commented 5 years ago

These are the 247 files that are excluded from being precompiled

excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/LICENSE
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/LICENSE
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/README.md
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/README.md
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/common.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/common.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/glob.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/glob.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/LICENSE
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/LICENSE
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/README.md
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/README.md
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/inflight.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/inflight.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/node_modules/wrappy/LICENSE
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/node_modules/wrappy/LICENSE
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/package.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/package.json
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/test.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inflight/test.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inherits/LICENSE
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inherits/LICENSE
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inherits/README.md
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inherits/README.md
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inherits/inherits.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inherits/inherits.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inherits/inherits_browser.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inherits/inherits_browser.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inherits/package.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inherits/package.json
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inherits/test.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/inherits/test.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/LICENSE
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/LICENSE
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/README.md
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/README.md
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/browser.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/browser.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/minimatch.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/minimatch.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-comparison.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-comparison.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-results.txt
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-results.txt
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/cases.txt
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/cases.txt
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/dollar.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/dollar.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/empty-option.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/empty-option.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/negative-increment.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/negative-increment.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/order.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/order.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/pad.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/pad.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/same-type.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/same-type.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/sequence.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/sequence.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/package.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/package.json
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/test/basic.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/test/basic.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/test/brace-expand.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/test/brace-expand.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/test/defaults.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/test/defaults.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/test/extglob-ending-with-state-char.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/minimatch/test/extglob-ending-with-state-char.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/LICENSE
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/LICENSE
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/README.md
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/README.md
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/node_modules/wrappy/README.md
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/node_modules/wrappy/README.md
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/node_modules/wrappy/package.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/node_modules/wrappy/package.json
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/once.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/once.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/package.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/package.json
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/test/once.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/node_modules/once/test/once.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/package.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/package.json
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/sync.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/node_modules/glob/sync.js
excluding asset: [GEMROOT]opal-0.11.4/stdlib/nodejs/package.json
excluding asset: [GEMROOT]opal-0.11.4/stdlib/opal-builder.rb
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/stdlib/opal-builder.rb
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/builder.rb
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/builder.rb
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/builder_processors.rb
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/builder_processors.rb
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli.rb
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli.rb
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_options.rb
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_options.rb
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/applescript.rb
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/applescript.rb
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/chrome.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/chrome.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/nashorn.rb
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/nashorn.rb
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/LICENSE
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/LICENSE
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/README.md
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/README.md
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/bin/client.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/bin/client.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/chrome-remote-interface.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/chrome-remote-interface.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/index.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/index.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/api.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/api.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/chrome.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/chrome.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/defaults.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/defaults.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/devtools.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/devtools.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/external-request.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/external-request.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/protocol.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/protocol.json
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/websocket-wrapper.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/websocket-wrapper.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/package.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/package.json
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/webpack.config.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/chrome-remote-interface/webpack.config.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/commander/Readme.md
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/commander/Readme.md
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/commander/index.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/commander/index.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/commander/package.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/commander/package.json
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ultron/LICENSE
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ultron/LICENSE
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ultron/index.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ultron/index.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ultron/package.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ultron/package.json
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/LICENSE
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/LICENSE
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/README.md
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/README.md
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/SECURITY.md
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/SECURITY.md
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/index.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/index.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.fallback.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.fallback.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/ErrorCodes.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/ErrorCodes.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/EventTarget.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/EventTarget.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/Extensions.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/Extensions.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/PerMessageDeflate.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/PerMessageDeflate.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/Receiver.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/Receiver.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/Sender.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/Sender.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/Validation.fallback.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/Validation.fallback.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/Validation.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/Validation.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/WebSocket.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/WebSocket.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/WebSocketServer.js
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/lib/WebSocketServer.js
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/package.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/node_modules/ws/package.json
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/nodejs.rb
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/nodejs.rb
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/package.json
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/package.json
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/server.rb
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners/server.rb
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners.rb
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/cli_runners.rb
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/path_reader.rb
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/path_reader.rb
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/server.rb
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/server.rb
excluding asset: [GEMROOT]opal-0.11.4/lib/opal/util.rb
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/opal/util.rb
excluding asset: [GEMROOT]opal-0.11.4/lib/tilt/opal.rb
[rails engine]  excluding asset: [GEMROOT]opal-0.11.4/lib/tilt/opal.rb
epipheus commented 5 years ago

Using regular expressions I've gotten the number of opal files excluded from precompilation down to these 33. It still does not load:

excluding asset: [GEMROOT]/opal-0.11.4/stdlib/nodejs/package.json
excluding asset: [GEMROOT]/opal-0.11.4/stdlib/opal-builder.rb
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/stdlib/opal-builder.rb
excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/builder.rb
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/builder.rb
excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/builder_processors.rb
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/builder_processors.rb
excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli.rb
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli.rb
excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_options.rb
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_options.rb
excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_runners/applescript.rb
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_runners/applescript.rb
excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_runners/chrome.js
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_runners/chrome.js
excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_runners/nashorn.rb
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_runners/nashorn.rb
excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_runners/nodejs.rb
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_runners/nodejs.rb
excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_runners/package.json
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_runners/package.json
excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_runners/server.rb
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_runners/server.rb
excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_runners.rb
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/cli_runners.rb
excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/path_reader.rb
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/path_reader.rb
excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/server.rb
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/server.rb
excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/util.rb
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/lib/opal/util.rb
excluding asset: [GEMROOT]/opal-0.11.4/lib/tilt/opal.rb
[rails engine]   excluding asset: [GEMROOT]/opal-0.11.4/lib/tilt/opal.rb
epipheus commented 5 years ago

hmm 17, half are duplicates

epipheus commented 5 years ago

Here is my Proc. Not terribly pretty, but my attempt to smartly precompile items. Blacklisted items are overridden with whitelist items unless it's on the redlist. Yeah. I know. Refactoring is coming.

Rails.application.config.assets.precompile << Proc.new { |path|

    if PMODE == :verbose and Rails.env.development? #.to_path
        full_path = Rails.application.assets.resolve(path) 
        puts "path: #{path}\nfull_path: #{full_path}".yellow if PMODE == :verbose

    else 
        full_path = path #workaround for now. 
    end

    blacklist = [
            /nvd3\/src\/intro.js$/,
            /nvd3\/src\/outro.js$/,
            /^.*\.less$/,
            /modules\/.*/,
            /themes\/.*\/_.*$/,
            # /responsive\..*css/,
            /opal[\-\/]builder/,
            /^.*\.json$/,
            /^.*\.rake$/,
            /opal\/cli/,
            /opal\/path_reade/,
            /opal\/server/,
            /opal\/util/,
            /tilt\/opal/,
            /gauntlet_parser/,
            /ruby_parse/,
            /bin\//,
            /ruby_rewrite/,
            /parser\/runner/,
            # /opal\-\d+\.\d+\.\d+/,
            /manifest/
            # /_alerts\.*/
    ]

    whitelist = [
            /node_modules/
    ]

    redlist = [
            /LICENSE/
    ]

    # puts "path: #{path}\n" if PMODE == :verbose # full_path breaks in production
    if (path =~ /(^[^_\/]|\/[^_])[^\/]*$/) and 
        ((path !~ Regexp.union(blacklist)) or 
         (path =~ Regexp.union(whitelist) and (path !~ Regexp.union(redlist)) ) )

            puts "including asset: #{full_path}".green if PMODE == :verbose
            print "\u2588".green if PMODE == :condensed
            true
    else
            puts "excluding asset: #{full_path}".red if PMODE == :verbose
            print "\u2588".red if PMODE == :condensed
            false
    end
}
epipheus commented 5 years ago

I tried this Proc with the Opal hello world example, until I got it to this current regex set, it did not work. Now the hello world example works with this set but my production app doesn't sigh. Again if I am overlooking some "normal" way of doing this, I could really use insight.

epipheus commented 5 years ago
# application.js.rb
require 'opal'
require 'opal_ujs'
require 'activestorage'
require 'turbolinks'
require 'world_view'
require_tree '.'
epipheus commented 5 years ago
#config/application.rb

require_relative 'boot'
require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
require "active_storage/engine"
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
require "action_cable/engine"
require "sprockets/railtie"
# require "rails/test_unit/railtie"

require "mono_logger"

Bundler.require(*Rails.groups)

module Pangea
  class Application < Rails::Application
    config.load_defaults 5.2
    config.autoload_paths   += Dir["#{config.root}/lib/**/"]
    config.log_level         = :warn
  end
end
epipheus commented 5 years ago
# env/dev.rb
Rails.application.configure do
  # Settings specified here will take precedence over those in config/application.rb.

  # In the development environment your application's code is reloaded on
  # every request. This slows down response time but is perfect for development
  # since you don't have to restart the web server when you make code changes.
  config.cache_classes = false

  # Do not eager load code on boot.
  config.eager_load = false

  # Show full error reports.
  config.consider_all_requests_local = true

  # Enable/disable caching. By default caching is disabled.
  if Rails.root.join('tmp/caching-dev.txt').exist?
    config.action_controller.perform_caching = true

    config.cache_store = :memory_store
    config.public_file_server.headers = {
      'Cache-Control' => 'public, max-age=172800'
    }
  else
    config.action_controller.perform_caching = false

    config.cache_store = :null_store
  end

  # Store uploaded files on the local file system (see config/storage.yml for options)
  config.active_storage.service = :local

  # Don't care if the mailer can't send.
  config.action_mailer.raise_delivery_errors = false

  config.action_mailer.perform_caching = false

  # Print deprecation notices to the Rails logger.
  config.active_support.deprecation = :log

  # Raise an error on page load if there are pending migrations.
  config.active_record.migration_error = :page_load

  # Debug mode disables concatenation and preprocessing of assets.
  # This option may cause significant delays in view rendering with a large
  # number of complex assets.
  config.assets.debug = true

  # Suppress logger output for asset requests.
  config.assets.quiet = true

  # Raises error for missing translations
  # config.action_view.raise_on_missing_translations = true

  # Use an evented file watcher to asynchronously detect changes in source code,
  # routes, locales, etc. This feature depends on the listen gem.
  config.file_watcher = ActiveSupport::EventedFileUpdateChecker
end
epipheus commented 5 years ago
# initializers/assets.rb in full as opposed to just the Proc snippet above
require 'awesome_print'

# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0'

Rails.application.config.assets.paths << Rails.root.join('node_modules')

Rails.application.config.opal.method_missing           = true
Rails.application.config.opal.optimized_operators      = true
Rails.application.config.opal.arity_check              = !Rails.env.production?
Rails.application.config.opal.const_missing            = true
Rails.application.config.opal.dynamic_require_severity = :ignore

Rails.application.config.assets.version =  '1.0'
Rails.application.config.assets.paths       << Rails.root.join("vendor", "assets", "fonts")
Rails.application.config.assets.paths       << Rails.root.join("vendor", "assets", "plugins")
Rails.application.config.assets.paths       << Rails.root.join("app", "assets", "fonts")
Rails.application.config.assets.paths       << Rails.root.join("app", "assets", "videos")
Rails.application.config.assets.paths       << Rails.root.join("app", "assets", "images", "world_view")
Rails.application.config.assets.paths       << Rails.root.join("app", "assets", "javascripts", "world_view")
Rails.application.config.assets.paths       << Rails.root.join("app", "assets", "stylesheets", "world_view")
# Rails.application.config.assets.precompile    += %w(*.css *.scss)
Rails.application.config.assets.precompile += %w( world_view/themes/light/light.scss )
Rails.application.config.assets.precompile += %w( opal_ujs.js )
Rails.application.config.assets.precompile += %w( datatables-responsive/css/datatables.responsive.css )

PMODE = ENV.fetch("PMODE", :condensed).to_sym

Rails.application.config.assets.precompile << Proc.new { |path|

    if PMODE == :verbose and Rails.env.development? #.to_path
        full_path = Rails.application.assets.resolve(path) 
        puts "path: #{path}\nfull_path: #{full_path}".yellow if PMODE == :verbose

    else 
        full_path = path #workaround for now. 
    end

    blacklist = [
            /nvd3\/src\/intro.js$/,
            /nvd3\/src\/outro.js$/,
            /^.*\.less$/,
            /modules\/.*/,
            /themes\/.*\/_.*$/,
            # /responsive\..*css/,
            /opal[\-\/]builder/,
            /^.*\.json$/,
            /^.*\.rake$/,
            /opal\/cli/,
            /opal\/path_reade/,
            /opal\/server/,
            /opal\/util/,
            /tilt\/opal/,
            /gauntlet_parser/,
            /ruby_parse/,
            /bin\//,
            /ruby_rewrite/,
            /parser\/runner/,
            # /opal\-\d+\.\d+\.\d+/,
            /manifest/
            # /_alerts\.*/
    ]

    whitelist = [
            /node_modules/
    ]

    redlist = [
            /LICENSE/
    ]

    # puts "path: #{path}\n" if PMODE == :verbose # full_path breaks in production
    if (path =~ /(^[^_\/]|\/[^_])[^\/]*$/) and 
        ((path !~ Regexp.union(blacklist)) or 
         (path =~ Regexp.union(whitelist) and (path !~ Regexp.union(redlist)) ) )

            puts "including asset: #{full_path}".green if PMODE == :verbose
            print "\u2588".green if PMODE == :condensed
            true
    else
            puts "excluding asset: #{full_path}".red if PMODE == :verbose
            print "\u2588".red if PMODE == :condensed
            false
    end
}
elia commented 5 years ago

@epipheus was trying to understand the problem, I'm not sure why you want to precompile that much stuff, isn't something as simple as this enough?

Rails.application.config.assets.precompile << lambda do |filename, path|
  next false if File.extname(filename).empty?
  path =~ %r{app/assets} && File.basename(filename) == 'application'
end

if you have an application.js.rb and require stuff from that it will be sprockets' job to mix all the sources together and compile the top file with everything.

Am I missing something?

epipheus commented 5 years ago

Ummm yeah... face palm -- so, I'm just being stupid and didn't realized that somehow I had commented out including application.js.rb in the view.

sigh this is awkward. Closing. Sorry.

elia commented 5 years ago

sigh this is awkward. Closing. Sorry.

no worries, simple mistakes are the best ones, super easy to fix! 👍

epipheus commented 5 years ago

@epipheus was trying to understand the problem, I'm not sure why you want to precompile that much stuff, isn't something as simple as this enough?

Rails.application.config.assets.precompile << lambda do |filename, path|
  next false if File.extname(filename).empty?
  path =~ %r{app/assets} && File.basename(filename) == 'application'
end

if you have an application.js.rb and require stuff from that it will be sprockets' job to mix all the sources together and compile the top file with everything.

Am I missing something?

I will give that a try, usually I only see my gemified ui assets being compiled and I use the blacklist to eliminate partials that aren't well-formed on their own and crash precompilation. I'm trying to move all js in this app to opal and somehow in that process this proc pulls in all .rb files from opal/opal as if they are .js files.