Skip to content

Commit

Permalink
Merge pull request #5 from vunb/dev-typescript
Browse files Browse the repository at this point in the history
WIP: Dev typescript
  • Loading branch information
vunb authored Feb 22, 2019
2 parents b928e9b + a4b89ac commit 6ce4218
Show file tree
Hide file tree
Showing 20 changed files with 4,384 additions and 139 deletions.
217 changes: 217 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
## GITATTRIBUTES FOR WEB PROJECTS
#
# These settings are for any web project.
# Ref: https://git.io/fxxEi
#
# Details per file setting:
# text These files should be normalized (i.e. convert CRLF => LF).
# binary These files are binary and should be left untouched.
#
# Note that binary is a macro for -text -diff.
######################################################################

## AUTO-DETECT
## Handle line endings automatically for files detected as
## text and leave all files detected as binary untouched.
## This will handle all files NOT defined below.
* text=auto eol=lf

## CSHARP
*.cs text diff=csharp
*.sln text eol=crlf
*.csproj text eol=crlf

## SOURCE CODE
*.bat text eol=crlf
*.coffee text
*.css text
*.htm text diff=html
*.html text diff=html
*.inc text
*.ini text
*.js text
*.json text
*.jsx text
*.less text
*.od text
*.onlydata text
*.php text diff=php
*.pl text
*.py text diff=python
*.rb text diff=ruby
*.sass text
*.scm text
*.scss text
*.sh text eol=lf
*.sql text
*.styl text
*.tag text
*.ts text
*.tsx text
*.vue text
*.xml text
*.xhtml text diff=html

## DOCKER
*.dockerignore text
Dockerfile text

## DOCUMENTATION
*.ipynb text
*.markdown text
*.md text
*.mdwn text
*.mdown text
*.mkd text
*.mkdn text
*.mdtxt text
*.mdtext text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text

## TEMPLATES
*.dot text
*.ejs text
*.haml text
*.handlebars text
*.hbs text
*.hbt text
*.jade text
*.latte text
*.mustache text
*.njk text
*.phtml text
*.tmpl text
*.tpl text
*.twig text

## LINTERS
.csslintrc text
.eslintrc text
.htmlhintrc text
.jscsrc text
.jshintrc text
.jshintignore text
.stylelintrc text

## CONFIGS
*.bowerrc text
*.cnf text
*.conf text
*.config text
.babelrc text
.browserslistrc text
.editorconfig text
.env text
.gitattributes text
.gitconfig text
.gitignore text
.htaccess text
*.lock text
*.npmignore text
*.yaml text
*.yml text
browserslist text
Makefile text
makefile text

## HEROKU
Procfile text
.slugignore text

## GRAPHICS
*.ai binary
*.bmp binary
*.eps binary
*.gif binary
*.ico binary
*.jng binary
*.jp2 binary
*.jpg binary
*.jpeg binary
*.jpx binary
*.jxr binary
*.pdf binary
*.png binary
*.psb binary
*.psd binary
*.svg text
*.svgz binary
*.tif binary
*.tiff binary
*.wbmp binary
*.webp binary

## AUDIO
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary

## VIDEO
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.ogv binary
*.swc binary
*.swf binary
*.webm binary

## ARCHIVES
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary

## FONTS
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary

## EXECUTABLES
*.exe binary
*.pyc binary

# Project text
.gitignore text
*.gitattributes text
*.md text

# Project binary
*.lock binary
*.dll binary
*.doc binary
*.docx binary
*.xls binary
*.xlsx binary
/dist/* binary
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ build-runtime

# Kites junks / exclude environment config files
logs
dist
license.json
package-lock.json
prod.config.json
dev.config.json
test*.js
29 changes: 29 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"buildCommand": "yarn build && yarn pack",
"requireCleanWorkingDir": false,
"src": {
"commit": true,
"commitMessage": "Release %s",
"tag": true,
"tagName": "%s",
"tagAnnotation": "Release %s",
"pushRepo": "origin",
"beforeStartCommand": "rimraf ./*.tgz",
"beforeStageCommand": false,
"afterReleaseCommand": "rimraf ./*.tgz",
"githubAssets": [
"*.tgz"
]
},
"npm": {
"publish": false,
"publishPath": "dist/",
"tag": "latest"
},
"github": {
"release": true,
"assets": "*.tgz",
"tokenRef": "GITHUB_RELEASE_IT_TOKEN",
"note": "Must set tokenRef as environment variable"
}
}
24 changes: 24 additions & 0 deletions DEVTOOL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Development Tools

* node ^8.11.1
* npm ^6.0.1
* yarn ^1.7.0
* typescript ^3.1.2
* tslint ^5.11.0
* ts-node ^7.0.1
* mocha ^5.2.0
* chai ^4.2.0
* release-it ^7.6.1

# Installation Scripts

1. npm install -g typescript@latest
2. npm install -g tslint@latest
3. yarn add --dev ts-node tslint typescript typescript-eslint-parser @types/node rimraf

# Visual Studio Code IDE

* VS Code 1.25.0
* EditorConfig for VS Code
* TSLint for VS Code
* GitLens
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,18 @@ var kites = require('kites')({

// explicitly use extensions
kites.use(require('@kites/express')())
.use(require('@kites/roomrtc')())
.use(require('./path/to/your/extension')())
.use((kites) => {
kites.sum = function (arr) {
return arr.reduce((total, i) => total + i, 0)
}
})
.init().then((kites) => {
kites.logger.info('done!')
let total = kites.sum([3, 4, 5])

kites.logger.info('init done!')
kites.logger.info('sum: ', total);
// 12
})
```
Expand Down
19 changes: 0 additions & 19 deletions app.js

This file was deleted.

9 changes: 0 additions & 9 deletions content/extensions/utils.js

This file was deleted.

11 changes: 0 additions & 11 deletions index.js

This file was deleted.

24 changes: 0 additions & 24 deletions lib/main.js

This file was deleted.

Loading

0 comments on commit 6ce4218

Please sign in to comment.