Skip to content

Commit

Permalink
Implement our local package mymain
Browse files Browse the repository at this point in the history
With `Main` component that render "Hello, world"
  • Loading branch information
untsamphan committed Jun 14, 2018
1 parent 5cbc685 commit 1a3ea1f
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
node_modules
build
1 change: 1 addition & 0 deletions packages/mymain/index.ts
@@ -0,0 +1 @@
export * from './src';
9 changes: 9 additions & 0 deletions packages/mymain/package.json
@@ -0,0 +1,9 @@
{
"name": "mymain",
"version": "0.1.0",
"license": "UNLICENSED",

"main": "build/index.js",
"types": "build/index.d.ts",
"private": true
}
5 changes: 5 additions & 0 deletions packages/mymain/src/Main.tsx
@@ -0,0 +1,5 @@
import * as React from 'react';

export function Main() {
return <main>Hello, world</main>;
}
1 change: 1 addition & 0 deletions packages/mymain/src/index.ts
@@ -0,0 +1 @@
export * from './Main';
11 changes: 11 additions & 0 deletions packages/mymain/tsconfig.json
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig-base.json",

"compilerOptions": {
"declaration": true,
"outDir": "build"
},
"include": [
"src"
]
}
12 changes: 12 additions & 0 deletions packages/tslint.json
@@ -0,0 +1,12 @@
{
"extends": ["tslint:recommended", "tslint-react"],
"linterOptions": {
"exclude": [
"config/**/*.js",
"node_modules/**/*.ts"
]
},
"rules": {
"quotemark": [ true, "single" ]
}
}

0 comments on commit 1a3ea1f

Please sign in to comment.