Skip to content

Commit 9b50c05

Browse files
committed
Initial commit
0 parents  commit 9b50c05

5 files changed

Lines changed: 84 additions & 0 deletions

File tree

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
language: node_js
3+
node_js:
4+
- "6"
5+
6+
sudo: false
7+
dist: trusty
8+
9+
cache:
10+
yarn: true
11+
12+
before_install:
13+
- curl -o- -L https://yarnpkg.com/install.sh | bash
14+
- export PATH=$HOME/.yarn/bin:$PATH
15+
16+
install:
17+
- yarn install
18+
19+
script:
20+
- yarn test

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# ember-es6-class-codemod
2+
3+
4+
A collection of codemod's for ember-es6-class-codemod.
5+
6+
## Usage
7+
8+
To run a specific codemod from this project, you would run the following:
9+
10+
```
11+
npx ember-es6-class-codemod <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
12+
13+
# or
14+
15+
yarn global add ember-es6-class-codemod
16+
ember-es6-class-codemod <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
17+
```
18+
19+
## Transforms
20+
21+
<!--TRANSFORMS_START-->
22+
<!--TRANSFORMS_END-->
23+
24+
## Contributing
25+
26+
### Installation
27+
28+
* clone the repo
29+
* change into the repo directory
30+
* `yarn`
31+
32+
### Running tests
33+
34+
* `yarn test`
35+
36+
### Update Documentation
37+
38+
* `yarn update-docs`

bin/cli.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env node
2+
'use strict';
3+
4+
require('codemod-cli').runTransform(
5+
__dirname,
6+
process.argv[2] /* transform name */,
7+
process.argv.slice(2) /* paths or globs */
8+
)

package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "ember-es6-class-codemod",
3+
"version": "0.1.0",
4+
"scripts": {
5+
"test": "codemod-cli test",
6+
"update-docs": "codemod-cli update-docs"
7+
},
8+
"bin": "./bin/cli.js",
9+
"keywords": [
10+
"codemod-cli"
11+
],
12+
"dependencies": {
13+
"codemod-cli": "^0.1.0"
14+
},
15+
"devDependencies": {
16+
"jest": "^23.1.0"
17+
}
18+
}

transforms/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)