Skip to content

Commit ca24f86

Browse files
Merge branch 'release/1.0.0-alpha'
2 parents 233d9b1 + 5e82abb commit ca24f86

15 files changed

+802
-0
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015", "react"]
3+
}

.editorconfig

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
insert_final_newline = true
10+
indent_style = tab
11+
12+
[package.json]
13+
indent_style = space
14+
indent_size = 2

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/coverage/*

.eslintrc.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"root": true,
3+
"extends": "airbnb",
4+
"rules": {
5+
"indent": ["error", "tab"],
6+
"linebreak-style": "off",
7+
"no-tabs": "off",
8+
"react/jsx-filename-extension": "off"
9+
}
10+
}

.gitignore

+135
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
# Created by https://www.gitignore.io/api/node,macos,linux,windows
2+
3+
### Linux ###
4+
*~
5+
6+
# temporary files which can be created if a process still has a handle open of a deleted file
7+
.fuse_hidden*
8+
9+
# KDE directory preferences
10+
.directory
11+
12+
# Linux trash folder which might appear on any partition or disk
13+
.Trash-*
14+
15+
# .nfs files are created when an open file is removed but is still being accessed
16+
.nfs*
17+
18+
### macOS ###
19+
*.DS_Store
20+
.AppleDouble
21+
.LSOverride
22+
23+
# Icon must end with two \r
24+
Icon
25+
26+
# Thumbnails
27+
._*
28+
29+
# Files that might appear in the root of a volume
30+
.DocumentRevisions-V100
31+
.fseventsd
32+
.Spotlight-V100
33+
.TemporaryItems
34+
.Trashes
35+
.VolumeIcon.icns
36+
.com.apple.timemachine.donotpresent
37+
38+
# Directories potentially created on remote AFP share
39+
.AppleDB
40+
.AppleDesktop
41+
Network Trash Folder
42+
Temporary Items
43+
.apdisk
44+
45+
### Node ###
46+
# Logs
47+
logs
48+
*.log
49+
npm-debug.log*
50+
yarn-debug.log*
51+
yarn-error.log*
52+
53+
# Runtime data
54+
pids
55+
*.pid
56+
*.seed
57+
*.pid.lock
58+
59+
# Directory for instrumented libs generated by jscoverage/JSCover
60+
lib-cov
61+
62+
# Coverage directory used by tools like istanbul
63+
coverage
64+
65+
# nyc test coverage
66+
.nyc_output
67+
68+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
69+
.grunt
70+
71+
# Bower dependency directory (https://bower.io/)
72+
bower_components
73+
74+
# node-waf configuration
75+
.lock-wscript
76+
77+
# Compiled binary addons (http://nodejs.org/api/addons.html)
78+
build/Release
79+
80+
# Dependency directories
81+
node_modules/
82+
jspm_packages/
83+
84+
# Typescript v1 declaration files
85+
typings/
86+
87+
# Optional npm cache directory
88+
.npm
89+
90+
# Optional eslint cache
91+
.eslintcache
92+
93+
# Optional REPL history
94+
.node_repl_history
95+
96+
# Output of 'npm pack'
97+
*.tgz
98+
99+
# Yarn Integrity file
100+
.yarn-integrity
101+
102+
# dotenv environment variables file
103+
.env
104+
105+
106+
### Windows ###
107+
# Windows thumbnail cache files
108+
Thumbs.db
109+
ehthumbs.db
110+
ehthumbs_vista.db
111+
112+
# Folder config file
113+
Desktop.ini
114+
115+
# Recycle Bin used on file shares
116+
$RECYCLE.BIN/
117+
118+
# Windows Installer files
119+
*.cab
120+
*.msi
121+
*.msm
122+
*.msp
123+
124+
# Windows shortcuts
125+
*.lnk
126+
127+
# End of https://www.gitignore.io/api/node,macos,linux,windows
128+
129+
# Transpiled build artifacts
130+
lib/
131+
132+
# Vagrant development environment
133+
.vagrant/
134+
Vagrantfile
135+
puphpet/

.npmignore

+138
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# Created by https://www.gitignore.io/api/node,macos,linux,windows
2+
3+
### Linux ###
4+
*~
5+
6+
# temporary files which can be created if a process still has a handle open of a deleted file
7+
.fuse_hidden*
8+
9+
# KDE directory preferences
10+
.directory
11+
12+
# Linux trash folder which might appear on any partition or disk
13+
.Trash-*
14+
15+
# .nfs files are created when an open file is removed but is still being accessed
16+
.nfs*
17+
18+
### macOS ###
19+
*.DS_Store
20+
.AppleDouble
21+
.LSOverride
22+
23+
# Icon must end with two \r
24+
Icon
25+
26+
# Thumbnails
27+
._*
28+
29+
# Files that might appear in the root of a volume
30+
.DocumentRevisions-V100
31+
.fseventsd
32+
.Spotlight-V100
33+
.TemporaryItems
34+
.Trashes
35+
.VolumeIcon.icns
36+
.com.apple.timemachine.donotpresent
37+
38+
# Directories potentially created on remote AFP share
39+
.AppleDB
40+
.AppleDesktop
41+
Network Trash Folder
42+
Temporary Items
43+
.apdisk
44+
45+
### Node ###
46+
# Logs
47+
logs
48+
*.log
49+
npm-debug.log*
50+
yarn-debug.log*
51+
yarn-error.log*
52+
53+
# Runtime data
54+
pids
55+
*.pid
56+
*.seed
57+
*.pid.lock
58+
59+
# Directory for instrumented libs generated by jscoverage/JSCover
60+
lib-cov
61+
62+
# Coverage directory used by tools like istanbul
63+
coverage
64+
65+
# nyc test coverage
66+
.nyc_output
67+
68+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
69+
.grunt
70+
71+
# Bower dependency directory (https://bower.io/)
72+
bower_components
73+
74+
# node-waf configuration
75+
.lock-wscript
76+
77+
# Compiled binary addons (http://nodejs.org/api/addons.html)
78+
build/Release
79+
80+
# Dependency directories
81+
node_modules/
82+
jspm_packages/
83+
84+
# Typescript v1 declaration files
85+
typings/
86+
87+
# Optional npm cache directory
88+
.npm
89+
90+
# Optional eslint cache
91+
.eslintcache
92+
93+
# Optional REPL history
94+
.node_repl_history
95+
96+
# Output of 'npm pack'
97+
*.tgz
98+
99+
# Yarn Integrity file
100+
.yarn-integrity
101+
102+
# dotenv environment variables file
103+
.env
104+
105+
106+
### Windows ###
107+
# Windows thumbnail cache files
108+
Thumbs.db
109+
ehthumbs.db
110+
ehthumbs_vista.db
111+
112+
# Folder config file
113+
Desktop.ini
114+
115+
# Recycle Bin used on file shares
116+
$RECYCLE.BIN/
117+
118+
# Windows Installer files
119+
*.cab
120+
*.msi
121+
*.msm
122+
*.msp
123+
124+
# Windows shortcuts
125+
*.lnk
126+
127+
# End of https://www.gitignore.io/api/node,macos,linux,windows
128+
129+
# Pre-transpiled source code
130+
src/
131+
132+
# Tests
133+
*.spec.js
134+
135+
# Vagrant development environment
136+
.vagrant/
137+
Vagrantfile
138+
puphpet/

.publishrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"validations": {
3+
"vulnerableDependencies": true,
4+
"uncommittedChanges": true,
5+
"untrackedFiles": true,
6+
"sensitiveData": true,
7+
"branch": "master",
8+
"gitTag": true
9+
},
10+
"confirm": true,
11+
"publishTag": "latest",
12+
"prePublishScript": "npm test && npm run build",
13+
"postPublishScript": false
14+
}

.travis.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: node_js
2+
node_js:
3+
- "node"
4+
- "8"
5+
- "7"
6+
- "6"
7+
- "4"
8+
env:
9+
- REACT_VERSION=0.13
10+
- REACT_VERSION=0.14
11+
- REACT_VERSION=15
12+
- REACT_VERSION=*
13+
before_install:
14+
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then npm install -g [email protected] ; elif [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g [email protected] ;; 2.*) npm install -g npm@2 ;; esac ; fi'
15+
- 'if [ "${TRAVIS_NODE_VERSION%${TRAVIS_NODE_VERSION#[0-9]}}" = "0" ] || [ "${TRAVIS_NODE_VERSION:0:4}" = "iojs" ]; then npm install -g [email protected] ; elif [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi'
16+
install:
17+
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then nvm install 0.8 && npm install -g [email protected] && npm install -g [email protected] && npm install -g npm@2 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
18+
before_script:
19+
- ./install-dependencies.sh || echo "ignoring errors during setup"
20+
script:
21+
- npm run travisci

install-dependencies.sh

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
set -ev
3+
4+
echo "installing React $REACT_VERSION"
5+
echo "Travis Node Version $TRAVIS_NODE_VERSION"
6+
node --version
7+
npm --version
8+
9+
npm uninstall --no-save react react-dom react-addons-test-utils react-test-renderer
10+
rm -rf node_modules/.bin/npm node_modules/.bin/npm.cmd node_modules/react node_modules/react-dom node_modules/react-addons-test-utils node_modules/react-test-renderer
11+
npm prune
12+
13+
npm install
14+
15+
# Conditionally install dependencies per https://github.com/airbnb/enzyme#installation
16+
if [ "${REACT_VERSION:0:2}" = "0." ]; then
17+
npm install --no-save react@$REACT_VERSION react-dom@$REACT_VERSION react-addons-test-utils@$REACT_VERSION
18+
else
19+
npm install --no-save react@$REACT_VERSION react-dom@$REACT_VERSION react-test-renderer@$REACT_VERSION
20+
fi
21+
22+
npm ls --depth=0

0 commit comments

Comments
 (0)