Skip to content
This repository was archived by the owner on Jul 10, 2019. It is now read-only.

Commit a8651aa

Browse files
author
Charlike Mike Reagent
committed
major(release): woohoo, welcome
Signed-off-by: Charlike Mike Reagent <mameto2011@gmail.com>
1 parent 7a271ea commit a8651aa

28 files changed

Lines changed: 5644 additions & 8073 deletions

.all-contributorsrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"projectName": "charlike-cli",
3+
"projectOwner": "tunnckoCore",
4+
"repoType": "github",
5+
"repoHost": "https://github.com",
6+
"files": [
7+
"README.md"
8+
],
9+
"imageSize": 120,
10+
"commit": false,
11+
"contributorsPerLine": 6,
12+
"contributors": [
13+
{
14+
"login": "tunnckoCore",
15+
"name": "Charlike Mike Reagent",
16+
"avatar_url": "https://avatars3.githubusercontent.com/u/5038030?v=4",
17+
"profile": "https://tunnckocore.com",
18+
"contributions": [
19+
"code",
20+
"doc",
21+
"question",
22+
"review",
23+
"fundingFinding"
24+
]
25+
}
26+
]
27+
}

.circleci/config.yml

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
version: 2
2+
3+
workdir: &workdir
4+
working_directory: ~/charlike-cli
5+
6+
# node8osx: &node8osx
7+
# <<: *workdir
8+
# macos:
9+
# xcode: "9.2"
10+
11+
# node10osx: &node10osx
12+
# <<: *workdir
13+
# macos:
14+
# xcode: "9"
15+
16+
node8linux: &node8linux
17+
<<: *workdir
18+
docker:
19+
- image: circleci/node:8
20+
21+
node10linux: &node10linux
22+
<<: *workdir
23+
docker:
24+
- image: circleci/node:10
25+
26+
restore_modules_cache: &restore_modules_cache
27+
restore_cache:
28+
keys:
29+
- charlike-cli-{{ checksum "yarn.lock" }}
30+
# fallback to using the latest cache if no exact match is found
31+
- charlike-cli-
32+
33+
# jobinstall: &jobinstall
34+
# steps:
35+
# - checkout
36+
# # - *restore_modules_cache
37+
# - run:
38+
# name: Installing PNPM package manager
39+
# command: sudo npm i -g pnpm
40+
# - run:
41+
# name: Installing project dependencies
42+
# command: pnpm run inst
43+
# - save_cache:
44+
# key: charlike-cli-{{ checksum "yarn.lock" }}
45+
# paths: node_modules
46+
# - run:
47+
# name: Remove node_modules to cleanup workspace
48+
# command: rm -rf node_modules
49+
50+
jobtest: &jobtest
51+
steps:
52+
- checkout
53+
- *restore_modules_cache
54+
- run:
55+
name: Installing project dependencies
56+
command: yarn install --prefer-offline || yarn install
57+
- run:
58+
name: Testing your project
59+
command: yarn test
60+
- save_cache:
61+
key: charlike-cli-{{ checksum "yarn.lock" }}
62+
paths: node_modules
63+
- run:
64+
name: Sending test coverage to CodeCov
65+
command: bash <(curl -s https://codecov.io/bash)
66+
67+
jobs:
68+
# install-node8linux:
69+
# <<: *node8linux
70+
# <<: *jobinstall
71+
72+
test-node8linux:
73+
<<: *node8linux
74+
<<: *jobtest
75+
76+
# install-node10linux:
77+
# <<: *node10linux
78+
# <<: *jobinstall
79+
80+
test-node10linux:
81+
<<: *node10linux
82+
<<: *jobtest
83+
84+
# install-node8osx:
85+
# <<: *node8osx
86+
# <<: *jobinstall
87+
88+
# test-node8osx:
89+
# <<: *node8osx
90+
# <<: *jobtest
91+
92+
# install-node10osx:
93+
# <<: *node10osx
94+
# <<: *jobinstall
95+
96+
# test-node10osx:
97+
# <<: *node10osx
98+
# <<: *jobtest
99+
100+
release:
101+
<<: *node10linux
102+
steps:
103+
- checkout
104+
- *restore_modules_cache
105+
- run:
106+
name: Bundling your awesome project
107+
command: yarn build || echo "No build step."
108+
- run:
109+
name: Releasing and publishing
110+
command: yarn new-release
111+
112+
workflows:
113+
version: 2
114+
automated:
115+
jobs:
116+
# Linux
117+
- test-node8linux
118+
- test-node10linux
119+
120+
# - install-node8linux
121+
# - test-node8linux:
122+
# requires:
123+
# - install-node8linux
124+
# - install-node10linux
125+
# - test-node10linux:
126+
# requires:
127+
# - install-node10linux
128+
# OSX
129+
# - install-node8osx
130+
# - test-node8osx:
131+
# requires:
132+
# - install-node8osx
133+
# - install-node10osx
134+
# - test-node10osx:
135+
# requires:
136+
# - install-node10osx
137+
138+
# Release and NPM publish
139+
# Executed only on master
140+
- release:
141+
requires:
142+
# - test-node8osx
143+
# - test-node10osx
144+
- test-node8linux
145+
- test-node10linux
146+
filters:
147+
branches:
148+
only: master
149+
context: org-secret

.editorconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
# http://editorconfig.org/
12
root = true
23

3-
[*]
4+
[*.{js,mjs,jsx,ts,tsx}]
45
indent_style = space
56
indent_size = 2
67
charset = utf-8
78
trim_trailing_whitespace = true
89
insert_final_newline = true
910

1011
[*.md]
11-
trim_trailing_whitespace = false
12-
insert_final_newline = false
12+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
dist
2+
charlike-cli
3+
4+
# Lockfiles. We use Yarn (https://yarnpkg.com/)
5+
package-lock.json
6+
npm-shrinkwrap.json
7+
shrinkwrap.yaml
8+
9+
# Archives and packages #
10+
# ##########
11+
*.7z
12+
*.dmg
13+
*.iso
14+
*.jar
15+
*.rar
16+
*.tar
17+
*.zip
18+
19+
# node-waf configuration
20+
.lock-wscript
21+
22+
# OS, Logs and databases #
23+
# #########################
24+
logs
25+
*.log
26+
*.log*
27+
*.dat
28+
*.sql
29+
*.sqlite
30+
*~
31+
~*
32+
.DS_Store*
33+
34+
# dotenv environment variables file
35+
.env
36+
.pem
37+
*.pem
38+
39+
# Runtime data
40+
pids
41+
*.pid
42+
*.seed
43+
*.pid.lock
44+
45+
# Directory for instrumented libs generated by jscoverage/JSCover
46+
lib-cov
47+
48+
# Coverage directory used by tools like istanbul
49+
coverage
50+
51+
# nyc test coverage
52+
.nyc_output
53+
54+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
55+
.grunt
56+
57+
# Bower dependency directory (https://bower.io/)
58+
bower_components
59+
60+
# node-waf configuration
61+
.lock-wscript
62+
63+
# Compiled binary addons (https://nodejs.org/api/addons.html)
64+
build/Release
65+
66+
# Dependency directories
67+
node_modules/
68+
jspm_packages/
69+
70+
# TypeScript v1 declaration files
71+
typings/
72+
73+
# Optional npm cache directory
74+
.npm
75+
76+
# Optional eslint cache
77+
.eslintcache
78+
79+
# Optional REPL history
80+
.node_repl_history
81+
82+
# Output of 'npm pack'
83+
*.tgz
84+
85+
# Yarn Integrity file
86+
.yarn-integrity
87+
88+
# dotenv environment variables file
89+
.env
90+
91+
# next.js build output
92+
.next

.eslintrc.json

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

.flowconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[ignore]
2+
.*/node_modules
3+
.*/dist
4+
5+
[include]
6+
7+
[libs]
8+
9+
[lints]
10+
11+
[options]
12+
13+
[strict]

0 commit comments

Comments
 (0)