Skip to content

Commit d8aa00d

Browse files
committed
chore: setup project
1 parent d564255 commit d8aa00d

File tree

13 files changed

+9920
-0
lines changed

13 files changed

+9920
-0
lines changed

.editorconfig

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# http://editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
indent_size = 2
11+
indent_style = space
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
15+
[*{.html,.php}]
16+
indent_style = tab
17+
18+
[*.md]
19+
trim_trailing_whitespace = false
20+
21+
[*.yml]
22+
indent_size = 2
23+
indent_style = space
24+
25+
[{package.json}]
26+
# The indent size used in the `package.json` file cannot be changed
27+
# https://github.com/npm/npm/pull/3180#issuecomment-16336516
28+
indent_size = 2
29+
indent_style = space

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
lib

.eslintrc.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"extends": [ "airbnb-base" ],
3+
"parser": "typescript-eslint-parser",
4+
"env": {
5+
"browser": true
6+
},
7+
"plugins": [ "typescript" ],
8+
"settings": {
9+
"import/resolver": {
10+
"node": {
11+
"extensions": [ ".ts", ".js" ]
12+
}
13+
}
14+
},
15+
"rules": {
16+
"class-methods-use-this": "off",
17+
"no-undef": "off",
18+
"import/extensions": [".js", ".jsx", ".json", ".ts", ".tsx"],
19+
"import/prefer-default-export": "off",
20+
"typescript/member-ordering": "error",
21+
"typescript/adjacent-overload-signatures": "error",
22+
"typescript/no-angle-bracket-type-assertion": "error",
23+
"typescript/no-array-constructor": "error",
24+
"typescript/no-empty-interface": "error",
25+
"typescript/no-explicit-any": "error",
26+
"typescript/no-inferrable-types": "off",
27+
"typescript/no-namespace": "off",
28+
"typescript/class-name-casing": "error",
29+
"typescript/no-non-null-assertion": "error",
30+
"typescript/no-parameter-properties": "error",
31+
"typescript/no-triple-slash-reference": "error",
32+
"typescript/no-type-alias": "error",
33+
"typescript/no-unused-vars": "error",
34+
"typescript/no-use-before-define": "error",
35+
"typescript/no-var-requires": "error",
36+
"typescript/prefer-namespace-keyword": "off",
37+
"typescript/type-annotation-spacing": "error"
38+
}
39+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Folder view configuration files
2+
.DS_Store
3+
Desktop.ini
4+
5+
# Thumbnail cache files
6+
._*
7+
Thumbs.db
8+
9+
# Files that might appear on external disks
10+
.Spotlight-V100
11+
.Trashes
12+
13+
# npm
14+
node_modules
15+
npm-debug.log
16+
yarn-error.log
17+
18+
# test files
19+
coverage
20+
21+
# build and temp folders
22+
lib

.huskyrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"hooks": {
3+
"commit-msg": "commitlint -e $GIT_PARAMS",
4+
"pre-push": "yarn build"
5+
}
6+
}

.npmignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Folder view configuration files
2+
.DS_Store
3+
Desktop.ini
4+
5+
# Thumbnail cache files
6+
._*
7+
Thumbs.db
8+
9+
# Files that might appear on external disks
10+
.Spotlight-V100
11+
.Trashes
12+
13+
# npm
14+
node_modules
15+
npm-debug.log
16+
yarn-error.log
17+
18+
# test files
19+
coverage
20+
21+
# build and temp folders
22+
!lib

example/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="x-ua-compatible" content="ie=edge">
6+
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
7+
8+
<title>Lit Redux Router</title>
9+
<meta name="description" content="Declarative routing elements made with lit-html enabled by pwa-helpers and redux">
10+
</head>
11+
<body>
12+
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
13+
</body>
14+
</html>

package.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"name": "lit-redux-router",
3+
"version": "0.0.0",
4+
"description": "Application router based on pwa-helpers using redux and lit-element",
5+
"keywords": [
6+
"react",
7+
"reactjs",
8+
"children",
9+
"utils",
10+
"utilities"
11+
],
12+
"homepage": "https://github.com/fernandopasik/lit-redux-router",
13+
"bugs": "https://github.com/fernandopasik/lit-redux-router/issues",
14+
"license": "MIT",
15+
"author": "Fernando Pasik <[email protected]> (https://fernandopasik.com)",
16+
"contributors": [],
17+
"repository": {
18+
"type": "git",
19+
"url": "https://github.com/fernandopasik/lit-redux-router.git"
20+
},
21+
"main": "lib/index.js",
22+
"scripts": {
23+
"start": "polymer serve",
24+
"build": "tsc",
25+
"prebuild": "yarn lint && yarn del lib",
26+
"lint": "eslint . --ext ts",
27+
"preversion": "yarn build"
28+
},
29+
"dependencies": {
30+
"regexparam": "^1.0.1"
31+
},
32+
"peerDependencies": {
33+
"@polymer/lit-element": "^0.6.2",
34+
"lit-html": "^0.12.0",
35+
"pwa-helpers": "^0.9.0-pre.2",
36+
"redux": "^4.0.0"
37+
},
38+
"devDependencies": {
39+
"@commitlint/cli": "^7.2.0",
40+
"@commitlint/config-conventional": "^7.1.2",
41+
"@polymer/lit-element": "^0.6.2",
42+
"@webcomponents/webcomponentsjs": "^2.1.3",
43+
"del-cli": "^1.1.0",
44+
"eslint": "^5.6.1",
45+
"eslint-config-airbnb-base": "^13.1.0",
46+
"eslint-plugin-import": "^2.14.0",
47+
"eslint-plugin-typescript": "^0.12.0",
48+
"husky": "^1.1.1",
49+
"lit-html": "^0.12.0",
50+
"npm-run-all": "^4.1.3",
51+
"polymer-cli": "^1.8.0",
52+
"pwa-helpers": "^0.9.0-pre.2",
53+
"redux": "^4.0.0",
54+
"typescript": "^3.1.1",
55+
"typescript-eslint-parser": "^20.0.0"
56+
}
57+
}

polymer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"entrypoint": "example/index.html",
3+
"shell": "example/app.js",
4+
"builds": [{
5+
"name": "lit-redux-router",
6+
"preset": "es5-unbundled"
7+
}],
8+
"moduleResolution": "node",
9+
"npm": true,
10+
"lint": {
11+
"rules": [
12+
"polymer-3"
13+
],
14+
"filesToIgnore": [
15+
"lib/*"
16+
]
17+
}
18+
}

0 commit comments

Comments
 (0)