SEAPUNK / socketeer

yet another websocket framework
MIT License
3 stars 0 forks source link

Build without debug lines #48

Open SEAPUNK opened 8 years ago

SEAPUNK commented 8 years ago

A good idea at a later time would be to add another step to the build process where we build two different files: One with debug lines and one without.

I'm thinking of writing my own module/CLI script that does just that.

Land this change in 0.8.3.

SEAPUNK commented 8 years ago

I will do this by creating a babel plugin.

SEAPUNK commented 8 years ago

https://github.com/SEAPUNK/babel-plugin-debugless-socketeer

SEAPUNK commented 8 years ago

Nah, fuck that. I'll write a webpack loader instead, and mark out the lines which are debug lines.

SEAPUNK commented 8 years ago

Prereq: #60

SEAPUNK commented 8 years ago

Marked the debug lines.

SEAPUNK commented 8 years ago

The browser builds without debug lines now. I'll soon create a new packaging system that will also do the same for the nodejs builds.

SEAPUNK commented 7 years ago

Or.. we could leave the debug lines in. Instead of creating the strings, we can just do string formatting, which is much more efficient.