techwraith / ribcage-preview Goto Github PK
View Code? Open in Web Editor NEWRun a preview server for a ribcage component
License: MIT License
Run a preview server for a ribcage component
License: MIT License
Error stacktrace:
~/repos/getable/OrdEx (master) ☢ ribcage preview components/list-cell-supplier-location/
[atomify] Proxying: http://localhost:4000
[atomify] Access URLs:
------------------------------------------
Local: http://localhost:4001/default
External: http://10.0.1.21:4001/default
------------------------------------------
UI: http://localhost:3001
UI External: http://10.0.1.21:3001
------------------------------------------
[atomify] Watching files...
[atomify] Bundle updated in 3223ms
File written to ../../../../../usr/local/lib/node_modules/ribcage/node_modules/ribcage-preview/node_modules/atomify/lib/_bundle.js
/usr/local/lib/node_modules/ribcage/node_modules/ribcage-preview/node_modules/atomify/node_modules/browser-sync/node_modules/socket.io/node_modules/engine.io/node_modules/ws/lib/Receiver.js:222
if (!this.state.fragmentedOperation) this.unfragmentedBufferPool.reset(true)
^
TypeError: Cannot read property 'fragmentedOperation' of null
at Receiver.endPacket (/usr/local/lib/node_modules/ribcage/node_modules/ribcage-preview/node_modules/atomify/node_modules/browser-sync/node_modules/socket.io/node_modules/engine.io/node_modules/ws/lib/Receiver.js:222:18)
at Receiver.opcodes.1.finish (/usr/local/lib/node_modules/ribcage/node_modules/ribcage-preview/node_modules/atomify/node_modules/browser-sync/node_modules/socket.io/node_modules/engine.io/node_modules/ws/lib/Receiver.js:394:12)
at Receiver.<anonymous> (/usr/local/lib/node_modules/ribcage/node_modules/ribcage-preview/node_modules/atomify/node_modules/browser-sync/node_modules/socket.io/node_modules/engine.io/node_modules/ws/lib/Receiver.js:372:33)
at Receiver.add (/usr/local/lib/node_modules/ribcage/node_modules/ribcage-preview/node_modules/atomify/node_modules/browser-sync/node_modules/socket.io/node_modules/engine.io/node_modules/ws/lib/Receiver.js:87:24)
at Socket.firstHandler (/usr/local/lib/node_modules/ribcage/node_modules/ribcage-preview/node_modules/atomify/node_modules/browser-sync/node_modules/socket.io/node_modules/engine.io/node_modules/ws/lib/WebSocket.js:718:22)
at Socket.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:764:14)
at Socket.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:426:10)
at emitReadable (_stream_readable.js:422:5)
Very counterintuitive.
It's really slow, but I'm not sure there's a lot we can do. Basic benchmarks:
load server deps: 1858ms
load cli deps: 1862ms
stat validation checks: 1ms
find paths: 0ms
boot: 3014ms
It's the require
calls that are taking the time :(
If we detect a react component, we should probably just auto-include: https://github.com/rackt/react-a11y
If it's not a react component, maybe: https://khan.github.io/tota11y/ ?
If there is an error in the component, it halts on the server, which prevents the use of client-side debugging tools. Ideally, an error should be logged out on the server, and the preview should still be delivered to the client, where debugging can be performed.
2e58479#diff-168726dbe96b3ce427e7fedce31bb0bcR9 causes an uncaught error for me when saving example/entry.css
Live reload server listening on port 4001
Atomify server listening on port 4000
File written to ../../../../usr/local/lib/node_modules/ribcage/node_modules/ribcage-preview/node_modules/atomify/lib/_bundle.js
child_process.js:945
throw errnoException(process._errno, 'spawn');
^
Error: spawn EMFILE
at errnoException (child_process.js:998:11)
at ChildProcess.spawn (child_process.js:945:11)
at Object.exports.spawn (child_process.js:733:9)
at Static.gzip (/usr/local/lib/node_modules/ribcage/node_modules/ribcage-preview/node_modules/atomify/node_modules/browser-sync/node_modules/socket.io/lib/static.js:167:17)
at ready (/usr/local/lib/node_modules/ribcage/node_modules/ribcage-preview/node_modules/atomify/node_modules/browser-sync/node_modules/socket.io/lib/static.js:370:14)
at /usr/local/lib/node_modules/ribcage/node_modules/ribcage-preview/node_modules/atomify/node_modules/browser-sync/node_modules/socket.io/lib/static.js:103:9
at /usr/local/lib/node_modules/ribcage/node_modules/ribcage-preview/node_modules/atomify/node_modules/browser-sync/node_modules/socket.io/node_modules/socket.io-client/bin/builder.js:219:7
at fs.js:266:14
at /usr/local/lib/node_modules/ribcage/node_modules/ribcage-gen/node_modules/hbs-dir/node_modules/vinyl-fs/node_modules/graceful-fs/graceful-fs.js:104:5
at Object.oncomplete (fs.js:107:15)
Program ribcage preview components/input-field exited with code 8
Looks like the example files need to be named entry.*
. Even after naming as such, I don't see a bundle.*
created?
It would be super handy to have a flag to append <meta name="viewport" content="width=device-width, initial-scale=1.0">
to the head of the rendered HTML.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.