Skip to content

Commit

Permalink
feat(readme): import readme package
Browse files Browse the repository at this point in the history
- chore: innitial commit

- chore: update circleci

- chore: add eslint

- test: add basic test

- chore: fix eslint

- chore: improve linting

- chore: update husky

- test: add image test

- test: add xss scenarios

- test: add xss scenarios

- chore: add codecov

- chore: add more scenarios

- chore: add license

- chore: add access public

- chore: add standard release

- chore(release): 1.0.1

- fix(build): remove publish script

- chore(release): 1.0.2

- fix(build): lib folder as main

- chore(release): 1.0.3

- chore: add more scenarios

- fix: update dependencies

- chore(release): 1.0.4

- chore(deps): bump lodash.template from 4.4.0 to 4.5.0

  Bumps [lodash.template](https://github.com/lodash/lodash) from 4.4.0 to 4.5.0.
  - [Release notes](https://github.com/lodash/lodash/releases)
  - [Commits](lodash/lodash@4.4.0...4.5.0)

  Signed-off-by: dependabot[bot] <support@github.com>
  • Loading branch information
@jotadeveloper authored and sergiohgz committed Jul 23, 2019
1 parent e5da0fd commit f4bbf3a
Show file tree
Hide file tree
Showing 20 changed files with 7,709 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/readme/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": [["@verdaccio", {"typescript": true}]]
}
168 changes: 168 additions & 0 deletions core/readme/.circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
version: 2

aliases:
- &defaults
working_directory: ~/readme-verdaccio
- &node11_executor
docker:
- image: circleci/node:11.10.1
- &node8_executor
docker:
- image: circleci/node:8
- &node10_executor
docker:
- image: circleci/node:10
- &default_executor
<<: *node10_executor
- &repo_key
repo-{{ .Branch }}-{{ .Revision }}
- &coverage_key
coverage-{{ .Branch }}-{{ .Revision }}
- &base_config_key
base-config-{{ .Branch }}-{{ .Revision }}
- &yarn_cache_key
yarn-sha-{{ checksum "yarn.lock" }}
- &restore_repo
restore_cache:
keys:
- *repo_key
- &ignore_non_dev_branches
filters:
tags:
only: /.*/
branches:
ignore:
- /release\/.*/
- &execute_on_release
filters:
tags:
only: /(v)?[0-9]+(\.[0-9]+)*/
branches:
ignore:
- /.*/

jobs:
prepare:
<<: *defaults
<<: *default_executor
steps:
- *restore_repo
- checkout
- restore_cache:
key: *base_config_key
- run:
name: 'Base environment setup'
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- save_cache:
key: *base_config_key
paths:
- ~/.npmrc
- ~/.gitconfig
- restore_cache:
key: *yarn_cache_key
- run:
name: Install Js dependencies
command: yarn install --no-progress --registry https://registry.verdaccio.org --no-lockfile
- run:
name: Build project
command: yarn run build
- save_cache:
key: *yarn_cache_key
paths:
- ~/.yarn
- ~/.cache/yarn
- node_modules
- save_cache:
key: *repo_key
paths:
- ~/readme-verdaccio

test_node11:
<<: *defaults
<<: *node11_executor
steps:
- *restore_repo
- run:
name: Test with Node 11
command: yarn run test

test_node8:
<<: *defaults
<<: *node8_executor
steps:
- *restore_repo
- run:
name: Test with Node 8
command: yarn test

test_node10:
<<: *defaults
<<: *node10_executor
steps:
- *restore_repo
- run:
name: Test with Node 10
command: yarn run test
- save_cache:
key: *coverage_key
paths:
- coverage

coverage:
<<: *defaults
<<: *default_executor
steps:
- *restore_repo
- restore_cache:
key: *coverage_key
- run:
name: Publish coverage
command: yarn run coverage:publish
- store_artifacts:
path: coverage/clover.xml
prefix: tests
- store_artifacts:
path: coverage
prefix: coverage
- store_test_results:
path: coverage/clover.xml

publish_package:
<<: *defaults
<<: *default_executor
steps:
- *restore_repo
- restore_cache:
key: *base_config_key
- run:
name: Publish
command: yarn publish --access public

workflows:
version: 2
workflow:
jobs:
- prepare:
<<: *ignore_non_dev_branches
- test_node11:
requires:
- prepare
<<: *ignore_non_dev_branches
- test_node8:
requires:
- prepare
<<: *ignore_non_dev_branches
- test_node10:
requires:
- prepare
<<: *ignore_non_dev_branches
- coverage:
requires:
- test_node11
- test_node8
- test_node10
<<: *ignore_non_dev_branches
- publish_package:
requires:
- coverage
<<: *execute_on_release
12 changes: 12 additions & 0 deletions core/readme/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# 2 space indentation
[{.,}*.{js,yml,yaml}]
indent_style = space
indent_size = 2
8 changes: 8 additions & 0 deletions core/readme/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
coverage/
lib/
tests-report/
__fixtures__/
.idea/
**/node_modules/**
**/__*-fixtures__/**
10 changes: 10 additions & 0 deletions core/readme/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": [
"@verdaccio"
],
"rules": {
"@typescript-eslint/no-var-requires": ["warn"],
"@typescript-eslint/explicit-function-return-type": [0],
"max-len": [0]
}
}
20 changes: 20 additions & 0 deletions core/readme/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
npm-debug.log
.DS_Store

_storage/
lib/
node_modules/
coverage/

# Istanbul
.nyc*
tests-report

# IDE
.vscode/*
.idea/
*.log
*.tar
*.gz
*.tmp-*
package-lock.json
4 changes: 4 additions & 0 deletions core/readme/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## npm
/*
!lib/**/*
!README.md
16 changes: 16 additions & 0 deletions core/readme/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"semi": true,
"singleQuote": true,
"useTabs": false,
"printWidth": 800,
"tabWidth": 2,
"bracketSpacing": true,
"overrides": [
{
"files": "*.test.js",
"options": {
"semi": true
}
}
]
}
2 changes: 2 additions & 0 deletions core/readme/.yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
save-prefix ""
registry "http://registry.npmjs.org/"
40 changes: 40 additions & 0 deletions core/readme/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.0.4](https://github.com/verdaccio/readme/compare/v1.0.3...v1.0.4) (2019-06-22)


### Bug Fixes

* update dependencies ([3316ccf](https://github.com/verdaccio/readme/commit/3316ccf))



### [1.0.3](https://github.com/verdaccio/readme/compare/v1.0.2...v1.0.3) (2019-05-15)


### Bug Fixes

* **build:** lib folder as main ([e1ac882](https://github.com/verdaccio/readme/commit/e1ac882))



### [1.0.2](https://github.com/verdaccio/readme/compare/v1.0.1...v1.0.2) (2019-05-15)


### Bug Fixes

* **build:** remove publish script ([9b36d5f](https://github.com/verdaccio/readme/commit/9b36d5f))



### 1.0.1 (2019-05-15)


### Tests

* add basic test ([774a54d](https://github.com/verdaccio/readme/commit/774a54d))
* add image test ([8c4639e](https://github.com/verdaccio/readme/commit/8c4639e))
* add xss scenarios ([81e43e8](https://github.com/verdaccio/readme/commit/81e43e8))
* add xss scenarios ([b211b97](https://github.com/verdaccio/readme/commit/b211b97))
21 changes: 21 additions & 0 deletions core/readme/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Verdaccio

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.

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.
21 changes: 21 additions & 0 deletions core/readme/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# @verdaccio/readme

📃 Readme markdown parser

[![verdaccio (latest)](https://img.shields.io/npm/v/@verdaccio/readme/latest.svg)](https://www.npmjs.com/package/@verdaccio/readme)
[![CircleCI](https://circleci.com/gh/verdaccio/readme/tree/master.svg?style=svg)](https://circleci.com/gh/verdaccio/readme/tree/master)
[![Known Vulnerabilities](https://snyk.io/test/github/verdaccio/readme/badge.svg?targetFile=package.json)](https://snyk.io/test/github/verdaccio/readme?targetFile=package.json)
[![codecov](https://codecov.io/gh/verdaccio/readme/branch/master/graph/badge.svg)](https://codecov.io/gh/verdaccio/readme)
[![backers](https://opencollective.com/verdaccio/tiers/backer/badge.svg?label=Backer&color=brightgreen)](https://opencollective.com/verdaccio)
[![discord](https://img.shields.io/discord/388674437219745793.svg)](http://chat.verdaccio.org/)
![MIT](https://img.shields.io/github/license/mashape/apistatus.svg)
[![node](https://img.shields.io/node/v/@verdaccio/readme/latest.svg)](https://www.npmjs.com/package/@verdaccio/readme)

> This package is already built-in in verdaccio
```
npm install @verdaccio/readme
```

## License
Verdaccio is [MIT licensed](https://github.com/verdaccio/readme/blob/master/LICENSE).
12 changes: 12 additions & 0 deletions core/readme/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* eslint comma-dangle: 0 */

module.exports = {
name: 'readme-jest',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
transform: {
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest'
},
verbose: true,
collectCoverage: true,
coveragePathIgnorePatterns: ['node_modules', 'fixtures']
};
1 change: 1 addition & 0 deletions core/readme/jestEnvironment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require.requireActual('babel/polyfill');
Loading

0 comments on commit f4bbf3a

Please sign in to comment.