File tree 4 files changed +8
-5
lines changed
4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-typescript-chrome-extension-boilerplate" ,
3
- "version" : " 0.1.0" ,
3
+ "description" : " Minimal boilerplate for making chrome extensions using React and TypeScript" ,
4
+ "version" : " 1.0.0" ,
4
5
"private" : true ,
5
6
"dependencies" : {
6
7
"@craco/craco" : " ^6.4.3" ,
Original file line number Diff line number Diff line change 1
- console . log ( "yo" ) ;
1
+ import { capitalize } from "../utils" ;
2
2
3
- export { } ;
3
+ console . log ( capitalize ( "hello from the background script!" ) ) ;
Original file line number Diff line number Diff line change 1
- console . log ( "yo" ) ;
1
+ import { capitalize } from "../utils" ;
2
2
3
- export { } ;
3
+ console . log ( capitalize ( "hello from the content script!" ) ) ;
Original file line number Diff line number Diff line change
1
+ export const capitalize = ( s : string ) =>
2
+ s . slice ( 0 , 1 ) . toUpperCase ( ) . concat ( s . slice ( 1 ) . toLowerCase ( ) ) ;
You can’t perform that action at this time.
0 commit comments