Skip to content

Commit

Permalink
docs: update generator to use param-case, add badges
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelmokos committed Mar 13, 2019
1 parent aaa7148 commit e2f4c51
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 20 deletions.
1 change: 1 addition & 0 deletions README.md
@@ -1,5 +1,6 @@

[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/)
[![Build Status](https://travis-ci.org/ableneo/tools)](https://travis-ci.org/ableneo/tools)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![dependency](https://david-dm.org/ableneo/tools/status.svg)](https://david-dm.org/ableneo/tools)
[![devDep](https://david-dm.org/ableneo/tools/dev-status.svg)](https://david-dm.org/ableneo/tools?type=dev)
Expand Down
4 changes: 2 additions & 2 deletions _templates/package/with-prompt/LICENSE
@@ -1,9 +1,9 @@
---
to: packages/<%= name.toLowerCase() %>/LICENSE
to: packages/<%= h.changeCase.paramCase(name) %>/LICENSE
---
MIT License

Copyright (c) 2019 Marcel Mokoš
Copyright (c) 2019 Marcel Mokoš, ableneo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 0 additions & 5 deletions _templates/package/with-prompt/README.ejs

This file was deleted.

10 changes: 10 additions & 0 deletions _templates/package/with-prompt/README.md.t
@@ -0,0 +1,10 @@
---
to: packages/<%= h.changeCase.paramCase(name) %>/README.md
---
# <%= h.changeCase.paramCase(name) %>

[![npm version](https://img.shields.io/npm/v/<%= h.changeCase.paramCase(name) %>.svg?style=flat)](https://www.npmjs.com/package/@ableneo/<%= h.changeCase.paramCase(name) %>)
[![Build Status](https://travis-ci.org/ableneo/tools)](https://travis-ci.org/ableneo/tools)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

2 changes: 1 addition & 1 deletion _templates/package/with-prompt/index.ejs.t
@@ -1,5 +1,5 @@
---
to: packages/<%= name.toLowerCase() %>/src/index.js
to: packages/<%= h.changeCase.paramCase(name) %>/src/index.js
---
export default () => null;

Expand Down
6 changes: 3 additions & 3 deletions _templates/package/with-prompt/index.test.ejs.t
@@ -1,10 +1,10 @@
---
to: packages/<%= name.toLowerCase() %>/src/index.test.js
to: packages/<%= h.changeCase.paramCase(name) %>/src/index.test.js
---
import indexFn from "./";
import indexFn from ".";

it("indexFn", () => {
expect(indexFn()).toBe(null);
})
});


8 changes: 4 additions & 4 deletions _templates/package/with-prompt/package.ejs.t
@@ -1,10 +1,10 @@
---
to: packages/<%= name.toLowerCase() %>/package.json
to: packages/<%= h.changeCase.paramCase(name) %>/package.json
---
{
"name": "@ableneo/<%= name.toLowerCase() %>",
"name": "@ableneo/<%= h.changeCase.paramCase(name) %>",
"version": "0.0.0",
"description": "@ableneo/tools/<%= name.toLowerCase() %>",
"description": "@ableneo/tools/<%= h.changeCase.paramCase(name) %>",
"main": "dist/index.js",
"module": "dist/index.es.js",
"author": "Marcel Mokoš <https://github.com/marcelmokos>",
Expand All @@ -26,7 +26,7 @@ to: packages/<%= name.toLowerCase() %>/package.json
},
"repository": {
"type": "git",
"url": "https://github.com/ableneo/tools/packages/<%= name.toLowerCase() %>/"
"url": "https://github.com/ableneo/tools/packages/<%= h.changeCase.paramCase(name) %>/"
}
}

4 changes: 2 additions & 2 deletions _templates/package/with-prompt/package2.babelrc.ejs.t
@@ -1,6 +1,6 @@
---
to: packages/<%= name.toLowerCase() %>/.babelrc
sh: cd <%= cwd %>/packages/<%= name.toLowerCase() %> && yarn add -D @babel/core @babel/preset-env babel-jest
to: packages/<%= h.changeCase.paramCase(name) %>/.babelrc
sh: cd <%= cwd %>/packages/<%= h.changeCase.paramCase(name) %> && yarn add -D @babel/core @babel/preset-env babel-jest
---
{
"presets": [
Expand Down
2 changes: 1 addition & 1 deletion _templates/package/with-prompt/prompt.js
Expand Up @@ -5,6 +5,6 @@ module.exports = [
{
type: "input",
name: "name",
message: "What's the NAME of your package? (@ableneo/NAME)",
message: "What's the NAME of your package? (@ableneo/NAME) use param-case",
},
];
2 changes: 1 addition & 1 deletion packages/eslint-config-ableneo/README.md
Expand Up @@ -2,7 +2,7 @@


[![npm version](https://img.shields.io/npm/v/eslint-config-ableneo.svg?style=flat)](https://www.npmjs.com/package/eslint-config-ableneo)
[![Build Status](https://travis-ci.org/ableneo/tools)](https://travis-ci.org/ableneo/eslint-config-ableneo)
[![Build Status](https://travis-ci.org/ableneo/tools)](https://travis-ci.org/ableneo/tools)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Expand Up @@ -3466,7 +3466,7 @@ escodegen@^1.9.1:
source-map "~0.6.1"

"eslint-config-ableneo@file:packages/eslint-config-ableneo":
version "0.0.0"
version "0.0.1"

eslint-config-airbnb-base@^13.1.0:
version "13.1.0"
Expand Down

0 comments on commit e2f4c51

Please sign in to comment.