raphamorim / blonde

Paintfull setup no more
https://www.npmjs.com/package/blonde
4 stars 0 forks source link

New API #3

Open raphamorim opened 7 years ago

raphamorim commented 7 years ago
blonde('./greeting.js') // same as blonde('./greeting.js').toParse()

blonde('./greeting.js').toString()
blonde('./greeting.js').toBundle() // generate: ./bundle.js
blonde('./greeting.js').toBundle({filepath: './my-custom-bundle.js'})
blonde(MyES2018Module).toString()
blonde(MyES2018Module).toParse() 
blonde(MyModule.App).toReactComponent()
blonde(MyModule.App).toReactString()
blonde('console.log(2)').toReactComponent()
raphamorim commented 7 years ago

https://github.com/raphamorim/blonde/commit/65097b199cc0b41cc5b42c01190728fc3b2d4f02