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

Commit 5af5661

Browse files
committed
feat(package): Starts package.
0 parents  commit 5af5661

11 files changed

+813
-0
lines changed

.circleci/config.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
version: 2
2+
machine:
3+
services:
4+
- docker
5+
6+
jobs:
7+
build:
8+
docker:
9+
- image: circleci/node:8
10+
environment:
11+
- NPM_CONFIG_LOGLEVEL: warn
12+
working_directory: ~/repo
13+
steps:
14+
- checkout
15+
- setup_remote_docker:
16+
docker_layer_caching: true
17+
- restore_cache:
18+
keys:
19+
- v1-dependencies-{{ checksum "package-lock.json" }}
20+
- run:
21+
name: Installing Dependencies
22+
command: npm install
23+
- run:
24+
name: Pruning Dependencies
25+
command: npm prune
26+
- save_cache:
27+
paths:
28+
- node_modules
29+
key: v1-dependencies-{{ checksum "package-lock.json" }}
30+
- run:
31+
name: Compiling Code
32+
command: npm run build
33+
- run:
34+
name: Running tests
35+
command: npm run cover-ci
36+
- run:
37+
name: Linting Code
38+
command: npm run lint
39+
- run:
40+
name: Checking Code Duplication
41+
command: npm run duplication -- --limit 10
42+
- deploy:
43+
name: Semantic Release
44+
command: npm run semantic-release

.cpd.yml

+7
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

+8
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

+7
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

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_STORE
2+
/dist
3+
/node_modules
4+
/notes.md
5+
/npm-debug.log
6+
/yarn.lock

license

+674
Large diffs are not rendered by default.

package.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "@js-entity-repos/core",
3+
"version": "1.0.0",
4+
"description": "Provides common interfaces and tests for js-entities-repos.",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/js-entity-repos/core"
8+
},
9+
"author": "js-entity-repos",
10+
"license": "GPL-3.0",
11+
"scripts": {
12+
"build": "tsc",
13+
"lint": "tslint --project ./tsconfig.json",
14+
"test": "mocha $(find dist -name '*.test.js') --exit",
15+
"cover": "nyc npm test",
16+
"duplication": "jscpd",
17+
"clean": "rimraf dist",
18+
"semantic-release": "ht2-release-private-circleci"
19+
},
20+
"nyc": {
21+
"lines": 100,
22+
"check-coverage": true
23+
},
24+
"dependencies": {},
25+
"devDependencies": {
26+
"@ht2-labs/typescript-project": "1.0.0",
27+
"@ht2-labs/semantic-release": "1.0.9",
28+
"@types/mocha": "2.2.44",
29+
"jscpd": "0.6.17",
30+
"mocha": "4.0.1",
31+
"nyc": "11.3.0",
32+
"rimraf": "2.6.2"
33+
}
34+
}

readme.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# core
2+
> Provides common interfaces and tests for js-entities-repos.
3+
4+
### Usage
5+
1. Install it with `npm i @js-entity-repos/core`.

renovate.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"@ht2-labs:base"
4+
]
5+
}

tsconfig.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": "./node_modules/@ht2-labs/typescript-project/configs/tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": "src",
5+
"outDir": "dist",
6+
"typeRoots": [
7+
"./@types",
8+
"./node_modules/@types"
9+
]
10+
},
11+
"includes": [
12+
"src/**/*"
13+
],
14+
"exclude": [
15+
"node_modules",
16+
"dist/**/*"
17+
]
18+
}

tslint.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"./node_modules/@ht2-labs/typescript-project/configs/tslint.json"
4+
]
5+
}

0 commit comments

Comments
 (0)