Skip to content

Commit

Permalink
feat(shape): Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed Dec 17, 2015
0 parents commit e187564
Show file tree
Hide file tree
Showing 11 changed files with 266 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015-node4"]
}
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

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

# Coverage directory used by tools like istanbul
coverage

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

# node-waf configuration
.lock-wscript

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

# Dependency directory
node_modules

# Babel compiled sources
lib

# Miscellaneous
*~
*#
.DS_STORE
.netbeans
nbproject
.idea
.node_history
50 changes: 50 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Automatically ignored per:
# https://www.npmjs.org/doc/developers.html#Keeping-files-out-of-your-package
#
# .*.swp
# ._*
# .DS_Store
# .git
# .hg
# .lock-wscript
# .svn
# .wafpickle-*
# CVS
# npm-debug.log
# node_modules

*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
*.orig

work
build
src
test
pids
logs
results
coverage
lib-cov
html-report
xunit.xml

.project
.idea
.settings
.iml
*.sublime-workspace
*.sublime-project

ehthumbs.db
Icon?
Thumbs.db
.AppleDouble
.LSOverride
.Spotlight-V100
.Trashes
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: true
node_js:
- stable
- 4
before_script:
- npm prune
after_success:
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
- python travis_after_all.py
- 'export $(cat .to_export_back) &> /dev/null'
- npm run coveralls
- npm run semantic-release
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Eugene Obrezkov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
57 changes: 57 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# kittik-shape-fig-text

![Build Status](https://img.shields.io/travis/kittikjs/shape-fig-text.svg)
![Coverage](https://img.shields.io/coveralls/kittikjs/shape-fig-text.svg)

![Downloads](https://img.shields.io/npm/dm/kittik-shape-fig-text.svg)
![Downloads](https://img.shields.io/npm/dt/kittik-shape-fig-text.svg)
![npm version](https://img.shields.io/npm/v/kittik-shape-fig-text.svg)
![License](https://img.shields.io/npm/l/kittik-shape-fig-text.svg)

[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
![dependencies](https://img.shields.io/david/kittikjs/shape-fig-text.svg)
![dev dependencies](https://img.shields.io/david/dev/kittikjs/shape-fig-text.svg)

Text shape for Kittik slides that uses FIG fonts

## Getting Started

Install it via npm:

```shell
npm install kittik-shape-fig-text
```

Include in your project:

```javascript
import { Cursor } from 'kittik-cursor';
import FigText from 'kittik-shape-fig-text';

FigText.create({text: 'Hello, there'}).render(cursor);
```

## License

The MIT License (MIT)

Copyright (c) 2015 Eugene Obrezkov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
48 changes: 48 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "kittik-shape-fig-text",
"version": "0.0.0-semantic-release",
"description": "Text shape for Kittik slides that uses FIG fonts",
"main": "lib/FigText.js",
"author": "ghaiklor",
"license": "MIT",
"homepage": "https://github.com/kittikjs/shape-fig-text#readme",
"bugs": {
"url": "https://github.com/kittikjs/shape-fig-text/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/kittikjs/shape-fig-text.git"
},
"scripts": {
"compile": "babel src --out-dir lib",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"prepublish": "npm run compile",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"test": "babel-node ./node_modules/.bin/isparta cover _mocha"
},
"dependencies": {
"kittik-shape-text": "1.1.0"
},
"devDependencies": {
"babel-cli": "6.3.17",
"babel-preset-es2015-node4": "2.0.2",
"chai": "3.4.1",
"coveralls": "2.11.6",
"cz-conventional-changelog": "1.1.5",
"isparta": "4.0.0",
"mocha": "2.3.4",
"sinon": "1.17.2",
"semantic-release": "4.3.5"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"publishConfig": {
"tag": "latest"
},
"release": {
"branch": "master"
}
}
7 changes: 7 additions & 0 deletions src/FigText.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import Text from 'kittik-shape-text';

export default class FigText extends Text {
constructor(options = {}) {
super(options);
}
}
3 changes: 3 additions & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
./test/unit/**/*.test.js
--reporter spec
--recursive
9 changes: 9 additions & 0 deletions test/unit/FigText.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { assert } from 'chai';
import FigText from '../../src/FigText';

describe('Shape::FigText', () => {
it('Should properly create FigText instance', () => {
let text = new FigText();
assert.instanceOf(text, FigText);
});
});

0 comments on commit e187564

Please sign in to comment.