chromakode / react-html-email

Create elegant HTML email templates using React.
MIT License
896 stars 115 forks source link

Where do static files end up? #72

Open Travis42 opened 4 years ago

Travis42 commented 4 years ago

Noob here.

I'm just looking for the output from this program. Here's my setup:

react-html-email@3.0.0 prepare /home/t42/Documents/programming/Projects/... npm run compile react-html-email@3.0.0 compile /home/.../Documents/programming/Projects/... babel -d lib/ src/ && cp -v src/supportMatrix.json lib/

src/PropTypes.js -> lib/PropTypes.js src/StyleValidator.js -> lib/StyleValidator.js src/components/A.jsx -> lib/components/A.js src/components/Box.jsx -> lib/components/Box.js src/components/Email.jsx -> lib/components/Email.js src/components/Image.jsx -> lib/components/Image.js src/components/Item.jsx -> lib/components/Item.js src/components/Span.jsx -> lib/components/Span.js src/includeDataProps.js -> lib/includeDataProps.js src/index.js -> lib/index.js src/renderEmail.js -> lib/renderEmail.js 'src/supportMatrix.json' -> 'lib/supportMatrix.json'

...which makes it look like lib/ is the output directory.

react-html-email@3.0.0 prepare /home/t42/Documents/programming/Projects/... npm run compile "examples/"

react-html-email@3.0.0 compile /home/t42/Documents/programming/Projects/... babel -d lib/ src/ && cp -v src/supportMatrix.json lib/ "examples/"

src/PropTypes.js -> lib/PropTypes.js src/StyleValidator.js -> lib/StyleValidator.js src/components/A.jsx -> lib/components/A.js src/components/Box.jsx -> lib/components/Box.js src/components/Email.jsx -> lib/components/Email.js src/components/Image.jsx -> lib/components/Image.js src/components/Item.jsx -> lib/components/Item.js src/components/Span.jsx -> lib/components/Span.js src/includeDataProps.js -> lib/includeDataProps.js src/index.js -> lib/index.js src/renderEmail.js -> lib/renderEmail.js 'src/supportMatrix.json' -> 'examples/supportMatrix.json' cp: -r not specified; omitting directory 'lib/' npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! react-html-email@3.0.0 compile: babel -d lib/ src/ && cp -v src/supportMatrix.json lib/ "examples/" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the react-html-email@3.0.0 compile script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/.../.npm/_logs/2020-06-22T16_18_33_140Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! react-html-email@3.0.0 prepare: npm run compile "examples/" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the react-html-email@3.0.0 prepare script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I'm sure this is a simple misunderstanding on my part, but what should I be doing to have Babel compile my component to a static html file without crashing?

Thanks