Skip to content

Commit

Permalink
chore: upgrade project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ark120202 committed Feb 19, 2019
1 parent 4ed4bc7 commit 0680188
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 87 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
62 changes: 2 additions & 60 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,61 +1,3 @@
# Logs
logs
node_modules
.vscode
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
language: node_js
cache: yarn
node_js:
- 8
- 9
node_js: node

script: yarn lint
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018
Copyright (c) ark120202

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
[![npm](https://img.shields.io/npm/v/types-lua.svg)](https://npmjs.com/package/types-lua)
[![Travis](https://img.shields.io/travis/ark120202/types-lua.svg)](https://travis-ci.org/ark120202/types-lua)

> TypeScript definitions for Lua standard library.
> TypeScript definitions for Lua standard library
## Installation

> NOTE: In most of cases your environment-specific types would already include this package.
> In that case you don't need to do anything. If you're a developer of such types you should add
> `types-lua` as a dependency and load it by adding `/// <reference types="types-lua/VERSION" />`
> NOTE: In most of cases your environment-specific types would already include this package. In that
> case you don't need to do anything. If you're a developer of such types you should add `types-lua`
> as a dependency and load it by adding `/// <reference types="types-lua/VERSION" />`
1. Get Lua Types from npm

Expand All @@ -31,8 +31,8 @@ npm install -D types-lua

Currently supported values of `VERSION` are:

* `5.1`
* `5.2`
* `5.3`
* `5.4`
* `jit`
- `5.1`
- `5.2`
- `5.3`
- `5.4`
- `jit`
28 changes: 17 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
{
"name": "types-lua",
"version": "1.0.1",
"description": "TypeScript definitions for Lua standard library.",
"repository": "https://github.com/ark120202/types-lua.git",
"author": "ark120202",
"description": "TypeScript definitions for Lua standard library",
"keywords": [
"lua",
"typescript",
"tstl"
],
"repository": "https://github.com/ark120202/types-lua",
"license": "MIT",
"scripts": {
"lint": "prettier **/*.d.ts -l"
},
"devDependencies": {
"prettier": "^1.9.2"
},
"author": "ark120202",
"files": [
"core",
"extra",
"*.d.ts"
],
"scripts": {
"lint": "prettier --check **/.*.yml **/*.{ts,yml,md}"
},
"prettier": {
"printWidth": 100,
"proseWrap": "always",
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100
"trailingComma": "all"
},
"devDependencies": {
"prettier": "^1.16.4"
}
}
7 changes: 4 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# yarn lockfile v1


prettier@^1.9.2:
version "1.9.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.9.2.tgz#96bc2132f7a32338e6078aeb29727178c6335827"
prettier@^1.16.4:
version "1.16.4"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.4.tgz#73e37e73e018ad2db9c76742e2647e21790c9717"
integrity sha512-ZzWuos7TI5CKUeQAtFd6Zhm2s6EpAD/ZLApIhsF9pRvRtM1RFo61dM/4MSRUA0SuLugA/zgrZD8m0BaY46Og7g==

0 comments on commit 0680188

Please sign in to comment.