move first codemod to codemods folder PR: #734 PR-URL: https://github.com/apache/couchdb-fauxton/pull/734 Reviewed-By: garren smith <garren.sm...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/5be26108 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/5be26108 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/5be26108 Branch: refs/heads/master Commit: 5be261085761c5f1d0510f2d28117775ea3e0da2 Parents: d70343d Author: Robert Kowalski <robertkowal...@apache.org> Authored: Mon Jun 27 17:07:21 2016 +0200 Committer: Robert Kowalski <robertkowal...@apache.org> Committed: Tue Jun 28 16:46:01 2016 +0200 ---------------------------------------------------------------------- codemods/amd-to-es6-import.md | 9 +++++++++ import.md | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/5be26108/codemods/amd-to-es6-import.md ---------------------------------------------------------------------- diff --git a/codemods/amd-to-es6-import.md b/codemods/amd-to-es6-import.md new file mode 100644 index 0000000..5cb447e --- /dev/null +++ b/codemods/amd-to-es6-import.md @@ -0,0 +1,9 @@ +#From `define` to `import` + +To run the ast to change a file from using amd to es6 import follow these steps: + +* npm i -g jscodeshift +* npm install 5to6-codemod +* Replace `./node_modules/5to6-codemod/transforms/amd.js` with https://gist.github.com/robertkowalski/9167d45c0af6b9abdd4b51a09ef4e039 +* run `jscodeshift --extensions=js,jsx -t node_modules/5to6-codemod/transforms/amd.js app/file/name` +* run git diff to check http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/5be26108/import.md ---------------------------------------------------------------------- diff --git a/import.md b/import.md deleted file mode 100644 index 5cb447e..0000000 --- a/import.md +++ /dev/null @@ -1,9 +0,0 @@ -#From `define` to `import` - -To run the ast to change a file from using amd to es6 import follow these steps: - -* npm i -g jscodeshift -* npm install 5to6-codemod -* Replace `./node_modules/5to6-codemod/transforms/amd.js` with https://gist.github.com/robertkowalski/9167d45c0af6b9abdd4b51a09ef4e039 -* run `jscodeshift --extensions=js,jsx -t node_modules/5to6-codemod/transforms/amd.js app/file/name` -* run git diff to check