Skip to content
Permalink
Browse files

Various minor cleanup (#141)

  • Loading branch information...
sindresorhus authored and vadimdemedes committed Mar 7, 2019
1 parent 87bcf25 commit a8977366742ca5607b6ccb2d3833b34d8116dc6c
Showing with 149 additions and 151 deletions.
  1. +1 βˆ’2 .gitattributes
  2. +1 βˆ’1 .gitignore
  3. +2 βˆ’2 .travis.yml
  4. +122 βˆ’125 package.json
  5. +21 βˆ’19 readme.md
  6. +2 βˆ’2 test/components.js
@@ -1,2 +1 @@
* text=auto
*.js text eol=lf
* text=auto eol=lf
@@ -1,2 +1,2 @@
node_modules
build
/build
@@ -1,4 +1,4 @@
language: node_js
node_js:
- 10
- 8
- '10'
- '8'
@@ -1,127 +1,124 @@
{
"name": "ink",
"version": "2.0.3",
"description": "React for CLI",
"license": "MIT",
"repository": "vadimdemedes/ink",
"author": {
"name": "vdemedes",
"email": "vdemedes@gmail.com",
"url": "github.com/vadimdemedes"
},
"engines": {
"node": ">=8"
},
"scripts": {
"build": "babel src --out-dir build",
"prepare": "npm run build",
"test": "xo && FORCE_COLOR=true ava",
"pretest": "npm run build",
"cast": "svg-term --command 'node media/demo.js' --out media/demo.svg --from=100 --window --width=50 --height=8 --term=iterm2 --profile=Snazzy"
},
"main": "build",
"types": "index.d.ts",
"files": [
"build",
"index.d.ts"
],
"keywords": [
"react",
"cli",
"jsx",
"stdout",
"components",
"command-line",
"preact",
"redux",
"print",
"render",
"colors",
"text"
],
"dependencies": {
"@types/react": "^16.8.6",
"arrify": "^1.0.1",
"auto-bind": "^2.0.0",
"chalk": "^2.4.1",
"cli-cursor": "^2.1.0",
"lodash.throttle": "^4.1.1",
"log-update": "^3.0.0",
"prop-types": "^15.6.2",
"react-reconciler": "^0.20.0",
"scheduler": "^0.13.2",
"slice-ansi": "^1.0.0",
"string-length": "^2.0.0",
"widest-line": "^2.0.0",
"yoga-layout-prebuilt": "^1.9.3"
},
"devDependencies": {
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"ava": "1.0.0-beta.8",
"babel-eslint": "^10.0.1",
"delay": "^4.1.0",
"eslint-config-xo-react": "^0.17.0",
"eslint-plugin-react": "^7.11.1",
"import-jsx": "^1.3.0",
"ms": "^2.1.1",
"node-pty": "^0.8.1",
"p-queue": "^3.0.0",
"react": "^16.6.1",
"sinon": "^7.2.7",
"strip-ansi": "^4.0.0",
"svg-term-cli": "^2.1.1",
"xo": "^0.24.0"
},
"babel": {
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-transform-modules-commonjs"
],
"presets": [
"@babel/preset-react"
]
},
"ava": {
"babel": {
"testOptions": {
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-transform-modules-commonjs"
],
"presets": [
"@babel/preset-react"
]
}
}
},
"xo": {
"parser": "babel-eslint",
"extends": [
"xo-react"
],
"plugins": [
"react"
],
"overrides": [
{
"files": "src/components/*.js",
"rules": {
"unicorn/filename-case": 0,
"react/require-default-props": 1
}
},
{
"files": "test/*.js",
"rules": {
"import/default": 0
}
}
]
}
"name": "ink",
"version": "2.0.3",
"description": "React for CLI",
"license": "MIT",
"repository": "vadimdemedes/ink",
"author": {
"name": "vdemedes",
"email": "vdemedes@gmail.com",
"url": "github.com/vadimdemedes"
},
"main": "build",
"engines": {
"node": ">=8"
},
"scripts": {
"build": "babel src --out-dir=build",
"prepare": "npm run build",
"test": "xo && FORCE_COLOR=true ava",
"pretest": "npm run build",
"cast": "svg-term --command='node media/demo.js' --out=media/demo.svg --from=100 --window --width=50 --height=8 --term=iterm2 --profile=Snazzy"
},
"types": "index.d.ts",
"files": [
"build",
"index.d.ts"
],
"keywords": [
"react",
"cli",
"jsx",
"stdout",
"components",
"command-line",
"preact",
"redux",
"print",
"render",
"colors",
"text"
],
"dependencies": {
"@types/react": "^16.8.6",
"arrify": "^1.0.1",
"auto-bind": "^2.0.0",
"chalk": "^2.4.1",
"cli-cursor": "^2.1.0",
"lodash.throttle": "^4.1.1",
"log-update": "^3.0.0",
"prop-types": "^15.6.2",
"react-reconciler": "^0.20.0",
"scheduler": "^0.13.2",
"slice-ansi": "^1.0.0",
"string-length": "^2.0.0",
"widest-line": "^2.0.0",
"yoga-layout-prebuilt": "^1.9.3"
},
"devDependencies": {
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"ava": "^1.3.1",
"babel-eslint": "^10.0.1",
"delay": "^4.1.0",
"eslint-config-xo-react": "^0.19.0",
"eslint-plugin-react": "^7.11.1",
"eslint-plugin-react-hooks": "^1.4.0",
"import-jsx": "^1.3.0",
"ms": "^2.1.1",
"node-pty": "^0.8.1",
"p-queue": "^3.0.0",
"react": "^16.6.1",
"sinon": "^7.2.7",
"svg-term-cli": "^2.1.1",
"xo": "^0.24.0"
},
"peerDependencies": {
"react": ">=16.8.0"
},
"babel": {
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-transform-modules-commonjs"
],
"presets": [
"@babel/preset-react"
]
},
"ava": {
"babel": {
"testOptions": {
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-transform-modules-commonjs"
],
"presets": [
"@babel/preset-react"
]
}
}
},
"xo": {
"parser": "babel-eslint",
"extends": [
"xo-react"
],
"plugins": [
"react"
],
"overrides": [
{
"files": "src/components/*.js",
"rules": {
"unicorn/filename-case": "off",
"react/require-default-props": "warning"
}
}
]
}
}
Oops, something went wrong.

0 comments on commit a897736

Please sign in to comment.
You can’t perform that action at this time.