Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aclark4life/test-react-command-line

In which I learn how to transpile.
https://github.com/aclark4life/test-react-command-line

babel node npm react

Last synced: 4 months ago
JSON representation

In which I learn how to transpile.

Awesome Lists containing this project

README

        

test-react-command-line
================================================================================

In which I learn how to transpile.

Install (``make install``)
--------------------------

::

┌[alexclark@alexclarks-Air] [/dev/ttys000] [main ⚡]
└[~/Developer/test-react-command-line]> make install
/Library/Developer/CommandLineTools/usr/bin/make npm-install
npm install

added 184 packages, and audited 185 packages in 735ms

58 packages are looking for funding
run `npm fund` for details

found 0 vulnerabilities
git add package-lock.json

Build (transpile, ``make build``)
---------------------------------

::

┌[alexclark@alexclarks-Air] [/dev/ttys000] [main ⚡]
└[~/Developer/test-react-command-line]> make build
npm run build

> [email protected] babel
> node_modules/.bin/babel src -d dist --presets @babel/preset-react

Successfully compiled 1 file with Babel (56ms).

Serve (run ``node`` on the transpiled component, ``make serve``)
----------------------------------------------------------------

::

┌[alexclark@alexclarks-Air] [/dev/ttys000] [main ⚡]
└[~/Developer/test-react-command-line]> make serve
node run start
{
'$$typeof': Symbol(react.element),
type: 'div',
key: null,
ref: null,
props: { children: 'Hello, world!' },
_owner: null,
_store: {}
}