Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

使用ts重写 #124

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

24 changes: 0 additions & 24 deletions .eslintrc

This file was deleted.

13 changes: 12 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
example
src/
node_modules/
.vscode/
tsconfig.json
tslint.json
.babelrc
.cnpmrc
.gitignore
.npmignore
.npmrc
.yarnrc
publish.sh
49 changes: 0 additions & 49 deletions components/cell.js

This file was deleted.

63 changes: 0 additions & 63 deletions components/cols.js

This file was deleted.

66 changes: 0 additions & 66 deletions components/rows.js

This file was deleted.

57 changes: 0 additions & 57 deletions components/table.js

This file was deleted.

81 changes: 46 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,47 @@
{
"name": "react-native-table-component",
"version": "1.2.1",
"description": "Build table for react native.",
"main": "index.js",
"scripts": {
"lint": "eslint .",
"prettify": "prettier --write components/**/*.js utils/**/*.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Gil2015/react-native-table-component.git"
},
"keywords": [
"react-native",
"table",
"react-native-cell",
"react-native-table",
"react-native-table-component"
],
"author": "gil2015",
"license": "MIT",
"bugs": {
"url": "https://github.com/Gil2015/react-native-table-component/issues"
},
"homepage": "https://github.com/Gil2015/react-native-table-component#readme",
"devDependencies": {
"babel-eslint": "^10.0.1",
"eslint": "^5.10.0",
"eslint-plugin-react": "^7.11.1",
"eslint-plugin-react-native": "^3.5.0",
"prettier": "^1.15.3",
"react": "^16.7.0",
"react-native": "^0.57.8"
}
}
"name": "react-native-table-component",
"version": "1.2.1",
"description": "Build table for react native.",
"main": "dist/index.js",
"scripts": {
"test": "tsc -w",
"lint": "tslint -p tsconfig.json",
"prettify": "prettier --write components/**/*.js utils/**/*.js",
"compile": "tsc",
"build": "npm run lint && npm run compile"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Gil2015/react-native-table-component.git"
},
"keywords": [
"react-native",
"table",
"react-native-cell",
"react-native-table",
"react-native-table-component"
],
"author": "gil2015",
"maintainers": [
{
"name": "mashizhen",
"email": "[email protected]"
}
],
"license": "MIT",
"bugs": {
"url": "https://github.com/Gil2015/react-native-table-component/issues"
},
"homepage": "https://github.com/Gil2015/react-native-table-component#readme",
"devDependencies": {
"prettier": "^1.15.3",
"@types/react": "latest",
"@types/react-native": "latest",
"del": "latest",
"prompts": "latest",
"react": "latest",
"react-native": "latest",
"tslint": "latest",
"typescript": "next"
}
}
3 changes: 3 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash
npm run build
npm publish --tag latest --access public
Loading