Skip to content

Commit

Permalink
base message
Browse files Browse the repository at this point in the history
  • Loading branch information
alamorre committed Nov 7, 2021
1 parent 7fa25eb commit 2587097
Show file tree
Hide file tree
Showing 9 changed files with 205 additions and 47 deletions.
78 changes: 34 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,8 @@
"tsdx": "^0.14.1",
"tslib": "^2.3.1",
"typescript": "^4.4.4"
},
"dependencies": {
"react-grid-system": "^7.3.1"
}
}
6 changes: 3 additions & 3 deletions scripts/new.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

mkdir ./src/$1

echo "" > ./src/$1/index.tsx
echo "" > ./src/$1/props.tsx
echo "import React from 'react';import { Props } from './props';export const index: React.FC<Props> = ({}) => {return <div />;};" > ./src/$1/index.tsx
echo "export interface Props {}" > ./src/$1/props.tsx
echo "" > ./src/$1/stories.tsx
echo "" > ./src/$1/styles.tsx
echo "import { Properties } from 'csstype';export const styles = {example: {} as Properties,};" > ./src/$1/styles.tsx
echo "" > ./src/$1/.test.tsx
11 changes: 11 additions & 0 deletions src/Message/.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react';
import * as ReactDOM from 'react-dom';
import { Default as Thing } from './stories';

describe('Thing', () => {
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<Thing />, div);
ReactDOM.unmountComponentAtNode(div);
});
});
Loading

0 comments on commit 2587097

Please sign in to comment.