diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md new file mode 100644 index 0000000..da6689e --- /dev/null +++ b/.github/CONTRIBUTING.md @@ -0,0 +1,122 @@ +# Contributing to `ra-ui` + +Love ra-ui and want to help? Thanks so much, there's something to do for everybody! + +Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved. + +Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue or assessing patches and features. + +## Using the issue tracker + +The [issue tracker](https://github.com/bootstrap-styled/ra-ui/issues) is +the preferred channel for [bug reports](#bugs), [features requests](#features) +and [submitting pull requests](#pull-requests). + + +## Bug reports + +A bug is a _demonstrable problem_ that is caused by the code in the repository. +Good bug reports are extremely helpful - thank you! + +Guidelines for bug reports: + +1. **Use the GitHub issue search** — check if the issue has already been reported. + +2. **Check if the issue has been fixed** — try to reproduce it using the latest `master` or development branch in the repository. + +3. **Isolate the problem** — ideally create a reduced test case and a live example. + +A good bug report shouldn't leave others needing to chase you up for more information. Please try to be as detailed as possible in your report. What is your environment? What steps will reproduce the issue? What browser(s) and OS +experience the problem? What would you expect to be the outcome? All these details will help people to fix any potential bugs. + +Example: + +> Short and descriptive example bug report title +> +> A summary of the issue and the browser/OS environment in which it occurs. If +> suitable, include the steps required to reproduce the bug. +> +> 1. This is the first step +> 2. This is the second step +> 3. Further steps, etc. +> +> `` - a link to the reduced test case +> +> Any other information you want to share that is relevant to the issue being +> reported. This might include the lines of code that you have identified as +> causing the bug, and potential solutions (and your opinions on their +> merits). + + + +## Feature requests + +Feature requests are welcome. But take a moment to find out whether your idea fits with the scope and aims of the project. It's up to *you* to make a strong case to convince the project's developers of the merits of this feature. Please provide as much detail and context as possible. + + + +## Pull requests + +Good pull requests - patches, improvements, new features - are a fantastic +help. They should remain focused in scope and avoid containing unrelated +commits. + +**Please ask first** before embarking on any significant pull request (e.g. +implementing features, refactoring code, porting to a different language), +otherwise you risk spending a lot of time working on something that the +project's developers might not want to merge into the project. + +Please adhere to the coding conventions used throughout a project (indentation, +accurate comments, etc.) and any other requirements (such as test coverage). + +Since the `master` branch is what people actually use in production, we have a +`dev` branch that unstable changes get merged into first. Only when we +consider that stable we merge it into the `master` branch and release the +changes for real. + +Adhering to the following process is the best way to get your work +included in the project: + +1. [Fork](https://help.github.com/articles/fork-a-repo/) the project, clone your fork, and configure the remotes: + + ```bash + # Clone your fork of the repo into the current directory + git clone https://github.com//ra-ui.git + # Navigate to the newly cloned directory + cd ra-ui + # Assign the original repo to a remote called "upstream" + git remote add upstream https://github.com/kopax/ra-ui.git + ``` + +2. If you cloned a while ago, get the latest changes from upstream: + + ```bash + git checkout dev + git pull upstream dev + ``` + +3. Create a new topic branch (off the `dev` branch) to contain your feature, change, or fix: + + ```bash + git checkout -b + ``` + +4. Commit your changes in logical chunks. Please adhere to these [git commit message guidelines](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines) or your code is unlikely be merged into the main project. Use Git's [interactive rebase](https://help.github.com/articles/about-git-rebase/) feature to tidy up your commits before making them public. + +5. Locally merge (or rebase) the upstream dev branch into your topic branch: + + ```bash + git pull [--rebase] upstream dev + ``` + +6. Push your topic branch up to your fork: + + ```bash + git push origin + ``` + +7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) + with a clear title and description. + +**IMPORTANT**: By submitting a patch, you agree to allow the project +owners to license your work under the terms of the [MIT License](https://github.com/bootstrap-styled/ra-ui/blob/master/LICENSE.md). diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..4f41fec --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,26 @@ +# ra-ui + +Before opening a new issue, please take a moment to review our [**community guidelines**](https://github.com/bootstrap-styled/ra-ui/blob/master/.github/CONTRIBUTING.md) to make the contribution process easy and effective for everyone involved. + +**Before opening a new issue, you may find an answer in already closed issues**: +https://github.com/bootstrap-styled/ra-ui/issues?q=is%3Aissue+is%3Aclosed + +## Issue Type + +- [ ] [Bug](https://github.com/bootstrap-styled/ra-ui/blob/master/.github/CONTRIBUTING.md#bug-reports) +- [ ] [Feature](https://github.com/bootstrap-styled/ra-ui/blob/master/.github/CONTRIBUTING.md#feature-requests) + +## Description + +(Add images if possible) + +## Steps to reproduce + +(Add link to a demo on https://jsfiddle.net or similar if possible) + +# Versions + +- Node/NPM: +- OS: +- ra-ui: + diff --git a/CONTRIBUTING.md b/.github/PULL_REQUEST_TEMPLATE.md similarity index 60% rename from CONTRIBUTING.md rename to .github/PULL_REQUEST_TEMPLATE.md index ec79a5d..71ae9cf 100644 --- a/CONTRIBUTING.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,18 +1,15 @@ -# Contributing +## ra-ui -When contributing to this repository, please first discuss the change you wish to make via issue, -email, or any other method with the owners of this repository before making a change. +Thank you for contributing! Please take a moment to review our [**contributing guidelines**](https://github.com/bootstrap-styled/ra-ui/blob/master/.github/CONTRIBUTING.md) +to make the process easy and effective for everyone involved. **Please open an issue** before embarking on any significant pull request, especially those that add a new library or change existing tests, otherwise you risk spending a lot of time working -on something that might not end up being merged into the project. - -Please note we have a [code of conduct](./CODE_OF_CONDUCT.md), please follow it in all your interactions with the project. - -## Pull Request Process +on something that might not end up being merged into the project. Before opening a pull request, please ensure: +- [ ] You have followed our [**contributing guidelines**](https://github.com/bootstrap-styled/ra-ui/blob/master/.github/CONTRIBUTING.md) - [ ] Double-check your branch is based on `dev` and targets `dev` - [ ] Your are doing semantic commit message using [commitizen](https://github.com/commitizen/cz-cli) and our [commit message convention](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines) - [ ] Pull request has tests (we are going for 100% coverage!) @@ -20,4 +17,7 @@ Before opening a pull request, please ensure: - [ ] Documentation is updated (if necessary) - [ ] Description explains the issue/use-case resolved and auto-closes related issues -Be kind to code reviewers, please try to keep pull requests as small and focused as possible : +Be kind to code reviewers, please try to keep pull requests as small and focused as possible :) + +**IMPORTANT**: By submitting a patch, you agree to allow the project +owners to license your work under the terms of the [MIT License](https://github.com/bootstrap-styled/ra-ui/blob/master/LICENSE.md). diff --git a/.github/lock.yml b/.github/lock.yml new file mode 100644 index 0000000..d3604ae --- /dev/null +++ b/.github/lock.yml @@ -0,0 +1,38 @@ +# Configuration for lock-threads - https://github.com/dessant/lock-threads + +# Number of days of inactivity before a closed issue or pull request is locked +daysUntilLock: 365 + +# Skip issues and pull requests created before a given timestamp. Timestamp must +# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable +skipCreatedBefore: false + +# Issues and pull requests with these labels will not be locked. Set to `[]` to disable +exemptLabels: [] + +# Label to add before locking, such as `outdated`. Set to `false` to disable +lockLabel: false + +# Comment to post before locking. Set to `false` to disable +lockComment: > + This thread has been automatically locked since there has not been + any recent activity after it was closed. Please open a new issue for + related bugs. + +# Assign `resolved` as the reason for locking. Set to `false` to disable +setLockReason: true + +# Limit to only `issues` or `pulls` +# only: issues + +# Optionally, specify configuration settings just for `issues` or `pulls` +# issues: +# exemptLabels: +# - help-wanted +# lockLabel: outdated + +# pulls: +# daysUntilLock: 30 + +# Repository to extend settings from +# _extends: repo diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 0294e61..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,76 +0,0 @@ -image: kopaxgroup/node10-jdk8-flyway4-sonarscanner2-docker17-debian - -before_script: - - npx @yeutech-lab/rollup-umd-ci-before-script - -stages: - - build - - test - - release - - deploy - -# Job: Build -build: - stage: build - script: - - npx @yeutech/rollup-umd-ci-build - cache: - key: ${CI_BUILD_REF_NAME} - paths: - - node_modules/ - artifacts: - when: on_success - name: "${CI_PROJECT_PATH}-${CI_PIPELINE_ID}-${CI_COMMIT_REF_NAME}" - untracked: true - expire_in: 1 hour - paths: - - . - only: - - tags - - dev - - master - tags: - - docker - -# Job: Test -test: - stage: test - coverage: '/All files[^|]*\|\s*[\d.]*\s*\|\s*[\d.]*\s*\|\s*[\d.]*\s*\|\s*([\d.]*)\s*\|\s*/' - script: - - npx @yeutech/rollup-umd-ci-test - dependencies: - - build - only: - - tags - - dev - - master - tags: - - docker - -# Job: Release -release: - stage: release - script: - - npx @yeutech/rollup-umd-ci-release - dependencies: - - build - only: - - master - tags: - - docker - -# Pages -pages: - stage: deploy - script: - - npm install --prefix examples/demo - - npm run build --prefix examples/demo - - npx @yeutech/rollup-umd-ci-deploy - - mv examples/demo/build public/demo - artifacts: - paths: - - public - only: - - tags - tags: - - docker diff --git a/.gitlab/issue_templates/Bug.md b/.gitlab/issue_templates/Bug.md deleted file mode 100644 index 93dabbe..0000000 --- a/.gitlab/issue_templates/Bug.md +++ /dev/null @@ -1,52 +0,0 @@ -### Summary - -(Summarize the bug encountered concisely) - -### Steps to reproduce - -(How one can reproduce the issue - this is very important) - -### Example Project - -(If possible, please create an example project here that exhibits the problematic behaviour, and link to it here in the bug report) - -### What is the current *bug* behavior? - -(What actually happens) - -### What is the expected *correct* behavior? - -(What you should see instead) - -### Relevant logs and/or screenshots - -(Paste any relevant logs - please use code blocks (```) to format console output, -logs, and code as it's very hard to read otherwise.) - -#### Results of npm test - -
-Expand for output related to npm test -
-
-`npm test`
-
-
-
- -#### Results of npm run build - -
-Expand for output related to npm run build -
-
-`npm run build`
-
-
-
- -### Possible fixes - -(If you can, link to the line of code that might be responsible for the problem) - -/label ~bug diff --git a/.gitlab/issue_templates/Documentation.md b/.gitlab/issue_templates/Documentation.md deleted file mode 100644 index 069ff0a..0000000 --- a/.gitlab/issue_templates/Documentation.md +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - -- [ ] Documents Feature A -- [ ] Follow-up from: #XXX, !YYY - -## New doc or update? - - - -- [ ] New documentation -- [ ] Update existing documentation - -## Checklists - -### Product Manager - -- [ ] Add the correct labels -- [ ] Add the correct milestone -- [ ] Indicate the correct document/directory for this feature -- [ ] Fill the doc blurb below - -#### Documentation blurb - -- Doc **title** - - - -- Feature **overview/description** - - - -- Feature **use cases** - - - -### Developer - -- [ ] Copy the doc blurb above and paste it into the doc -- [ ] Write the tutorial - explain how to use the feature -- [ ] Submit the MR using the appropriate MR description template - -/label ~Documentation diff --git a/.gitlab/issue_templates/Feature proposal.md b/.gitlab/issue_templates/Feature proposal.md deleted file mode 100644 index 6a8bd8c..0000000 --- a/.gitlab/issue_templates/Feature proposal.md +++ /dev/null @@ -1,23 +0,0 @@ -### Problem to solve - - - -### Target audience - - - -### Further details - - - -### Proposal - - - -### What does success look like, and how can we measure that? - - - -### Links / references - -/label ~"feature proposal" diff --git a/.gitlab/merge_request_templates/Change documentation location.md b/.gitlab/merge_request_templates/Change documentation location.md deleted file mode 100644 index a6b3764..0000000 --- a/.gitlab/merge_request_templates/Change documentation location.md +++ /dev/null @@ -1,26 +0,0 @@ - - - - -## What does this MR do? - - - -## Related issues - - - -Closes - -## Moving docs to a new location? - -Read the guidelines: -https://docs.gitlab.com/ce/development/documentation/index.html#changing-document-location - -- [ ] Make sure the old link is not removed and has its contents replaced with a link to the new location. -- [ ] Make sure internal links pointing to the document in question are not broken. -- [ ] Search and replace any links referring to old docs in the app. -- [ ] Update the link in `styleguide/styleguide.ext.json` (if applicable) -- [ ] Ping one of the technical writers for review. - -/label ~Documentation diff --git a/.gitlab/merge_request_templates/Documentation.md b/.gitlab/merge_request_templates/Documentation.md deleted file mode 100644 index d8a9464..0000000 --- a/.gitlab/merge_request_templates/Documentation.md +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - -## What does this MR do? - - - -## Related issues - - - -Closes - -## Author's checklist - -- [ ] Apply the correct labels and milestone -- [ ] Crosslink the document from the higher-level index -- [ ] Crosslink the document from other subject-related docs -- [ ] Section moving tiers? Make sure the change is also reflected in `styleguide/styleguide.ext.json` - -## Review checklist - -- [ ] Your team's review (required) -- [ ] PM's review (recommended, but not a blocker) -- [ ] Technical writer's review (required) - -/label ~Documentation diff --git a/.gitlab/merge_request_templates/Merge request.md b/.gitlab/merge_request_templates/Merge request.md deleted file mode 100644 index 163b3d1..0000000 --- a/.gitlab/merge_request_templates/Merge request.md +++ /dev/null @@ -1,29 +0,0 @@ - - -## What does this MR do? - - - -## Related issues - - - -Closes - -## Author's checklist - -- [ ] You have followed our **contributing guidelines** -- [ ] Double-check your branch is based on `dev` and targets `dev` -- [ ] Your are doing semantic commit message using [commitizen](https://github.com/commitizen/cz-cli) and our [commit message convention](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines) -- [ ] Merge request has tests (we are going for 100% coverage!) -- [ ] Code is well-commented, linted and follows project conventions -- [ ] Documentation is updated (if necessary) -- [ ] Description explains the issue/use-case resolved and auto-closes related issues - -## Review checklist - -- [ ] Your team's review (required) -- [ ] PM's review (recommended, but not a blocker) -- [ ] Technical writer's review (required) - -/label ~WaitingForReview diff --git a/README.md b/README.md index 8657d58..c7001d5 100644 --- a/README.md +++ b/README.md @@ -1,32 +1,50 @@ # ra-ui -Library of components for backoffice type react-admin.. +[![Build Status](https://travis-ci.org/bootstrap-styled/ra-ui.svg?branch=master)](https://travis-ci.org/bootstrap-styled/ra-ui) +[![npm Version](https://img.shields.io/npm/v/@bootstrap-styled/ra-ui.svg?style=flat)](https://www.npmjs.com/package/@bootstrap-styled/ra-ui) +[![License](https://img.shields.io/npm/l/@bootstrap-styled/ra-ui.svg?style=flat)](https://www.npmjs.com/package/@bootstrap-styled/ra-ui) +[![NPM monthly downloads](https://img.shields.io/npm/dm/@bootstrap-styled/ra-ui.svg?style=flat)](https://npmjs.org/package/@bootstrap-styled/ra-ui) +[![NPM total downloads](https://img.shields.io/npm/dt/@bootstrap-styled/ra-ui.svg?style=flat)](https://npmjs.org/package/@bootstrap-styled/ra-ui) +[![npm Version](https://img.shields.io/node/v/@bootstrap-styled/ra-ui.svg?style=flat)](https://www.npmjs.com/package/@bootstrap-styled/ra-ui) +[![Module formats](https://img.shields.io/badge/module%20formats-umd%2C%20cjs%2C%20esm-green.svg?style=flat)](https://www.npmjs.com/package/@bootstrap-styled/ra-ui) +[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.github.bootstrap-styled.ra-ui&metric=coverage)](https://sonarcloud.io/dashboard?id=com.github.bootstrap-styled.ra-ui) [![Quality gate status](https://sonarcloud.io/api/project_badges/measure?project=com.github.bootstrap-styled.ra-ui&metric=alert_status)](https://sonarcloud.io/dashboard?id=com.github.bootstrap-styled.ra-ui) +[![gitter](https://badges.gitter.im/bootstrap-styled/bootstrap-styled.svg)](https://gitter.im/bootstrap-styled) -[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) -[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) - -**Master** - -[![build status](https://module.kopaxgroup.com/bootstrap-styled/ra-ui/badges/master/build.svg)](https://module.kopaxgroup.com/bootstrap-styled/ra-ui/commits/master) -[![coverage report](https://module.kopaxgroup.com/bootstrap-styled/ra-ui/badges/master/coverage.svg)](https://module.kopaxgroup.com/bootstrap-styled/ra-ui/commits/master) - -**Dev** - -[![build status](https://module.kopaxgroup.com/bootstrap-styled/ra-ui/badges/dev/build.svg)](https://module.kopaxgroup.com/bootstrap-styled/ra-ui/commits/dev) -[![coverage report](https://module.kopaxgroup.com/bootstrap-styled/ra-ui/badges/dev/coverage.svg)](https://module.kopaxgroup.com/bootstrap-styled/ra-ui/commits/dev) +Library of components for backoffice type react-admin. ## Table of Contents - [Documentation](#documentation) - - [License](#license) + - [Contributors](#contributors) + - [Contributing](#contributing) + - [License MIT](#license-mit) --- - + ## Documentation - - View ra-ui [HTML documentation](https://bootstrap-styled.yeutech.com/ra-ui) *(require access)* +Read [ra-ui documentation](https://bootstrap-styled.github.io/ra-ui). + +## Contributors + +We are grateful to the contributors for their ideas and collaboration: +- [Dimitri Kopriwa](https://github.com/kopax) + + +## Contributing + +If you want to contribute to ra-ui please see our [contributing and community guidelines](https://github.com/bootstrap-styled/ra-ui/blob/master/.github/CONTRIBUTING.md), they\'ll help you get set up locally and explain the whole process. + +Please also note that all repositories under the bootstrap-styled organization follow our [Code of Conduct](https://github.com/bootstrap-styled/ra-ui/blob/master/CODE_OF_CONDUCT.md), make sure to review and follow it. + +## License MIT + +Copyright 2019 Yeutech Company Limited + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -## License +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -Copyright (c) 2019 Yeutech Company Limited. Made with love in Vietnam with [rollup-umd](https://module.kopaxgroup.com/dev-tools/rollup-umd/tags/v1.4.6) 1.4.6 diff --git a/docs/introduction.md b/docs/introduction.md index d68cda6..573b8f1 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -1,10 +1,8 @@ -[![build status]($CI_PROJECT_URL/badges/v$PACKAGE_VERSION/build.svg)]($CI_PROJECT_URL/commits/v$PACKAGE_VERSION) -[![coverage report]($CI_PROJECT_URL/badges/v$PACKAGE_VERSION/coverage.svg)]($CI_PROJECT_URL/commits/v$PACKAGE_VERSION) +[![Build Status](https://travis-ci.org/bootstrap-styled/ra-ui.svg?branch=master)](https://travis-ci.org/bootstrap-styled/ra-ui) +[![npm Version](https://img.shields.io/npm/v/@bootstrap-styled/ra-ui.svg?style=flat)](https://www.npmjs.com/package/@bootstrap-styled/ra-ui) +[![License](https://img.shields.io/npm/l/@bootstrap-styled/ra-ui.svg?style=flat)](https://www.npmjs.com/package/@bootstrap-styled/ra-ui) +[![npm Version](https://img.shields.io/node/v/@bootstrap-styled/ra-ui.svg?style=flat)](https://www.npmjs.com/package/@bootstrap-styled/ra-ui) +[![Module formats](https://img.shields.io/badge/module%20formats-umd%2C%20cjs%2C%20esm-green.svg?style=flat)](https://www.npmjs.com/package/@bootstrap-styled/ra-ui) +[![gitter](https://badges.gitter.im/bootstrap-styled/bootstrap-styled.svg)](https://gitter.im/bootstrap-styled) -![image](https://img.shields.io/badge/version-$PACKAGE_VERSION-green.svg) -![image](https://img.shields.io/badge/node-$NODE_VERSION-brightgreen.svg) -![image](https://img.shields.io/badge/npm-$NPM_VERSION-red.svg) -![image](https://img.shields.io/badge/PRs-welcome-brightgreen.svg) -![image]($IMG_SHIELD_PUBLISHING) - -$PACKAGE_DESCRIPTION. +$PACKAGE_DESCRIPTION diff --git a/package.json b/package.json index 612da29..3806891 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.17", "description": "Library of components for backoffice type react-admin.", "main": "lib/index.js", - "homepage": "https://bootstrap-styled.yeutech.com/ra-ui", + "homepage": "https://bootstrap-styled.github.io/ra-ui", "engines": { "node": ">=8" }, @@ -37,15 +37,14 @@ "styleguide": "styleguidist server", "styleguide:build": "styleguidist build", "predemo": "[ -d examples/demo/node_modules ] || npm install --prefix examples/demo", - "demo": "npm start --prefix examples/demo", - "postinstall": "node -e \"console.log('\\u001b[31m@bootstrap-styled/ra-ui is deprecated, use @bootstrap-styled/ra-ui instead.')\" || exit 0" + "demo": "npm start --prefix examples/demo" }, "repository": { "type": "git", - "url": "https://module.kopaxgroup.com/bootstrap-styled/ra-ui.git" + "url": "https://github.com/bootstrap-styled/ra-ui.git" }, "bugs": { - "url": "https://module.kopaxgroup.com/bootstrap-styled/ra-ui/issues" + "url": "https://github.com/bootstrap-styled/ra-ui/issues" }, "keywords": [ "bootstrap", @@ -232,16 +231,10 @@ "@rollup-umd/ncu": "^1.0.6", "@rollup-umd/rollup": "^1.0.8", "@semantic-release/changelog": "^3.0.2", - "@semantic-release/exec": "^3.3.2", "@semantic-release/git": "^7.0.8", - "@semantic-release/gitlab": "^3.1.2", + "@semantic-release/github": "^5.2.10", "@semantic-release/npm": "^5.1.4", - "@yeutech/rollup-umd-ci-build": "^1.0.5", - "@yeutech/rollup-umd-ci-deploy": "^1.0.9", - "@yeutech/rollup-umd-ci-release": "^1.0.15", - "@yeutech/rollup-umd-ci-release-transitive": "^1.2.9", - "@yeutech/rollup-umd-ci-test": "^1.0.6", - "@yeutech/rollup-umd-scripts": "^2.1.1", + "@yeutech-lab/documentation": "^2.0.0", "babel-eslint": "^10.0.1", "babel-jest": "^24.3.1", "babel-loader": "8.0.5", @@ -322,33 +315,20 @@ "@bootstrap-styled/redux": "^1.1.2" }, "publishConfig": { - "access": "public", "registry": "https://registry.npmjs.org", - "tag": "latest" + "tag": "latest", + "access": "public" }, "release": { "branch": "master", - "success": false, - "fail": false, "npmPublish": true, "verifyConditions": [ - { - "path": "@semantic-release/exec", - "cmd": "npx @yeutech/rollup-umd-ci-release-transitive verify" - }, "@semantic-release/changelog", "@semantic-release/npm", "@semantic-release/git", - { - "path": "@semantic-release/gitlab", - "gitlabUrl": "https://module.kopaxgroup.com" - } + "@semantic-release/github" ], "prepare": [ - { - "path": "@semantic-release/exec", - "cmd": "npx @yeutech/rollup-umd-ci-release-transitive prepare" - }, "@semantic-release/changelog", "@semantic-release/npm", { @@ -365,12 +345,49 @@ "publish": [ "@semantic-release/npm", { - "path": "@semantic-release/gitlab", - "gitlabUrl": "https://module.kopaxgroup.com" - }, - { - "path": "@semantic-release/exec", - "cmd": "npx @yeutech/rollup-umd-ci-release-transitive publish ${nextRelease.version}" + "path": "@semantic-release/github", + "assets": [ + { + "path": "package.json" + }, + { + "path": "LICENSE.md" + }, + { + "path": "CHANGELOG.md" + }, + { + "path": "README.md" + }, + { + "path": "dist/*.esm.js", + "label": "ES module" + }, + { + "path": "dist/*.esm.js.map", + "label": "ES module source map" + }, + { + "path": "dist/*.min.js", + "label": "UMD compressed" + }, + { + "path": "dist/*.min.js.map", + "label": "UMD compressed source map" + }, + { + "path": "dist/*.cjs.min.js", + "label": "CJS compressed" + }, + { + "path": "dist/*.cjs.min.js.map", + "label": "CJS compressed source map" + }, + { + "path": "lib/*.js", + "label": "CJS folder" + } + ] } ] }, @@ -433,22 +450,5 @@ "declinationId": "bs-redux", "contributors": [ "Dimitri Kopriwa (https://github.com/kopax)" - ], - "transitive": { - "name": "ra-ui", - "scope": "bootstrap-styled", - "scopedName": "@bootstrap-styled/ra-ui", - "homepage": "https://bootstrap-styled.github.io/ra-ui", - "repository": { - "type": "git", - "url": "https://github.com/bootstrap-styled/ra-ui.git" - }, - "bugs": { - "url": "https://github.com/bootstrap-styled/ra-ui/issues" - }, - "publishConfig": { - "access": "public", - "registry": "https://registry.npmjs.org" - } - } + ] } diff --git a/styleguide/prepare.sh b/styleguide/prepare.sh index 7b147a3..e6cadd7 100755 --- a/styleguide/prepare.sh +++ b/styleguide/prepare.sh @@ -10,10 +10,10 @@ npx @rollup-umd/documentation-cli variable \ PACKAGE_PEERS="$(npx rollup-umd-scripts peer npm-install-cmd)" \ NODE_VERSION=$(node --version) \ NPM_VERSION=$(npm --version) \ - CI_REPOSITORY_URL=${CI_REPOSITORY_URL} \ - CI_PROJECT_URL=${CI_PROJECT_URL} \ - CI_PROJECT_NAMESPACE=${CI_PROJECT_NAMESPACE} \ - CI_PROJECT_NAME=${CI_PROJECT_NAME} \ + CI_REPOSITORY_URL="https://github.com/${TRAVIS_REPO_SLUG}.git" \ + CI_PROJECT_URL="https://github.com/${TRAVIS_REPO_SLUG}" \ + CI_PROJECT_NAMESPACE=$(echo $TRAVIS_REPO_SLUG | awk -F / '{print $1}') \ + CI_PROJECT_NAME=$(echo $TRAVIS_REPO_SLUG | awk -F / '{print $2}') \ IMG_SHIELD_PUBLISHING=$(npx rollup-umd-scripts publish status --badge) if [[ "$DECLINATION_ID" = cli ]]; then diff --git a/styleguide/styleguide.ext.json b/styleguide/styleguide.ext.json index c412033..d0aa594 100644 --- a/styleguide/styleguide.ext.json +++ b/styleguide/styleguide.ext.json @@ -61,5 +61,9 @@ "name": "Code of conduct", "content": "CODE_OF_CONDUCT.md" } - ] -} + ], + "ribbon": { + "url": "https://github.com/bootstrap-styled/ra-ui", + "text": "Fork us on GitHub" + } +} \ No newline at end of file