Skip to content

Commit

Permalink
feat: open source
Browse files Browse the repository at this point in the history
Signed-off-by: Charlike Mike Reagent <olsten.larck@gmail.com>
  • Loading branch information
Charlike Mike Reagent committed Jul 29, 2018
1 parent a1056ea commit 8e21e83
Show file tree
Hide file tree
Showing 24 changed files with 5,086 additions and 2 deletions.
150 changes: 150 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
version: 2

workdir: &workdir
working_directory: ~/parse-commit-message

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

# 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: parse-commit-message-{{ 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: parse-commit-message-{{ 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
- 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-global
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
11 changes: 11 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[ignore]

[include]

[libs]

[lints]

[options]

[strict]
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
node_modules
coverage
.nyc_output
.eslintcache
dist
docks

# npm >=5 lock file (& shrinkwrap), we use Yarn!
package-lock.json
npm-shrinkwrap.json

# 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
129 changes: 129 additions & 0 deletions .verb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# {%= name %} [![npm version][npmv-img]][npmv-url] [![github release][ghrelease-img]][ghrelease-url] [![License][license-img]][license-url]

<!-- When logo is needed
<p align="center">
<a href="https://github.com/username/repo">
<img src="./logo.png">
</a>
</p>
<br>
-->

> {%= description %}
<div id="thetop"></div>

[![XAXA code style][codestyle-img]][codestyle-url]
[![CircleCI linux build][linuxbuild-img]][linuxbuild-url]
[![CodeCov coverage status][codecoverage-img]][codecoverage-url]
[![DavidDM dependency status][dependencies-img]][dependencies-url]
[![Renovate App Status][renovateapp-img]][renovateapp-url]
[![Make A Pull Request][prs-welcome-img]][prs-welcome-url]
[![Semantically Released][new-release-img]][new-release-url]

If you have any _how-to_ kind of questions, please read the [Contributing Guide](./CONTRIBUTING.md) and [Code of Conduct](./CODE_OF_CONDUCT.md) documents.
For bugs reports and feature requests, [please create an issue][open-issue-url] or ping [@tunnckoCore](https://twitter.com/tunnckoCore) at Twitter.

[![Conventional Commits][ccommits-img]][ccommits-url]
[![PayPal Author Support][paypal-donate-img]][paypal-donate-url]
[![Share Love Tweet][shareb]][shareu]
[![NPM Downloads Weekly][downloads-weekly-img]][npmv-url]
[![NPM Downloads Monthly][downloads-monthly-img]][npmv-url]
[![NPM Downloads Total][downloads-total-img]][npmv-url]

Project is [semantically](https://semver.org) & automatically released on [CircleCI][codecoverage-url] with [new-release][] and its [New Release](https://github.com/apps/new-release) GitHub App.


## Table of Contents
<!-- toc -->

## Install
This project requires [**Node.js**](https://nodejs.org) **{%= engines.node %}**. Install it using [**yarn**](https://yarnpkg.com) or [**npm**](https://npmjs.com).
_We highly recommend to use Yarn when you think to contribute to this project._

```bash
$ yarn add {%= name %}
```

## API
{%= include('docs/README.md') %}

**[back to top](#thetop)**

{% if (verb.related && verb.related.list && verb.related.list.length) { %}

## Related Projects
Some of these projects are used here or were inspiration for this one, others are just related. So, thanks for your existance!
{%= related(verb.related.list, { words: 11 }) %}

**[back to top](#thetop)**
{% } %}

## Contributing
Please read the [Contributing Guide](./CONTRIBUTING.md) and [Code of Conduct](./CODE_OF_CONDUCT.md) documents for advices.
For bugs reports and feature requests, [please create an issue][open-issue-url] or ping [@tunnckoCore](https://twitter.com/tunnckoCore) at Twitter.

## Contributors
Thanks to the hard work of [these wonderful people](./CONTRIBUTORS.md) this project is alive and it also follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification.
[Pull requests](https://github.com/tunnckoCore/contributing#opening-a-pull-request), stars and all kind of [contributions](https://opensource.guide/how-to-contribute/#what-it-means-to-contribute) are always welcome. :stars:

## Users
You can see who uses `{%= name %}` in the [USERS.md](./USERS.md) file. Please feel free adding this file if it not exists.
If you or your organization are using this project, consider adding yourself to the list of users.
**Thank You!** :heart:

## License
Copyright (c) {%= licenseStart %}-present, [Charlike Mike Reagent][author-link] `<olsten.larck@gmail.com>`.
Released under the [{%= license %} License][license-url].

---

{%= include('footer') %}

<!-- Heading badges -->
[npmv-url]: https://www.npmjs.com/package/{%= name %}
[npmv-img]: https://badgen.net/npm/v/{%= name %}?label=npm%20version

[ghrelease-url]: https://github.com/{%= repository %}/releases/latest
[ghrelease-img]: https://badgen.net/github/release/{%= repository %}?label=github%20release

[license-url]: https://github.com/{%= repository %}/blob/master/LICENSE
[license-img]: https://badgen.net/npm/license/{%= name %}

<!-- Front line badges -->

[codestyle-url]: https://github.com/olstenlarck/xaxa
[codestyle-img]: https://badgen.net/badge/code%20style/xaxa/green

[linuxbuild-url]: https://circleci.com/gh/{%= repository %}/tree/master
[linuxbuild-img]: https://badgen.net/circleci/github/{%= repository %}/master

[codecoverage-url]: https://codecov.io/gh/{%= repository %}
[codecoverage-img]: https://codecov.io/gh/{%= repository %}/branch/master/graph/badge.svg

[dependencies-url]: https://david-dm.org/{%= repository %}
[dependencies-img]: https://badgen.net/david/dep/{%= repository %}

[ccommits-url]: https://conventionalcommits.org/
[ccommits-img]: https://badgen.net/badge/conventional%20commits/v1.0.0/dfb317

[new-release-url]: https://github.com/tunnckoCore/new-release
[new-release-img]: https://badgen.net/badge/semantically/released/05c5ff

[downloads-weekly-img]: https://badgen.net/npm/dw/{%= name %}
[downloads-monthly-img]: https://badgen.net/npm/dm/{%= name %}
[downloads-total-img]: https://badgen.net/npm/dt/{%= name %}

[renovateapp-url]: https://renovatebot.com
[renovateapp-img]: https://badgen.net/badge/renovate/enabled/green

[prs-welcome-img]: https://badgen.net/badge/PRs/welcome/green
[prs-welcome-url]: http://makeapullrequest.com

[paypal-donate-url]: https://paypal.me/tunnckoCore/10
[paypal-donate-img]: https://badgen.net/badge/$/support/purple

[shareu]: https://twitter.com/intent/tweet?text=https://github.com/{%= repository %}&via=tunnckoCore
[shareb]: https://badgen.net/badge/twitter/share/1da1f2
[open-issue-url]: https://github.com/{%= repository %}/issues/new
[author-link]: https://i.am.charlike.online
Loading

0 comments on commit 8e21e83

Please sign in to comment.