diff --git a/README.md b/README.md index fc7fd66..743ec76 100644 --- a/README.md +++ b/README.md @@ -16,22 +16,12 @@ arrayToSentenceJa(['春', '夏', '秋', '冬']); //=> '春、夏、秋および ## Installation -#### [npm](https://www.npmjs.com/) +[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/getting-started/what-is-npm). ``` npm install array-to-sentence-ja ``` -#### [Bower](http://bower.io/) - -``` -bower install array-to-sentence-ja -``` - -### Standalone - -[Download the script file directly.](https://raw.githubusercontent.com/shinnn/array-to-sentence-ja/master/browser.js) - ## API ### arrayToSentenceJa(*array* [, *options*]) diff --git a/bower.json b/bower.json deleted file mode 100644 index dd148eb..0000000 --- a/bower.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "array-to-sentence-ja", - "description": "Japanese-friendly version of array-to-sentence", - "keywords": [ - "to-sentence", - "sentence", - "array", - "join", - "human", - "readable", - "string", - "separator", - "comma", - "and", - "natural-language", - "ja", - "japanese" - ], - "main": "browser.js", - "moduleType": "globals", - "homepage": "https://github.com/shinnn/array-to-sentence-ja", - "repository": { - "type": "git", - "url": "git://github.com/shinnn/array-to-sentence-ja.git" - }, - "authors": [ - "Shinnosuke Watanabe (https://github.com/shinnn)" - ], - "license": "ISC", - "dependencies": { - "array-to-sentence": "^1.1.0" - }, - "ignore": [ - "**/.*", - "*.js", - "*.json", - "*.yml", - "coverage", - "node_modules" - ] -} diff --git a/package.json b/package.json index 44a7540..eeb65b5 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "repository": "shinnn/array-to-sentence-ja", "author": "Shinnosuke Watanabe (https://github.com/shinnn)", "scripts": { - "pretest": "bower install --production && eslint --fix --config @shinnn --ignore-path .gitignore .", + "pretest": "eslint --fix --config @shinnn --ignore-path .gitignore .", "test": "node --throw-deprecation --track-heap-objects test.js | tap-spec", "coverage": "istanbul cover -x=bower_components/array-to-sentence/* test.js" }, @@ -38,10 +38,8 @@ }, "devDependencies": { "@shinnn/eslint-config": "^3.0.2", - "bower": "^1.7.9", "eslint": "^3.4.0", "istanbul": "^0.4.5", - "require-bower-files": "^3.0.0", "require-from-string": "^1.2.0", "rollup": "^0.34.13", "rollup-plugin-node-resolve": "^2.0.0", diff --git a/test.js b/test.js index 8698876..69d3e31 100644 --- a/test.js +++ b/test.js @@ -1,14 +1,10 @@ 'use strict'; -const requireBowerFiles = require('require-bower-files'); const requireFromString = require('require-from-string'); const {rollup} = require('rollup'); const rollupNodeResolve = require('rollup-plugin-node-resolve'); const test = require('tape'); -global.window = {}; -requireBowerFiles({self: true}); - function runTest(arrayToSentenceJa, description) { test(description, t => { t.strictEqual(arrayToSentenceJa.name, 'arrayToSentenceJa', 'should have a function name.'); @@ -55,6 +51,5 @@ rollup({ plugins: rollupNodeResolve({jsnext: true}) }).then(bundle => { runTest(require('.'), 'require(\'array-to-sentence-ja\')'); - runTest(global.window.arrayToSentenceJa, 'window.arrayToSentenceJa'); runTest(requireFromString(bundle.generate({format: 'cjs'}).code), 'Module exports'); });