Skip to content

Commit e4ca195

Browse files
Merge pull request #760 from developit/merge
Merge next back into master
2 parents b9fe787 + 01ccf19 commit e4ca195

File tree

145 files changed

+13191
-7651
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+13191
-7651
lines changed

.babelrc

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

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/node_modules
2+
**/tests/output

.eslintrc

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"prettier"
5+
],
6+
"parser": "babel-eslint",
7+
"env": {
8+
"browser": true,
9+
"node": true,
10+
"es6": true
11+
},
12+
"plugins": [
13+
"babel",
14+
"react",
15+
"prettier"
16+
],
17+
"settings": {
18+
"react": {
19+
"pragma": "h",
20+
"version": "preact"
21+
}
22+
},
23+
"parserOptions": {
24+
"ecmaVersion": 2018,
25+
"ecmaFeatures": {
26+
"jsx": true
27+
}
28+
},
29+
"rules": {
30+
"no-console": 1,
31+
"no-empty": 0,
32+
"semi": 2,
33+
"keyword-spacing": 2,
34+
"react/no-string-refs": 2,
35+
"react/no-find-dom-node": 2,
36+
"react/no-is-mounted": 2,
37+
"react/jsx-no-comment-textnodes": 2,
38+
"react/jsx-curly-spacing": 2,
39+
"react/jsx-no-undef": 2,
40+
"react/jsx-uses-react": 2,
41+
"react/jsx-uses-vars": 2
42+
}
43+
}

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
**Did you add tests for your changes?**
88

9-
109
**Summary**
1110

1211
<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->

.github/issue_template.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- Please don't delete this template -->
22
<!-- Before creating an issue please make sure you are using the latest version of preact-cli. -->
33

4-
**Do you want to request a *feature* or report a *bug*?**
4+
**Do you want to request a _feature_ or report a _bug_?**
55

66
**What is the current behaviour?**
77

@@ -14,6 +14,7 @@
1414
**If this is a feature request, what is motivation or use case for changing the behaviour?**
1515

1616
**Please mention other relevant information.**
17+
1718
- Node version
1819
- npm version
1920
- Operating system

.gitignore

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/node_modules
2-
/lib
3-
/examples/*/build
4-
/tests/output
51
.DS_Store
6-
npm-debug.log
7-
key.pem
8-
cert.pem
2+
node_modules
93
lighthouse.*/
10-
tmp-*.json
114
package-lock.json
5+
**/tests/output
6+
tmp-*.json
7+
*.log
8+
*.pem
9+
10+
.idea/
11+
.vscode

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**/node_modules
2+
**/tests/output
3+
**/package.json

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": true,
5+
"useTabs": true,
6+
"singleQuote": true,
7+
"endOfLine": "lf"
8+
}

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ addons:
77

88
language: node_js
99
node_js:
10-
- 6
1110
- 8
1211

12+
git:
13+
depth: 1
14+
1315
branches:
1416
only:
1517
- master
18+
- next
1619

1720
cache:
1821
yarn: true
@@ -21,10 +24,8 @@ cache:
2124
- node_modules
2225

2326
before_script:
24-
- export LIGHTHOUSE_CHROMIUM_PATH=`which google-chrome-stable`
25-
# - if [ "$TRAVIS_BRANCH" = "master" ]; then export SKIP_INSTALL=true; export WITH_LOG=true; fi
26-
- if [ "$TRAVIS_BRANCH" = "master" ]; then export WITH_LOG=true; fi
27+
- export WITH_LOG=true
28+
- export LIGHTHOUSE_CHROMIUM_PATH=`which google-chrome-stable`
2729

2830
script:
29-
- npm run lint
30-
- npm run test -- --verbose
31+
- yarn test

CODE_OF_CONDUCT.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo
88

99
Examples of behavior that contributes to creating a positive environment include:
1010

11-
* Using welcoming and inclusive language
12-
* Being respectful of differing viewpoints and experiences
13-
* Gracefully accepting constructive criticism
14-
* Focusing on what is best for the community
15-
* Showing empathy towards other community members
11+
- Using welcoming and inclusive language
12+
- Being respectful of differing viewpoints and experiences
13+
- Gracefully accepting constructive criticism
14+
- Focusing on what is best for the community
15+
- Showing empathy towards other community members
1616

1717
Examples of unacceptable behavior by participants include:
1818

19-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
* Trolling, insulting/derogatory comments, and personal or political attacks
21-
* Public or private harassment
22-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
* Other conduct which could reasonably be considered inappropriate in a professional setting
19+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
- Trolling, insulting/derogatory comments, and personal or political attacks
21+
- Public or private harassment
22+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
- Other conduct which could reasonably be considered inappropriate in a professional setting
2424

2525
## Our Responsibilities
2626

0 commit comments

Comments
 (0)