This repository has been archived by the owner on Feb 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Charlike Mike Reagent <mameto2011@gmail.com>
- Loading branch information
Charlike Mike Reagent
committed
Nov 6, 2018
0 parents
commit ef3c980
Showing
19 changed files
with
4,948 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"projectName": "package-json", | ||
"projectOwner": "tunnckoCoreLabs", | ||
"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" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
version: 2 | ||
|
||
workdir: &workdir | ||
working_directory: ~/package-json | ||
|
||
# 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: | ||
- package-json-{{ checksum "yarn.lock" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- package-json- | ||
|
||
# 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: package-json-{{ 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 tunnckocore-scripts test | ||
- save_cache: | ||
key: package-json-{{ 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 tunnckocore-scripts build || echo "No build step." | ||
- run: | ||
name: Releasing and publishing | ||
command: yarn tunnckocore-scripts 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
dist | ||
package-json | ||
|
||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
'use strict'; | ||
|
||
module.exports = require('@tunnckocore/config/eslint'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ignore] | ||
.*/node_modules | ||
.*/dist | ||
|
||
[include] | ||
|
||
[libs] | ||
|
||
[lints] | ||
|
||
[options] | ||
|
||
[strict] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
dist | ||
package-json | ||
|
||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
'use strict'; | ||
|
||
module.exports = require('@tunnckocore/config/husky'); |
Oops, something went wrong.