Skip to content

Commit

Permalink
simplify build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dmstern committed Sep 3, 2018
1 parent fe26b18 commit 93cdaa2
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 42 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,36 @@ npmFrog

A nice npmjs.org-like web interface for jFrog Artifactory

## Project setup
## Installation

```bash
npm install
npm i -g npmfrog
```

Duplicate the file `.SAMPLE.npmfrogrc.json` and rename it to `.npmfrogrc.json` (you either leave it in the project directory or put it in your home directory).

## Start App (Server and WebUI)
## Start App

### Prod

```bash
npm start
```

With local environment (no internet connection necessary):
### Dev

```bash
npm run dev
```

With local environment (no internet connection necessary):

```bash
npm run dev-local
```

To see the logs, run

```bash
pm2 logs
npm run logs
```
53 changes: 21 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"name": "npmfrog",
"version": "1.0.0-alpha.2",
"scripts": {
"start": "pm2 start frog-ui frog-server",
"dev": "pm2 start frog-ui frog-server --env local",
"start": "pm2 serve --name \"frog-ui-static\" dist 8000 && pm2 start ecosystem.config.js --only frog-server",
"dev": "pm2 start",
"dev-local": "pm2 start --env local",
"build": "npm run stop && vue-cli-service build",
"zip": "bestzip tmp/webui.zip dist/*",
"prod": "pm2 serve --name \"frog-ui-static\" dist 8000 && pm2 start ecosystem.config.js --only frog-server",
"stop": "pm2 stop ecosystem.config.js frog-ui-static",
"release": "release-it --preRelease=alpha"
"logs": "pm2 logs",
"stop": "pm2 stop ecosystem.config.js",
"pre-release": "release-it --preRelease=alpha"
},
"dependencies": {
"axios": "^0.18.0",
Expand Down

0 comments on commit 93cdaa2

Please sign in to comment.