Skip to content

Commit 0ef2627

Browse files
committed
Initial commit
0 parents  commit 0ef2627

10 files changed

Lines changed: 2299 additions & 0 deletions

File tree

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
indent_style = space
14+
indent_size = 2
15+
16+
[*.hbs]
17+
insert_final_newline = false
18+
19+
[*.{diff,md}]
20+
trim_trailing_whitespace = false

.eslintrc.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
'use strict';
2+
3+
module.exports = {
4+
plugins: ['prettier'],
5+
extends: ['eslint:recommended', 'plugin:node/recommended', 'prettier'],
6+
parserOptions: {
7+
ecmaVersion: 2018,
8+
},
9+
env: {
10+
commonjs: true,
11+
es6: true,
12+
},
13+
rules: {
14+
'no-console': 'off',
15+
'prettier/prettier': 'error',
16+
},
17+
};

.gitignore

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# TypeScript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# next.js build output
61+
.next
62+

.prettierrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
singleQuote: true,
3+
trailingComma: 'es5',
4+
printWidth: 100,
5+
};

LICENSE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019 Tobias Bieniek
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9+
of the Software, and to permit persons to whom the Software is furnished to do
10+
so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
tagless-ember-components-codemod
2+
==============================================================================
3+
4+
Converts regular Ember.js components to `tagName: ''` components
5+
6+
7+
Usage
8+
------------------------------------------------------------------------------
9+
10+
```bash
11+
npx tagless-ember-components-codemod
12+
```
13+
14+
15+
License
16+
------------------------------------------------------------------------------
17+
18+
This projects is released under the [MIT License](LICENSE.md).

bin/cli.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env node
2+
3+
'use strict';
4+
5+
const chalk = require('chalk');
6+
const { run } = require('../lib/index');
7+
8+
run().catch(error => {
9+
process.exitCode = 1;
10+
console.error(chalk.red(error.stack));
11+
});

lib/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
async function run() {
2+
console.log('Hello World!');
3+
}
4+
5+
module.exports = { run };

package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "tagless-ember-components-codemod",
3+
"version": "0.0.0",
4+
"description": "Converts regular Ember.js components to `tagName: ''` components",
5+
"homepage": "https://github.com/simplabs/tagless-ember-components-codemod",
6+
"repository": "[email protected]:simplabs/tagless-ember-components-codemod.git",
7+
"license": "MIT",
8+
"author": "Tobias Bieniek <[email protected]>",
9+
"bin": {
10+
"tagless-ember-components-codemod": "bin/cli.js"
11+
},
12+
"scripts": {
13+
"changelog": "lerna-changelog",
14+
"lint": "eslint . --cache"
15+
},
16+
"dependencies": {
17+
"chalk": "^2.4.2",
18+
"debug": "^4.1.1",
19+
"globby": "^10.0.1",
20+
"pkg-dir": "^4.2.0"
21+
},
22+
"devDependencies": {
23+
"eslint": "^6.2.2",
24+
"eslint-config-prettier": "^6.1.0",
25+
"eslint-plugin-node": "^9.1.0",
26+
"eslint-plugin-prettier": "^3.1.0",
27+
"lerna-changelog": "^0.8.2",
28+
"prettier": "1.18.2"
29+
},
30+
"engines": {
31+
"node": "8.* || >= 10.*"
32+
}
33+
}

0 commit comments

Comments
 (0)