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

Commit

Permalink
major(release): woohoo, welcome
Browse files Browse the repository at this point in the history
Signed-off-by: Charlike Mike Reagent <[email protected]>
  • Loading branch information
Charlike Mike Reagent committed Nov 1, 2018
1 parent 7a271ea commit a8651aa
Show file tree
Hide file tree
Showing 28 changed files with 5,644 additions and 8,073 deletions.
27 changes: 27 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"projectName": "charlike-cli",
"projectOwner": "tunnckoCore",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"imageSize": 120,
"commit": false,
"contributorsPerLine": 6,
"contributors": [
{
"login": "tunnckoCore",
"name": "Charlike Mike Reagent",
"avatar_url": "https://avatars3.githubusercontent.com/u/5038030?v=4",
"profile": "https://tunnckocore.com",
"contributions": [
"code",
"doc",
"question",
"review",
"fundingFinding"
]
}
]
}
149 changes: 149 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
version: 2

workdir: &workdir
working_directory: ~/charlike-cli

# node8osx: &node8osx
# <<: *workdir
# macos:
# xcode: "9.2"

# node10osx: &node10osx
# <<: *workdir
# macos:
# xcode: "9"

node8linux: &node8linux
<<: *workdir
docker:
- image: circleci/node:8

node10linux: &node10linux
<<: *workdir
docker:
- image: circleci/node:10

restore_modules_cache: &restore_modules_cache
restore_cache:
keys:
- charlike-cli-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- charlike-cli-

# jobinstall: &jobinstall
# steps:
# - checkout
# # - *restore_modules_cache
# - run:
# name: Installing PNPM package manager
# command: sudo npm i -g pnpm
# - run:
# name: Installing project dependencies
# command: pnpm run inst
# - save_cache:
# key: charlike-cli-{{ checksum "yarn.lock" }}
# paths: node_modules
# - run:
# name: Remove node_modules to cleanup workspace
# command: rm -rf node_modules

jobtest: &jobtest
steps:
- checkout
- *restore_modules_cache
- run:
name: Installing project dependencies
command: yarn install --prefer-offline || yarn install
- run:
name: Testing your project
command: yarn test
- save_cache:
key: charlike-cli-{{ checksum "yarn.lock" }}
paths: node_modules
- run:
name: Sending test coverage to CodeCov
command: bash <(curl -s https://codecov.io/bash)

jobs:
# install-node8linux:
# <<: *node8linux
# <<: *jobinstall

test-node8linux:
<<: *node8linux
<<: *jobtest

# install-node10linux:
# <<: *node10linux
# <<: *jobinstall

test-node10linux:
<<: *node10linux
<<: *jobtest

# install-node8osx:
# <<: *node8osx
# <<: *jobinstall

# test-node8osx:
# <<: *node8osx
# <<: *jobtest

# install-node10osx:
# <<: *node10osx
# <<: *jobinstall

# test-node10osx:
# <<: *node10osx
# <<: *jobtest

release:
<<: *node10linux
steps:
- checkout
- *restore_modules_cache
- run:
name: Bundling your awesome project
command: yarn build || echo "No build step."
- run:
name: Releasing and publishing
command: yarn new-release

workflows:
version: 2
automated:
jobs:
# Linux
- test-node8linux
- test-node10linux

# - install-node8linux
# - test-node8linux:
# requires:
# - install-node8linux
# - install-node10linux
# - test-node10linux:
# requires:
# - install-node10linux
# OSX
# - install-node8osx
# - test-node8osx:
# requires:
# - install-node8osx
# - install-node10osx
# - test-node10osx:
# requires:
# - install-node10osx

# Release and NPM publish
# Executed only on master
- release:
requires:
# - test-node8osx
# - test-node10osx
- test-node8linux
- test-node10linux
filters:
branches:
only: master
context: org-secret
6 changes: 3 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# http://editorconfig.org/
root = true

[*]
[*.{js,mjs,jsx,ts,tsx}]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
insert_final_newline = false
trim_trailing_whitespace = false
92 changes: 92 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
dist
charlike-cli

# Lockfiles. We use Yarn (https://yarnpkg.com/)
package-lock.json
npm-shrinkwrap.json
shrinkwrap.yaml

# Archives and packages #
# ##########
*.7z
*.dmg
*.iso
*.jar
*.rar
*.tar
*.zip

# node-waf configuration
.lock-wscript

# OS, Logs and databases #
# #########################
logs
*.log
*.log*
*.dat
*.sql
*.sqlite
*~
~*
.DS_Store*

# dotenv environment variables file
.env
.pem
*.pem

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next
29 changes: 0 additions & 29 deletions .eslintrc.json

This file was deleted.

13 changes: 13 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[ignore]
.*/node_modules
.*/dist

[include]

[libs]

[lints]

[options]

[strict]
Loading

0 comments on commit a8651aa

Please sign in to comment.