Skip to content

Commit f4bbf3a

Browse files
@jotadevelopersergiohgz
authored andcommitted
feat(readme): import readme package
- 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>
1 parent e5da0fd commit f4bbf3a

File tree

20 files changed

+7709
-0
lines changed

20 files changed

+7709
-0
lines changed

core/readme/.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": [["@verdaccio", {"typescript": true}]]
3+
}

core/readme/.circleci/config.yml

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
version: 2
2+
3+
aliases:
4+
- &defaults
5+
working_directory: ~/readme-verdaccio
6+
- &node11_executor
7+
docker:
8+
- image: circleci/node:11.10.1
9+
- &node8_executor
10+
docker:
11+
- image: circleci/node:8
12+
- &node10_executor
13+
docker:
14+
- image: circleci/node:10
15+
- &default_executor
16+
<<: *node10_executor
17+
- &repo_key
18+
repo-{{ .Branch }}-{{ .Revision }}
19+
- &coverage_key
20+
coverage-{{ .Branch }}-{{ .Revision }}
21+
- &base_config_key
22+
base-config-{{ .Branch }}-{{ .Revision }}
23+
- &yarn_cache_key
24+
yarn-sha-{{ checksum "yarn.lock" }}
25+
- &restore_repo
26+
restore_cache:
27+
keys:
28+
- *repo_key
29+
- &ignore_non_dev_branches
30+
filters:
31+
tags:
32+
only: /.*/
33+
branches:
34+
ignore:
35+
- /release\/.*/
36+
- &execute_on_release
37+
filters:
38+
tags:
39+
only: /(v)?[0-9]+(\.[0-9]+)*/
40+
branches:
41+
ignore:
42+
- /.*/
43+
44+
jobs:
45+
prepare:
46+
<<: *defaults
47+
<<: *default_executor
48+
steps:
49+
- *restore_repo
50+
- checkout
51+
- restore_cache:
52+
key: *base_config_key
53+
- run:
54+
name: 'Base environment setup'
55+
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
56+
- save_cache:
57+
key: *base_config_key
58+
paths:
59+
- ~/.npmrc
60+
- ~/.gitconfig
61+
- restore_cache:
62+
key: *yarn_cache_key
63+
- run:
64+
name: Install Js dependencies
65+
command: yarn install --no-progress --registry https://registry.verdaccio.org --no-lockfile
66+
- run:
67+
name: Build project
68+
command: yarn run build
69+
- save_cache:
70+
key: *yarn_cache_key
71+
paths:
72+
- ~/.yarn
73+
- ~/.cache/yarn
74+
- node_modules
75+
- save_cache:
76+
key: *repo_key
77+
paths:
78+
- ~/readme-verdaccio
79+
80+
test_node11:
81+
<<: *defaults
82+
<<: *node11_executor
83+
steps:
84+
- *restore_repo
85+
- run:
86+
name: Test with Node 11
87+
command: yarn run test
88+
89+
test_node8:
90+
<<: *defaults
91+
<<: *node8_executor
92+
steps:
93+
- *restore_repo
94+
- run:
95+
name: Test with Node 8
96+
command: yarn test
97+
98+
test_node10:
99+
<<: *defaults
100+
<<: *node10_executor
101+
steps:
102+
- *restore_repo
103+
- run:
104+
name: Test with Node 10
105+
command: yarn run test
106+
- save_cache:
107+
key: *coverage_key
108+
paths:
109+
- coverage
110+
111+
coverage:
112+
<<: *defaults
113+
<<: *default_executor
114+
steps:
115+
- *restore_repo
116+
- restore_cache:
117+
key: *coverage_key
118+
- run:
119+
name: Publish coverage
120+
command: yarn run coverage:publish
121+
- store_artifacts:
122+
path: coverage/clover.xml
123+
prefix: tests
124+
- store_artifacts:
125+
path: coverage
126+
prefix: coverage
127+
- store_test_results:
128+
path: coverage/clover.xml
129+
130+
publish_package:
131+
<<: *defaults
132+
<<: *default_executor
133+
steps:
134+
- *restore_repo
135+
- restore_cache:
136+
key: *base_config_key
137+
- run:
138+
name: Publish
139+
command: yarn publish --access public
140+
141+
workflows:
142+
version: 2
143+
workflow:
144+
jobs:
145+
- prepare:
146+
<<: *ignore_non_dev_branches
147+
- test_node11:
148+
requires:
149+
- prepare
150+
<<: *ignore_non_dev_branches
151+
- test_node8:
152+
requires:
153+
- prepare
154+
<<: *ignore_non_dev_branches
155+
- test_node10:
156+
requires:
157+
- prepare
158+
<<: *ignore_non_dev_branches
159+
- coverage:
160+
requires:
161+
- test_node11
162+
- test_node8
163+
- test_node10
164+
<<: *ignore_non_dev_branches
165+
- publish_package:
166+
requires:
167+
- coverage
168+
<<: *execute_on_release

core/readme/.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Unix-style newlines with a newline ending every file
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
9+
# 2 space indentation
10+
[{.,}*.{js,yml,yaml}]
11+
indent_style = space
12+
indent_size = 2

core/readme/.eslintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
coverage/
3+
lib/
4+
tests-report/
5+
__fixtures__/
6+
.idea/
7+
**/node_modules/**
8+
**/__*-fixtures__/**

core/readme/.eslintrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": [
3+
"@verdaccio"
4+
],
5+
"rules": {
6+
"@typescript-eslint/no-var-requires": ["warn"],
7+
"@typescript-eslint/explicit-function-return-type": [0],
8+
"max-len": [0]
9+
}
10+
}

core/readme/.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
npm-debug.log
2+
.DS_Store
3+
4+
_storage/
5+
lib/
6+
node_modules/
7+
coverage/
8+
9+
# Istanbul
10+
.nyc*
11+
tests-report
12+
13+
# IDE
14+
.vscode/*
15+
.idea/
16+
*.log
17+
*.tar
18+
*.gz
19+
*.tmp-*
20+
package-lock.json

core/readme/.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## npm
2+
/*
3+
!lib/**/*
4+
!README.md

core/readme/.prettierrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"useTabs": false,
5+
"printWidth": 800,
6+
"tabWidth": 2,
7+
"bracketSpacing": true,
8+
"overrides": [
9+
{
10+
"files": "*.test.js",
11+
"options": {
12+
"semi": true
13+
}
14+
}
15+
]
16+
}

core/readme/.yarnrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
save-prefix ""
2+
registry "http://registry.npmjs.org/"

core/readme/CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Changelog
2+
3+
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.
4+
5+
### [1.0.4](https://github.com/verdaccio/readme/compare/v1.0.3...v1.0.4) (2019-06-22)
6+
7+
8+
### Bug Fixes
9+
10+
* update dependencies ([3316ccf](https://github.com/verdaccio/readme/commit/3316ccf))
11+
12+
13+
14+
### [1.0.3](https://github.com/verdaccio/readme/compare/v1.0.2...v1.0.3) (2019-05-15)
15+
16+
17+
### Bug Fixes
18+
19+
* **build:** lib folder as main ([e1ac882](https://github.com/verdaccio/readme/commit/e1ac882))
20+
21+
22+
23+
### [1.0.2](https://github.com/verdaccio/readme/compare/v1.0.1...v1.0.2) (2019-05-15)
24+
25+
26+
### Bug Fixes
27+
28+
* **build:** remove publish script ([9b36d5f](https://github.com/verdaccio/readme/commit/9b36d5f))
29+
30+
31+
32+
### 1.0.1 (2019-05-15)
33+
34+
35+
### Tests
36+
37+
* add basic test ([774a54d](https://github.com/verdaccio/readme/commit/774a54d))
38+
* add image test ([8c4639e](https://github.com/verdaccio/readme/commit/8c4639e))
39+
* add xss scenarios ([81e43e8](https://github.com/verdaccio/readme/commit/81e43e8))
40+
* add xss scenarios ([b211b97](https://github.com/verdaccio/readme/commit/b211b97))

0 commit comments

Comments
 (0)