generated from arvinxx/monorepo-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const base = require('../../.fatherrc'); | ||
|
||
module.exports = { | ||
...base, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# @arvinxu/heatmap-calendar | ||
|
||
[![NPM version][version-image]][version-url] [![NPM downloads][download-image]][download-url] | ||
|
||
## License | ||
|
||
[MIT](../../LICENSE) ® Arvin Xu | ||
|
||
<!-- npm url --> | ||
|
||
[version-image]: http://img.shields.io/npm/v/@arvinxu/heatmap-calendar.svg?color=deepgreen&label=latest | ||
[version-url]: http://npmjs.org/package/@arvinxu/heatmap-calendar | ||
[download-image]: https://img.shields.io/npm/dm/@arvinxu/heatmap-calendar.svg | ||
[download-url]: https://npmjs.org/package/@arvinxu/heatmap-calendar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const base = require('../../jest.config.base'); | ||
|
||
const packageName = '@arvinxu/heatmap-calendar'; | ||
|
||
const root = '<rootDir>/packages/heatmap-calendar'; | ||
|
||
module.exports = { | ||
...base, | ||
rootDir: '../..', | ||
roots: [root], | ||
name: packageName, | ||
displayName: packageName, | ||
collectCoverageFrom: [`${root}/src/**/*.tsx`, `${root}/src/**/*.ts`], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "@arvinxu/heatmap-calendar", | ||
"version": "1.0.0", | ||
"files": [ | ||
"lib", | ||
"es" | ||
], | ||
"main": "lib/index.js", | ||
"module": "es/index.js", | ||
"homepage": "https://github.com/arvinxx/components/tree/master/packages/heatmap-calendar#readme", | ||
"repository": "git+https://github.com/arvinxx/components.git", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org", | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"build": "father-build && yarn webpack", | ||
"webpack": "webpack", | ||
"test": "jest", | ||
"test:update": "jest -u", | ||
"prepublishOnly": "yarn build", | ||
"cov": "jest --coverage", | ||
"clean": "rm -rf es lib dist build coverage .umi" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react'; | ||
import type { FC } from 'react'; | ||
|
||
export interface HeatmapCalendarProps {} | ||
|
||
const HeatmapCalendar: FC<HeatmapCalendarProps> = () => { | ||
return <div>HeatmapCalendar</div>; | ||
}; | ||
|
||
export default HeatmapCalendar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
|
||
import HeatmapCalendar from '@arvinxu/heatmap-calendar'; | ||
|
||
describe('HeatmapCalendar', () => { | ||
it('默认状态', () => { | ||
const { container } = render(<HeatmapCalendar />); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"jsx": "react-jsx", | ||
"skipLibCheck": true, | ||
/* babel 输出类型 */ | ||
"moduleResolution": "Node", | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
/* 模块导入配置项 */ | ||
"esModuleInterop": true, | ||
"types": ["../../types", "@types/jest"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const path = require('path'); | ||
const config = require('../../webpack.config'); | ||
|
||
module.exports = { | ||
...config, | ||
output: { | ||
...config.output, | ||
library: 'HeatmapCalendar', | ||
path: path.resolve(__dirname, 'dist'), | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters