Skip to content

Commit 18b9b8b

Browse files
committed
feat: update bin script for running locally
1 parent 014c864 commit 18b9b8b

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"author": "Yann VR",
2525
"license": "MIT",
2626
"dependencies": {
27-
"lodash": "^4.17.11",
27+
"lodash": "^4.17.12",
2828
"plop": "^2.3.0"
2929
}
3030
}

plop-templates/ts/test.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { {{name}}Props } from './{{name}}'
55
import {{ name }} from './index'
66

77
describe('<{{name}} />', () => {
8-
let props:{{name}}Props
8+
const props:{{name}}Props
99

1010
beforeEach(() => {
1111
props = {

scripts/create-component.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/bin/sh
2-
LODASH_DIR=`yarn global dir`/node_modules/lodash
3-
REACT_COMPONENT_CLI=`yarn global dir`/node_modules/react-components-cli
4-
5-
echo $LODASH_DIR
6-
echo $PLOP_DIR
2+
LODASH_DIR=`npm root`/lodash
3+
REACT_COMPONENT_CLI=`npm root`/react-components-cli
74

85
if [ ! -d $LODASH_DIR ]; then
96
echo "Installing lodash.."
@@ -15,6 +12,4 @@ if [ ! -d $PLOP_DIR ]; then
1512
yarn global add plop
1613
fi
1714

18-
echo ${REACT_COMPONENT_CLI}/plopfile.js
19-
2015
plop --plopfile ${REACT_COMPONENT_CLI}/plopfile.js "$@"

0 commit comments

Comments
 (0)