Skip to content

Commit ef14091

Browse files
committed
Restructures project.
1 parent 2395283 commit ef14091

File tree

10 files changed

+14
-84
lines changed

10 files changed

+14
-84
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.3.0
1+
6.9.4

.travis.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,8 @@ cache:
44
yarn: true
55
directories:
66
- node_modules
7-
deploy:
8-
provider: npm
9-
email: sean@ctrlplusb.com
10-
# TODO: run:
11-
# travis encrypt YOUR_API_KEY --add deploy.api_key
12-
api_key:
13-
secure: vZhrpLeEpHW35blKAklFPUOsulSzoaXitNf2BxUsb03U1721Pe1LUrNfILOYz7hWtv3HWWIoF2HTXoOf4NQV6YKUddArUh+eupeXv9+zrqn3f9jFFZnauCsTWCEKtvK0Ca714Kzg/ngKfshyn/on1p/ZKjAG0KufgkYj5YWUtGzdgtF1uOaXY7GVvBv/CjPkW3SHpC4VFco/0NC9QdqY0wm11CYtwnVHWme1tcj/3h5Po/9NVpGgQKf1etGYDrij1oef6YIb0cS70tCZF5YuQgehTtSqtCOoMppXHzgXYceUcFRq/8Z+Fc1ZITf+T5aus5yGScAUpZy4lynemMfo+im+9aYe06vkMJW0Bu8mjSXt/q2JBkm6JtUAC0SjfLd1t4Hylhmr3F8/auIM3jXI6I8UH4yEkaRNbzMG4MddbJ42W2pjBmLAkbNODksomn9ow1xx6Q6pRlmHz8PZAFI++rRFGL5V4rjrbziUDkIaT6dUKB31u965aJAM6s9v/CVc8w0ylNZXZDeMqvkJrgyjWpFjtXuMo19aHoBF1ScpLcaEEbt3rateszxrTJU1A/M52Qew8CgS8wUuUSuur7BpFP0jRQ6fxN+EqRRXndznS470fYZtrJxvl1VHoaNUjgNMONHb21zkeH1B3WYHUOWKuRS1luRv0GDjhsQZOHMsIfY=
14-
on:
15-
branch: master
16-
tags: true
177
node_js:
18-
- '7'
8+
- '6'
199
script:
2010
# Unfortunately flow falls over when a dep exists in peer deps and others. :(
2111
# @see https://github.com/flowtype/flow-typed/issues/528

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
> This is a starter kit for an npm library. See the [STARTER](/docs/STARTER.md) docs for more information on how it is configured and how you should use it. Delete this message and customise the readme below to your own needs.
1+
> This is my personal starter kit for npm libraries.
22
33
# Your Library Name
44

docs/STARTER.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

examples/web/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"version": "1.0.0",
44
"description": "An example of my-library",
55
"main": "index.js",
6-
"engines": {
7-
"node": ">=7.0.0"
8-
},
96
"scripts": {
107
"start": "babel-node server.js"
118
},

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"scripts": {
2323
"build": "babel-node ./tools/scripts/build.js",
2424
"check": "yarn run lint && yarn run test",
25-
"clean": "rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./flow-coverage",
25+
"clean": "rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./flow-coverage && rimraf ./umd",
2626
"example:web": "echo 'Make sure to `cd example/web && yarn install`' && cd example/web && yarn run start",
2727
"flow": "babel-node ./tools/scripts/flow",
2828
"flow:coverage": "flow-coverage-report -i 'src/**/*.js' -t html -t json -t text",
@@ -43,15 +43,15 @@
4343
"babel-plugin-syntax-flow": "6.18.0",
4444
"babel-plugin-transform-flow-strip-types": "6.21.0",
4545
"babel-polyfill": "6.20.0",
46-
"babel-preset-env": "1.1.7",
46+
"babel-preset-env": "1.1.8",
4747
"babel-preset-latest": "6.16.0",
4848
"babel-preset-stage-3": "6.17.0",
4949
"babel-register": "6.18.0",
5050
"codecov": "1.0.1",
5151
"cross-env": "3.1.4",
5252
"eslint": "3.13.1",
5353
"eslint-config-airbnb": "14.0.0",
54-
"eslint-plugin-flowtype": "2.29.2",
54+
"eslint-plugin-flowtype": "2.30.0",
5555
"eslint-plugin-import": "2.2.0",
5656
"eslint-plugin-jsx-a11y": "3.0.2",
5757
"flow-bin": "0.37.4",

test/helloWorld.test.js renamed to src/__tests__/helloWorld.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* @flow */
22

3-
// Under test.
4-
import helloWorld from '../src/helloWorld';
3+
import helloWorld from '../helloWorld';
54

65
describe('helloWorld', () => {
76
it('returns the expected result', () => {

test/.eslintrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

tools/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const nodeEnv = Object.assign({}, process.env, {
1515
NODE_ENV: 'production',
1616
});
1717

18-
exec('cross-env BABEL_ENV=commonjs babel ./src -d ./commonjs');
18+
exec('cross-env BABEL_ENV=commonjs babel --ignore **/__tests__ ./src -d ./commonjs');
1919
exec('cross-env BABEL_ENV=umd webpack --config ./tools/webpack/umd.config.babel.js', nodeEnv);
2020
exec('cross-env BABEL_ENV=umd webpack --config ./tools/webpack/umd-min.config.babel.js', nodeEnv);
2121

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -688,9 +688,9 @@ babel-polyfill@6.20.0, babel-polyfill@^6.16.0, babel-polyfill@^6.6.1:
688688
core-js "^2.4.0"
689689
regenerator-runtime "^0.10.0"
690690

691-
babel-preset-env@1.1.7:
692-
version "1.1.7"
693-
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.1.7.tgz#4ca8dd905056039c6788a0174bfac7b7bad89fbf"
691+
babel-preset-env@1.1.8:
692+
version "1.1.8"
693+
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.1.8.tgz#c46734c6233c3f87d177513773db3cf3c1758aaa"
694694
dependencies:
695695
babel-plugin-check-es2015-constants "^6.3.13"
696696
babel-plugin-syntax-trailing-function-commas "^6.13.0"
@@ -1586,9 +1586,9 @@ eslint-module-utils@^2.0.0:
15861586
debug "2.2.0"
15871587
pkg-dir "^1.0.0"
15881588

1589-
eslint-plugin-flowtype@2.29.2:
1590-
version "2.29.2"
1591-
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.29.2.tgz#91b4fde0400c4c37ca4440b43bdbc95fc405bea9"
1589+
eslint-plugin-flowtype@2.30.0:
1590+
version "2.30.0"
1591+
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.30.0.tgz#3054a265f9c8afe3046c3d41b72d32a736f9b4ae"
15921592
dependencies:
15931593
lodash "^4.15.0"
15941594

0 commit comments

Comments
 (0)