Skip to content

Commit

Permalink
feat: support custom registry (#16)
Browse files Browse the repository at this point in the history
* feat: support custom registry

Allows setting the registry url when adding a new user alias

* test: update tests

* chore: update packages

* docs: outline  option

* chore: update eslint config
  • Loading branch information
trs authored May 10, 2019
1 parent 45533e2 commit af74b5d
Show file tree
Hide file tree
Showing 15 changed files with 12,513 additions and 230 deletions.
30 changes: 17 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,52 +3,56 @@ version: 2
jobs:
build:
docker:
- image: circleci/node:8
- image: circleci/node:10
steps:
- checkout
- restore_cache:
key: npm-install-{{ checksum "package.json" }}
key: npm-install-{{ checksum "package-lock.json" }}
- run:
name: Install
command: npm install
- save_cache:
key: npm-install-{{ checksum "package.json" }}
key: npm-install-{{ checksum "package-lock.json" }}
paths:
- ~/.npm/cacache
- persist_to_workspace:
root: .
paths:
- node_modules

lint:
docker:
- image: circleci/node:8
- image: circleci/node:10
steps:
- checkout
- restore_cache:
key: npm-install-{{ checksum "package.json" }}
- attach_workspace:
at: .
- run:
name: Lint
command: npm run lint

test:
docker:
- image: circleci/node:8
- image: circleci/node:10
steps:
- checkout
- restore_cache:
key: npm-install-{{ checksum "package.json" }}
- attach_workspace:
at: .
- run:
name: Test
command: npm run test
when: always

release:
docker:
- image: circleci/node:8
- image: circleci/node:10
steps:
- checkout
- restore_cache:
key: npm-install-{{ checksum "package.json" }}
- attach_workspace:
at: .
- deploy:
name: Semantic Release
command: npx semantic-release@15
command: npx semantic-release

workflows:
version: 2
Expand Down
160 changes: 0 additions & 160 deletions .config/eslintrc.json

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ $ npm install npmum -g
### Add

Prompts you for a token to add under the username alias.
A custom registry can be defined using `-r`/`--registry`
You can also provide the token via `-t`/`--token`.

```
$ npmum add <user>[ --token <token>]
$ npmum add <user>[ --token <token>][ --registry <url>]
```

### Use
Expand Down
Loading

0 comments on commit af74b5d

Please sign in to comment.