Skip to content

Commit

Permalink
Init TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Mar 28, 2020
1 parent 26e1aef commit 6fa640f
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 558 deletions.
13 changes: 0 additions & 13 deletions .babelrc

This file was deleted.

33 changes: 4 additions & 29 deletions .editorconfig
@@ -1,34 +1,9 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
charset = utf-8

# 4 space indentation
[*.py]
indent_style = space
indent_size = 4

# Tab indentation (no size specified)
[Makefile]
indent_style = tab

# Indentation override for all JS under lib directory
[*.js]
indent_style = space
indent_size = 2

# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2

end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -59,3 +59,6 @@ typings/

# next.js build output
.next

# output
dist
30 changes: 0 additions & 30 deletions .npmiginore

This file was deleted.

5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

6 changes: 2 additions & 4 deletions CHANGELOG.md
@@ -1,15 +1,13 @@

## CHANGELOG
# Changelog
All notable changes to this project will be documented in this file.

### v0.2.0

- 去除无效的今日故事接口
- 增加 ensearch 接口用于获取英文版的全量数据

### v0.1.2

增加容错处理

### v0.1.0

实现基本功能。
121 changes: 0 additions & 121 deletions dist/bing.js

This file was deleted.

72 changes: 0 additions & 72 deletions examples/index.js

This file was deleted.

67 changes: 31 additions & 36 deletions package.json
@@ -1,23 +1,7 @@
{
"name": "wonderful-bing-wallpaper",
"version": "0.2.1",
"description": "A simple bing daily wallpaper api lib",
"main": "dist/bing.js",
"bugs": {
"url": "https://github.com/surmon-china/wonderful-bing-wallpaper/issues"
},
"homepage": "https://github.com/surmon-china/wonderful-bing-wallpaper#readme",
"scripts": {
"test": "mocha",
"dev": "devtool examples/index.js --watch",
"build": "babel src --out-dir dist",
"finish": "npm run build && npm run test",
"publish:npm": "git push && git push --tags && npm publish"
},
"repository": {
"type": "git",
"url": "git+https://github.com/surmon-china/wonderful-bing-wallpaper.git"
},
"version": "0.3.0",
"description": "Simple bing daily wallpaper API lib for node.js",
"keywords": [
"bing",
"bing wallpaper",
Expand All @@ -29,27 +13,38 @@
"author": {
"name": "Surmon",
"email": "surmon@foxmail.com",
"url": "https://surmon.me"
"url": "https://github.com/surmon-china"
},
"bugs": {
"url": "https://github.com/surmon-china/wonderful-bing-wallpaper/issues"
},
"homepage": "https://github.com/surmon-china/wonderful-bing-wallpaper#readme",
"repository": {
"type": "git",
"url": "https://github.com/surmon-china/wonderful-bing-wallpaper.git"
},
"main": "dist/bing.cjs.js",
"module": "dist/bing.esm.js",
"files": [
"src",
"dist",
"types"
],
"types": "types/bing.d.ts",
"scripts": {
"dev": "node dev/index.js",
"cleanup": "rm -rf ./dist/* && rm -rf ./types/*",
"build": "npm run cleanup && abc build",
"lint": "abc lint --ext .ts,.js src test",
"test": "abc test",
"rebirth": "npm run lint && npm run test && npm run build"
},
"private": false,
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.0",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-loader": "^8.0.2",
"babel-plugin-istanbul": "^5.0.1",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-es2015-destructuring": "^6.23.0",
"babel-plugin-transform-export-extensions": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"babel-register": "^6.26.0",
"chai": "^4.2.0",
"mocha": "^5.2.0",
"xml2js": "^0.4.19"
"@surmon-china/abc-factory": "^0.3.2",
"@types/node": "^12.12.31",
"typescript": "^3.8.3"
}
}

0 comments on commit 6fa640f

Please sign in to comment.