Skip to content

making .es5 files .js files #13

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

Merged
merged 4 commits into from
Nov 17, 2016
Merged

making .es5 files .js files #13

merged 4 commits into from
Nov 17, 2016

Conversation

madole
Copy link
Contributor

@madole madole commented Oct 13, 2016

No description provided.

@madole madole changed the title making .es5 files .es5.js files making .es5 files .js files Oct 13, 2016
@@ -24,7 +24,7 @@
"test-server": "babel-tape-runner test/server.jsx | tap-spec",
"tdd-server": "nodemon -x npm -i node_modules/ -e js,jsx -- run -s test-server",
"tdd-browser": "mkdir -p .cache; mkdir -p .cache/test; touch .cache/test/browser.js 2> /dev/null; watchify test/browser.jsx --transform babelify --external react/addons --external react/lib/ReactContext --external react/lib/ExecutionEnvironment --debug --outfile .cache/test/browser.js & devtool --watch .cache/test/browser.js --console --browser-field --no-node-timers --show .cache/test/browser.js | faucet",
"watch": "babel index.js --watch --out-file index.es5",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work because it'll overwrite the original file!

We should probably just move to a dist and src folder pattern that's become common.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure the watch task ever worked, because the original file was index.jsx, but I'll stick it in src/ as per convention

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, good point.

@@ -24,7 +24,7 @@
"test-server": "babel-tape-runner test/server.jsx | tap-spec",
"tdd-server": "nodemon -x npm -i node_modules/ -e js,jsx -- run -s test-server",
"tdd-browser": "mkdir -p .cache; mkdir -p .cache/test; touch .cache/test/browser.js 2> /dev/null; watchify test/browser.jsx --transform babelify --external react/addons --external react/lib/ReactContext --external react/lib/ExecutionEnvironment --debug --outfile .cache/test/browser.js & devtool --watch .cache/test/browser.js --console --browser-field --no-node-timers --show .cache/test/browser.js | faucet",
"watch": "babel index.js --watch --out-file index.es5",
"watch": "babel index.js --watch --out-file index.js",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops: this is the part that will overwrite.

@madole
Copy link
Contributor Author

madole commented Oct 13, 2016

Ah yeah good spot, I'll fix it when I get near a computer

@madole
Copy link
Contributor Author

madole commented Nov 17, 2016

Can this be merged?

@joeybaker
Copy link
Owner

@madole sorry, I missed that you updated things! Merging now.

@joeybaker joeybaker merged commit 2697a9e into joeybaker:master Nov 17, 2016
@joeybaker
Copy link
Owner

Released as 3.0.2

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

Successfully merging this pull request may close these issues.

2 participants