From b9e90ebd8efc91d195632659e83916b848057a79 Mon Sep 17 00:00:00 2001 From: Leonardo Gatica Date: Thu, 30 May 2019 17:17:22 -0400 Subject: [PATCH] feat(app): first release --- .editorconfig | 12 ++++++ .npmrc | 2 + .travis.yml | 24 ++++++++++++ README.md | 12 +++++- package.json | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 150 insertions(+), 2 deletions(-) create mode 100644 .editorconfig create mode 100644 .npmrc create mode 100644 .travis.yml create mode 100644 package.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..4a7ea30 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..26cb960 --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +save-exact=true +access=public diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f21fce9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +language: node_js +cache: + directories: + - ~/.npm +node_js: + - "12.3.1" +notifications: + email: false +stages: + - lint + - name: deploy + if: branch = master +jobs: + include: + - stage: lint + name: eslint + script: npx eslint . + - stage: lint + name: commitlint + before_script: + - npm i -g @commitlint/travis-cli + script: commitlint-travis + - stage: deploy + script: npx semantic-release diff --git a/README.md b/README.md index 611aec9..ecca20f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ -# renovate-config -A shareable renovate-config to eclass projects +# @eclass/renovate-config + +[![npm](https://img.shields.io/npm/v/@eclass/renovate-config.svg)](https://www.npmjs.com/package/@eclass/renovate-config) +[![Build Status](https://travis-ci.org/eclass/renovate-config.svg?branch=master)](https://travis-ci.org/eclass/renovate-config) + +> A shareable renovate-config to eclass projects + +## License + +[MIT](https://tldrlegal.com/license/mit-license) diff --git a/package.json b/package.json new file mode 100644 index 0000000..3b7867c --- /dev/null +++ b/package.json @@ -0,0 +1,102 @@ +{ + "name": "@eclass/renovate-config", + "version": "0.0.1", + "description": "A shareable renovate-config to eclass projects", + "main": "", + "scripts": {}, + "repository": { + "type": "git", + "url": "https://github.com/eclass/renovate-config" + }, + "keywords": [ + "renovate", + "renovate-config", + "eclass" + ], + "engines": { + "node": "12.3.1" + }, + "author": "Leonardo Gatica (https://about.me/lgatica)", + "bugs": { + "url": "https://github.com/eclass/renovate-config/issues" + }, + "homepage": "https://github.com/eclass/renovate-config#readme", + "dependencies": {}, + "devDependencies": { + "@commitlint/cli": "7.6.1", + "@commitlint/config-conventional": "7.6.0", + "@semantic-release/changelog": "3.0.2", + "@semantic-release/commit-analyzer": "6.1.0", + "@semantic-release/git": "7.0.8", + "@semantic-release/github": "5.2.10", + "@semantic-release/npm": "5.1.9", + "@semantic-release/release-notes-generator": "7.1.4", + "husky": "2.3.0", + "semantic-release": "15.13.14" + }, + "husky": { + "hooks": { + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" + } + }, + "commitlint": { + "extends": [ + "@commitlint/config-conventional" + ] + }, + "renovate": { + "extends": [ + "config:js-lib" + ], + "assignees": [ + "lgatica" + ], + "reviewers": [ + "lgaticaq" + ], + "labels": [ + "renovate" + ], + "minor": { + "automerge": true + }, + "major": { + "automerge": false + } + }, + "release": { + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/changelog", + "@semantic-release/npm", + "@semantic-release/git", + "@semantic-release/github" + ] + }, + "renovate-config": { + "base": { + "description": "Default base configuration for all languages", + "extends": [ + "config:base", + ":automergeMinor", + ":labels(renovate)", + ":reviewer(lgaticaq)" + ] + }, + "js-app": { + "description": "Default configuration for webapps", + "extends": [ + "@eclass:base", + "config:js-app" + ] + }, + "js-lib": { + "description": "Default configuration for libraries", + "extends": [ + "@eclass:base", + "config:js-lib" + ] + } + } +}