Skip to content

Commit b06247d

Browse files
authored
Merge pull request #4 from jhomarolo/main
change library to herbs organization
2 parents f96a84a + 4e5dc0d commit b06247d

11 files changed

+18157
-157
lines changed

.eslintrc.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"extends": ["prettier"],
3+
"plugins": ["prettier"],
4+
"env": {
5+
"commonjs": true,
6+
"node": true,
7+
"es6": false
8+
},
9+
"globals": {
10+
"Atomics": "readonly",
11+
"SharedArrayBuffer": "readonly"
12+
},
13+
"parserOptions": {
14+
"ecmaVersion": 2018
15+
},
16+
"rules": {
17+
"semi": ["error", "never"],
18+
"func-names": 0,
19+
"no-param-reassign": 0,
20+
"no-multi-str": 0,
21+
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
22+
"no-console": ["error", { "allow": ["tron"] }],
23+
"consistent-return": 0
24+
}
25+
}

.github/workflows/ci.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: CI
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
10+
jobs:
11+
build:
12+
if: "!contains(github.event.head_commit.message, 'skip ci')"
13+
runs-on: ubuntu-18.04
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Use Node.js (12.16.2)
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: '12.16.2'
21+
22+
- name: Install Packages
23+
run: npm ci
24+
25+
- name: Installing dependencies
26+
run: npm i --ignore-scripts
27+
28+
- name: Build Step
29+
env:
30+
CI: ""
31+
run: npm run build --if-present
32+
33+
- name: Running Linter - ESLint
34+
run: npm run lint
35+
36+
- name: Run Semantic Release
37+
run: npx semantic-release
38+
env:
39+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
40+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/on_pull_request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI build
22

33
on:
44
pull_request:
5-
branches: [master]
5+
branches: [main]
66

77
jobs:
88
build:

.github/workflows/on_push.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI build
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main]
66

77
jobs:
88
build:

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,5 @@ dist
114114
.yarn/build-state.yml
115115
.pnp.*
116116
.editorconfig
117-
/.eslintrc.json
118117
.prettierrc
119118
.DS_Store

.releaserc.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"branches": "main",
3+
"repositoryUrl": "https://github.com/herbsjs/herbs2repl",
4+
"debug": "true",
5+
"plugins": [
6+
"@semantic-release/commit-analyzer",
7+
"@semantic-release/release-notes-generator",
8+
"@semantic-release/npm",
9+
"@semantic-release/github",
10+
[
11+
"@semantic-release/changelog",
12+
{
13+
"changelogFile": "CHANGELOG.md"
14+
}
15+
],
16+
[
17+
"@semantic-release/git",
18+
{
19+
"assets": ["package.json", "package-lock.json", "CHANGELOG.md"],
20+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
21+
}
22+
]
23+
]
24+
}

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 1.0.0 (2021-06-23)
2+
3+
4+
### Features
5+
6+
* change library to herbs organization ([7db11f0](https://github.com/herbsjs/gotu/commit/7db11f0ee1661431fe2b3732cbff7bb59e067611))

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ Herbs REPL
44
![Herbs REPL](./doc/render1607020056527.gif)
55

66
### Installing
7-
$ npm install herbs2repl
7+
```
8+
$ npm install @herbsjs/herbs2repl
9+
```
810

911
### Using
1012

@@ -22,10 +24,10 @@ module.exports = (injection) => {
2224
`srs/infra/repl/index.js`:
2325
```javascript
2426
const usecases = require('../../domain/usecases/_uclist')
25-
const repl = require('herbs2repl')
27+
const repl = require('@herbsjs/herbs2repl')
2628

2729
const main = async (injection) => {
28-
30+
2931
// list of all use cases, initialized
3032
const ucs = usecases(injection)
3133

0 commit comments

Comments
 (0)