socketsupply / union-app-studio

Like Codepen, but for native apps!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

features

nusson opened this issue · comments

  • 'log()' shortcut (console.log is long for just debuging)
  • ability to embed libraries
    • Would be nice to play with vuejs, rxjs, moment, lodash whatever directly in that console
    • So it would be nice to embed libraries (stored so when i kill and restart the app, i still can play with my favorites libraries)

With log, the only real objection i could see from people is that it would pollute the global scope.

With embedding you can already do that. Just set your working directory to a place where those modules are installed. For example,

mkdir ~/sandbox
cd sandbox
npm install react

Then you can set your Working Directory to ~/sandbox from the menu...

image

Or, you can start Scratches it from the command line, like this...

/Applications/Scratches.app/Contents/MacOS/Scratches .

@nusson I updated the readme to reflect how to embed/use modules from npm :)

Thanks !!!, and I think you're right for the log

  • I'm able to set this in my sandbox ;)

🎉 awesome! ok, i'll close this for now then.