Skip to content

Commit 2444a83

Browse files
committed
Cleans up starter.
1 parent 6f041bd commit 2444a83

File tree

8 files changed

+51
-94
lines changed

8 files changed

+51
-94
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: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,13 @@ 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
2212
#- yarn run flow:defs
2313
- yarn run check
2414
after_success:
15+
# Deploy code coverage report to codecov.io
2516
- yarn run test:coverage:deploy

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 an 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: 9 additions & 8 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",
@@ -34,7 +34,8 @@
3434
"test:coverage:deploy": "yarn run test:coverage && codecov"
3535
},
3636
"peerDependencies": {
37-
"react": ">=15.0.0"
37+
"react": "^0.14.0 || ^15.0.0-0",
38+
"react-dom": "^0.14.0 || ^15.0.0-0"
3839
},
3940
"devDependencies": {
4041
"app-root-dir": "1.0.2",
@@ -44,7 +45,7 @@
4445
"babel-jest": "18.0.0",
4546
"babel-loader": "6.2.10",
4647
"babel-polyfill": "6.20.0",
47-
"babel-preset-env": "1.1.7",
48+
"babel-preset-env": "1.1.8",
4849
"babel-preset-latest": "6.16.0",
4950
"babel-preset-react": "6.16.0",
5051
"babel-preset-stage-3": "6.17.0",
@@ -55,10 +56,10 @@
5556
"enzyme-to-json": "1.4.5",
5657
"eslint": "3.13.1",
5758
"eslint-config-airbnb": "14.0.0",
58-
"eslint-plugin-flowtype": "2.29.2",
59+
"eslint-plugin-flowtype": "2.30.0",
5960
"eslint-plugin-import": "2.2.0",
6061
"eslint-plugin-jsx-a11y": "3.0.2",
61-
"eslint-plugin-react": "6.8.0",
62+
"eslint-plugin-react": "6.9.0",
6263
"flow-bin": "0.37.4",
6364
"flow-coverage-report": "0.2.0",
6465
"flow-typed": "2.0.0",
@@ -68,9 +69,9 @@
6869
"jest": "18.1.0",
6970
"pretty-bytes": "4.0.2",
7071
"ramda": "0.23.0",
71-
"react": "15.4.1",
72-
"react-addons-test-utils": "15.4.1",
73-
"react-dom": "15.4.1",
72+
"react": "15.4.2",
73+
"react-addons-test-utils": "15.4.2",
74+
"react-dom": "15.4.2",
7475
"readline-sync": "1.4.5",
7576
"rimraf": "2.5.4",
7677
"sinon": "1.17.7",

tools/webpack/configFactory.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,15 @@ function webpackConfigFactory({ target } : Args) {
2828
externals: {
2929
react: {
3030
root: 'React',
31-
umd: 'react',
31+
amd: 'react',
32+
commonjs: 'react',
33+
commonjs2: 'react',
34+
},
35+
'react-dom': {
36+
root: 'ReactDOM',
37+
amd: 'react-dom',
38+
commonjs: 'react-dom',
39+
commonjs2: 'react-dom',
3240
},
3341
},
3442
plugins: removeEmpty([

yarn.lock

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ array.prototype.find@2.0.0:
154154
define-properties "^1.1.2"
155155
es-abstract "^1.5.0"
156156

157+
array.prototype.find@^2.0.1:
158+
version "2.0.1"
159+
resolved "https://registry.yarnpkg.com/array.prototype.find/-/array.prototype.find-2.0.1.tgz#1557f888df6c57e4d1256f20852d687a25b51fde"
160+
dependencies:
161+
define-properties "^1.1.2"
162+
es-abstract "^1.5.0"
163+
157164
arrify@^1.0.0, arrify@^1.0.1:
158165
version "1.0.1"
159166
resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
@@ -729,9 +736,9 @@ babel-polyfill@6.20.0, babel-polyfill@^6.16.0, babel-polyfill@^6.6.1:
729736
core-js "^2.4.0"
730737
regenerator-runtime "^0.10.0"
731738

732-
babel-preset-env@1.1.7:
733-
version "1.1.7"
734-
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.1.7.tgz#4ca8dd905056039c6788a0174bfac7b7bad89fbf"
739+
babel-preset-env@1.1.8:
740+
version "1.1.8"
741+
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.1.8.tgz#c46734c6233c3f87d177513773db3cf3c1758aaa"
735742
dependencies:
736743
babel-plugin-check-es2015-constants "^6.3.13"
737744
babel-plugin-syntax-trailing-function-commas "^6.13.0"
@@ -1733,9 +1740,9 @@ eslint-module-utils@^2.0.0:
17331740
debug "2.2.0"
17341741
pkg-dir "^1.0.0"
17351742

1736-
eslint-plugin-flowtype@2.29.2:
1737-
version "2.29.2"
1738-
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.29.2.tgz#91b4fde0400c4c37ca4440b43bdbc95fc405bea9"
1743+
eslint-plugin-flowtype@2.30.0:
1744+
version "2.30.0"
1745+
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.30.0.tgz#3054a265f9c8afe3046c3d41b72d32a736f9b4ae"
17391746
dependencies:
17401747
lodash "^4.15.0"
17411748

@@ -1762,10 +1769,11 @@ eslint-plugin-jsx-a11y@3.0.2:
17621769
jsx-ast-utils "^1.0.0"
17631770
object-assign "^4.0.1"
17641771

1765-
eslint-plugin-react@6.8.0:
1766-
version "6.8.0"
1767-
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-6.8.0.tgz#741ab5438a094532e5ce1bbb935d6832356f492d"
1772+
eslint-plugin-react@6.9.0:
1773+
version "6.9.0"
1774+
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-6.9.0.tgz#54c2e9906b76f9d10142030bdc34e9d6840a0bb2"
17681775
dependencies:
1776+
array.prototype.find "^2.0.1"
17691777
doctrine "^1.2.2"
17701778
jsx-ast-utils "^1.3.4"
17711779

@@ -3747,17 +3755,20 @@ rc@~1.1.6:
37473755
minimist "^1.2.0"
37483756
strip-json-comments "~1.0.4"
37493757

3750-
react-addons-test-utils@15.4.1:
3751-
version "15.4.1"
3752-
resolved "https://registry.yarnpkg.com/react-addons-test-utils/-/react-addons-test-utils-15.4.1.tgz#1e4caab151bf27cce26df5f9cb714f4fd8359ae1"
3758+
react-addons-test-utils@15.4.2:
3759+
version "15.4.2"
3760+
resolved "https://registry.yarnpkg.com/react-addons-test-utils/-/react-addons-test-utils-15.4.2.tgz#93bcaa718fcae7360d42e8fb1c09756cc36302a2"
3761+
dependencies:
3762+
fbjs "^0.8.4"
3763+
object-assign "^4.1.0"
37533764

37543765
react-dom@15.3.1:
37553766
version "15.3.1"
37563767
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.3.1.tgz#6d42cd2b64c8c5e0b693f3ffaec301e6e627e24e"
37573768

3758-
react-dom@15.4.1:
3759-
version "15.4.1"
3760-
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.4.1.tgz#d54c913261aaedb17adc20410d029dcc18a1344a"
3769+
react-dom@15.4.2:
3770+
version "15.4.2"
3771+
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.4.2.tgz#015363f05b0a1fd52ae9efdd3a0060d90695208f"
37613772
dependencies:
37623773
fbjs "^0.8.1"
37633774
loose-envify "^1.1.0"
@@ -3771,9 +3782,9 @@ react@15.3.1:
37713782
loose-envify "^1.1.0"
37723783
object-assign "^4.1.0"
37733784

3774-
react@15.4.1:
3775-
version "15.4.1"
3776-
resolved "https://registry.yarnpkg.com/react/-/react-15.4.1.tgz#498e918602677a3983cd0fd206dfe700389a0dd6"
3785+
react@15.4.2:
3786+
version "15.4.2"
3787+
resolved "https://registry.yarnpkg.com/react/-/react-15.4.2.tgz#41f7991b26185392ba9bae96c8889e7e018397ef"
37773788
dependencies:
37783789
fbjs "^0.8.4"
37793790
loose-envify "^1.1.0"

0 commit comments

Comments
 (0)