Skip to content

Commit

Permalink
Add default build settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanchelov committed Jun 1, 2019
1 parent d6fcde1 commit 56a1fd6
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["@babel/env", "@babel/typescript"],
"plugins": ["@babel/proposal-class-properties", "@babel/proposal-object-rest-spread"]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
node_modules/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The input itself is a HTML `<input>` element, which is positioned above the stag

# Documentation
The TextInput behaves just like any other PIXI-DisplayObject. It inherits from `PIXI.Container` and has all the associated properties like `width`, `height`, `rotation`, `scale` ,`alpha`, [etc.](http://pixijs.download/dev/docs/PIXI.Container.html)

## Creating an instance

![](http://manuelotto.com/opensource/PIXI.TextInput/img/components.png)
Expand Down
43 changes: 43 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "pixi-text-input",
"version": "2.0.0",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/Mwni/PIXI.TextInput.git"
},
"keywords": [
"pixi.js",
"text",
"input"
],
"author": "Mwni",
"license": "MIT",
"contributors": [
"Yordan Kanchelov <[email protected]> (https://github.com/jkanchelov)"
],
"bugs": {
"url": "https://github.com/Mwni/PIXI.TextInput/issues"
},
"homepage": "https://github.com/Mwni/PIXI.TextInput#readme",
"scripts": {
"prepublish": "npm run build",
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"build": "npm run build:types && npm run build:js",
"build:types": "tsc --emitDeclarationOnly",
"build:js": "babel src --out-dir dist --extensions \".ts,.tsx\" --source-maps inline",
"build:watch": "npm run build && babel src --out-dir dist --extensions \".ts,.tsx\" --source-maps inline --watch"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-typescript": "^7.0.0",
"typescript": "^3.0.3"
}
}
12 changes: 12 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"declaration": true,
"outDir": "./dist",
"allowSyntheticDefaultImports": true,
"suppressImplicitAnyIndexErrors": true,
"esModuleInterop": true
},
"files": ["./src/index.ts"]
}

0 comments on commit 56a1fd6

Please sign in to comment.