Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where do static files end up? #72

Open
Travis42 opened this issue Jun 22, 2020 · 0 comments
Open

Where do static files end up? #72

Travis42 opened this issue Jun 22, 2020 · 0 comments

Comments

@Travis42
Copy link

Noob here.

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

  • In the examples/ folder, I have added a file called simple.jsx, which contains the example given in the readme.

  • When I run 'npm run prepare' I get:

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.

  • if I run 'npm run prepare examples/' I get:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant