Where do static files end up?
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:
[email protected] prepare /home/t42/Documents/programming/Projects/... npm run compile [email protected] 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:
[email protected] prepare /home/t42/Documents/programming/Projects/... npm run compile "examples/"
[email protected] 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! [email protected] compile: babel -d lib/ src/ && cp -v src/supportMatrix.json lib/ "examples/"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! [email protected] prepare: npm run compile "examples/"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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