Skip to content

Commit 8d7c703

Browse files
committed
Initial commit
0 parents  commit 8d7c703

18 files changed

Lines changed: 6471 additions & 0 deletions

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.gitignore

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# Snowpack dependency directory (https://snowpack.dev/)
45+
web_modules/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
.parcel-cache
78+
79+
# Next.js build output
80+
.next
81+
82+
# Nuxt.js build / generate output
83+
.nuxt
84+
dist
85+
86+
# Gatsby files
87+
.cache/
88+
# Comment in the public line in if your project uses Gatsby and not Next.js
89+
# https://nextjs.org/blog/next-9-1#public-directory-support
90+
# public
91+
92+
# vuepress build output
93+
.vuepress/dist
94+
95+
# Serverless directories
96+
.serverless/
97+
98+
# FuseBox cache
99+
.fusebox/
100+
101+
# DynamoDB Local files
102+
.dynamodb/
103+
104+
# TernJS port file
105+
.tern-port
106+
107+
# Stores VSCode versions used for testing VSCode extensions
108+
.vscode-test
109+
110+
# yarn v2
111+
112+
.yarn/cache
113+
.yarn/unplugged
114+
.yarn/build-state.yml
115+
.pnp.*

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"arrowParens": "always",
3+
"bracketSpacing": true,
4+
"jsxBracketSameLine": true,
5+
"jsxSingleQuote": false,
6+
"singleQuote": false,
7+
"tabWidth": 4,
8+
"trailingComma": "es5",
9+
"useTabs": false
10+
}

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: "~> 1.0"
2+
language: node_js
3+
node_js:
4+
- 8.16.2
5+
install:
6+
- npm install -g codecov
7+
before_script:
8+
- npm install
9+
script:
10+
- npm run build
11+
- npm run coverage
12+
- codecov --disable=gcov
13+
notifications:
14+
slack:
15+
on_failure: always
16+
on_pull_requests: true
17+
on_success: always
18+
rooms:
19+
secure: hAiXlNySd3Ajw1u05hDnRAJxy4Ze66s/mc097227jGtjOBUubdgBBkb+X24Ff2b9G5BUGTHi+wt6r8bqMFXkRuSTW1MKngK7coGvhjZQ6UcbXJb7Vk33FVbbb716/EpalWzrzylH+bxHuXgdMZE5RG6cmUIX5P5O7PnBP75de0QFHHEhcpUTj6s7JpiHNvU9fhNXrj6qYFLLLqcfczNnFlxVnB3dSKYxqqsfyMbknLRBok4WTuQ4eXXhSH4OBLxswgxk+rCbJAzZ7xSqS2iFXbdsYdbicbbRxQaaG08NEwDrWHNimqhEk8ZCLHxnP+jwBs0NwDtk34BFPL3ed+DadswaveXa4K6qyN4p+GBgVwGI3gkXcpkt+E+0CpZBMn5E2MSDH0bqfXtuNVU59v2nOVCIFa7kztXAuLe05h+j06vk9TzC84IgQf9aCLVHKkVZcvh9/cs5+wZBxIgsQ9UPrxB/taHTOlOaMQqAaQlm+U/vVs6e42vVEcTeNLdrL55WR3SrJgl/nicJ+TjaZDwSTkjoVBhHeOSDzLCGCn/h1EVGO0L0HeLqjEEp6ngopi78ryTzo0MmcemXJH89JQlsABb10KClIK2sz1t8EvDnk0ieHwsLgWqobOCrBHsCQGJs9Icw4ZnhS8c0JNfCEtkhC4XrDuze9s2ITmy/o9JzptM=

.vscode/launch.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
// Use IntelliSense to learn about possible Node.js debug attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Debug file",
11+
"program": "${workspaceRoot}/lib/${fileBasenameNoExtension}.js",
12+
"cwd": "${workspaceRoot}",
13+
"sourceMaps": true,
14+
"smartStep": true,
15+
"preLaunchTask": "build",
16+
"outFiles": [
17+
"${workspaceRoot}/lib/*.js"
18+
]
19+
},
20+
{
21+
"type": "node",
22+
"request": "launch",
23+
"name": "Debug test",
24+
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
25+
"args": [
26+
"--findRelatedTests",
27+
"${relativeFile}"
28+
],
29+
"cwd": "${workspaceRoot}"
30+
}
31+
]
32+
}

.vscode/settings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"[typescript]": {
3+
"editor.defaultFormatter": "esbenp.prettier-vscode"
4+
},
5+
"[typescriptreact]": {
6+
"editor.defaultFormatter": "esbenp.prettier-vscode"
7+
},
8+
"editor.defaultFormatter": "esbenp.prettier-vscode",
9+
"editor.formatOnSave": true,
10+
"editor.rulers": [100],
11+
"prettier.requireConfig": true,
12+
"trailing-spaces.trimOnSave": true,
13+
"typescript.preferences.quoteStyle": "double",
14+
"typescript.tsdk": "./node_modules/typescript/lib"
15+
}

.vscode/tasks.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Run current file",
8+
"command": "ts-node ${relativeFile}",
9+
"type": "shell",
10+
"problemMatcher": []
11+
},
12+
{
13+
"type": "npm",
14+
"label": "clean",
15+
"script": "clean",
16+
"problemMatcher": []
17+
},
18+
{
19+
"type": "npm",
20+
"label": "build",
21+
"script": "build",
22+
"group": {
23+
"kind": "build",
24+
"isDefault": true
25+
},
26+
"problemMatcher": []
27+
},
28+
{
29+
"type": "npm",
30+
"label": "format",
31+
"script": "format",
32+
"problemMatcher": []
33+
},
34+
{
35+
"type": "npm",
36+
"label": "coverage",
37+
"script": "coverage",
38+
"problemMatcher": []
39+
},
40+
{
41+
"type": "npm",
42+
"label": "test",
43+
"script": "test",
44+
"group": {
45+
"kind": "test",
46+
"isDefault": true
47+
},
48+
"problemMatcher": []
49+
},
50+
{
51+
"type": "npm",
52+
"label": "lint",
53+
"script": "lint",
54+
"problemMatcher": [
55+
"$eslint-stylish"
56+
]
57+
}
58+
]
59+
}

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# How to Contribute
2+
3+
Information on contributing to this repo is in the [Contributing Guide](https://github.com/AndcultureCode/AndcultureCode/blob/master/CONTRIBUTING.md) in the Home repo.

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# AndcultureCode.JavaScript.React.Components
2+
3+
[![Build Status](https://travis-ci.org/AndcultureCode/AndcultureCode.JavaScript.React.Components.svg?branch=master)](https://travis-ci.org/AndcultureCode/AndcultureCode.JavaScript.React.Components)
4+
[![codecov](https://codecov.io/gh/AndcultureCode/AndcultureCode.JavaScript.React.Components/branch/master/graph/badge.svg)](https://codecov.io/gh/AndcultureCode/AndcultureCode.JavaScript.React.Components)
5+
6+
Commonly used components for react applications
7+
8+
## Getting started
9+
10+
This package is installed via npm or yarn
11+
12+
```shell
13+
# npm
14+
npm install --save-dev andculturecode-javascript-react-components
15+
16+
# yarn
17+
yarn add andculturecode-javascript-react-components --dev
18+
```
19+
20+
From there you can import the variety of modules.
21+
22+
```typescript
23+
import { Card } from "andculturecode-javascript-react-components";
24+
```
25+
26+
## Documentation
27+
28+
[Full API documentation](docs/README.md)
29+
30+
# Contributing
31+
32+
Information on contributing to this repo is in the [Contributing Guide](CONTRIBUTING.md)

jest.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
globals: {
3+
"ts-jest": {
4+
diagnostics: false,
5+
tsConfig: "<rootDir>/tsconfig.json",
6+
},
7+
},
8+
moduleDirectories: ["node_modules", "src"],
9+
modulePathIgnorePatterns: ["<rootDir>/dist"],
10+
preset: "ts-jest",
11+
roots: ["<rootDir>/src"],
12+
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts"],
13+
testEnvironment: "jsdom",
14+
};

0 commit comments

Comments
 (0)