Skip to content

Where do static files end up? #72

@Travis42

Description

@Travis42

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions