Skip to content

Commit

Permalink
major: first release
Browse files Browse the repository at this point in the history
Signed-off-by: Charlike Mike Reagent <mameto2011@gmail.com>
  • Loading branch information
Charlike Mike Reagent committed Nov 2, 2018
1 parent 44d5f16 commit e31305a
Show file tree
Hide file tree
Showing 22 changed files with 5,347 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"projectName": "update",
"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"
]
}
]
}
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: ~/update

# 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:
- update-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- update-

# 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: update-{{ 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: update-{{ 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
12 changes: 12 additions & 0 deletions .editorconfig
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
92 changes: 92 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
dist
update

# 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
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

module.exports = require('@tunnckocore/config/eslint');
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]
92 changes: 92 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
dist
update

# 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
3 changes: 3 additions & 0 deletions .huskyrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

module.exports = require('@tunnckocore/config/husky');
Loading

0 comments on commit e31305a

Please sign in to comment.