Skip to content

Commit

Permalink
drop Bower support
Browse files Browse the repository at this point in the history
Bower is no longer actively maintained.
  • Loading branch information
shinnn committed Apr 2, 2018
1 parent f6c41f1 commit c57b377
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 60 deletions.
12 changes: 1 addition & 11 deletions README.md
Expand Up @@ -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*])
Expand Down
41 changes: 0 additions & 41 deletions bower.json

This file was deleted.

4 changes: 1 addition & 3 deletions package.json
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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",
Expand Down
5 changes: 0 additions & 5 deletions 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.');
Expand Down Expand Up @@ -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');
});

0 comments on commit c57b377

Please sign in to comment.