Skip to content
This repository was archived by the owner on Jun 22, 2021. It is now read-only.

Commit 54a642c

Browse files
committed
feat: Starts package.
0 parents  commit 54a642c

27 files changed

+7930
-0
lines changed

.circleci/config.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
version: 2
2+
machine:
3+
services:
4+
- docker
5+
6+
jobs:
7+
build:
8+
docker:
9+
- image: circleci/node:8
10+
- image: circleci/mysql:8
11+
environment:
12+
- NPM_CONFIG_LOGLEVEL: warn
13+
working_directory: ~/repo
14+
steps:
15+
- checkout
16+
- setup_remote_docker:
17+
docker_layer_caching: true
18+
- restore_cache:
19+
keys:
20+
- v1-dependencies-{{ checksum "package-lock.json" }}
21+
- run:
22+
name: Installing Dependencies
23+
command: npm install
24+
- run:
25+
name: Pruning Dependencies
26+
command: npm prune
27+
- save_cache:
28+
paths:
29+
- node_modules
30+
key: v1-dependencies-{{ checksum "package-lock.json" }}
31+
- run:
32+
name: Compiling Code
33+
command: npm run build
34+
- run:
35+
name: MySQL Setup
36+
command: |
37+
mysql -e "CREATE DATABASE IF NOT EXISTS jsentityreposknex;" -uroot
38+
mysql -e "CREATE USER 'jsentityrepos'@'127.0.0.1' IDENTIFIED BY 'pword';" -uroot;
39+
mysql -e "GRANT ALL PRIVILEGES ON * . * TO 'jsentityrepos'@'127.0.0.1';" -uroot;
40+
mysql -e "FLUSH PRIVILEGES;" -uroot;
41+
- run:
42+
name: Running tests
43+
command: npm run cover
44+
- run:
45+
name: Linting Code
46+
command: npm run lint
47+
- run:
48+
name: Checking Code Duplication
49+
command: npm run duplication -- --limit 10
50+
- deploy:
51+
name: Semantic Release
52+
command: npm run semantic-release

.cpd.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
languages: typescript
2+
files:
3+
- src/**/*
4+
min-lines: 7
5+
min-tokens: 50
6+
debug: false
7+
skip-comments: true

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
indent_style = space
6+
indent_size = 2
7+
charset = utf-8
8+
insert_final_newline = true

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* text eol=lf
2+
3+
.gitignore text
4+
*.gitattributes text
5+
*.json text
6+
*.md text
7+
*.sh text

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_STORE
2+
/.nyc_output
3+
/dist
4+
/node_modules
5+
/notes.md
6+
/npm-debug.log
7+
/yarn.lock

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: node_js
2+
node_js: 8
3+
sudo: false
4+
5+
notifications:
6+
email: false
7+
8+
before_script:
9+
- npm prune
10+
11+
script:
12+
- npm run build
13+
- npm run cover-ci
14+
- npm run lint
15+
- npm run duplication -- --limit 10
16+
17+
after_success:
18+
- npm run semantic-release

0 commit comments

Comments
 (0)