diff --git a/.npmignore b/.npmignore index c4d0a18..7ecd5c5 100644 --- a/.npmignore +++ b/.npmignore @@ -24,6 +24,7 @@ work build +examples src test pids diff --git a/.travis.yml b/.travis.yml index f6312f4..f79c534 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ notifications: email: true node_js: - stable + - 5 - 4 before_script: - npm prune diff --git a/README.md b/README.md index dfeb125..15392f4 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Include in your project: import { Cursor } from 'kittik-cursor'; import FigText from 'kittik-shape-fig-text'; -FigText.create({text: 'Hello, there'}).render(cursor); +FigText.create({text: 'Hello, there'}).render(Cursor.create()); ``` ## License diff --git a/package.json b/package.json index 0c6678c..b5743c1 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "url": "https://github.com/kittikjs/shape-fig-text.git" }, "scripts": { - "compile": "babel src --out-dir lib", + "clean": "rm -rf ./lib", + "compile": "npm run clean; 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",