Skip to content

Commit

Permalink
change tmp dir to package-cache / optimize build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dmstern committed Nov 26, 2018
1 parent 7235590 commit 174a3a1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
node_modules
/dist
/tmp
/package-cache

# local env files
.env.local
Expand Down
37 changes: 14 additions & 23 deletions package-lock.json

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

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"name": "npmfrog",
"version": "1.0.0-alpha.4",
"scripts": {
"start": "pm2 serve --name \"frog-ui-static\" dist/webui 8000 && pm2 start ecosystem.config.js --only frog-server",
"start": "pm2 serve --name \"frog-ui-static\" dist/webui/ 8000 && pm2 start ecosystem.config.js --only frog-server",
"dev": "npm run copy && pm2 start",
"dev-local": "npm run copy && pm2 start --env local",
"copy": "cp-cli server/mock dist/server/mock",
"compile": "cd server && tsc",
"build": "npm run stop && npm run compile && npm run copy && vue-cli-service build --dest dist/webui",
"build": "npm stop && npm run compile && npm run copy && vue-cli-service build --dest dist/webui",
"zip": "bestzip tmp/webui.zip dist/*",
"logs": "pm2 logs",
"stop": "pm2 stop ecosystem.config.js",
"stop": "pm2 stop /frog-.*/",
"pre-release": "release-it --preRelease=alpha"
},
"dependencies": {
Expand Down Expand Up @@ -61,7 +61,6 @@
},
"files": [
"dist",
"server",
"ecosystem.config.js",
".sample.npmfrogrc.json"
],
Expand Down
2 changes: 1 addition & 1 deletion server/artifactory-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { PackagesResponse } from '../types/PackageResponse';

import config from './config-service.js';
const repoKey = config.artifactory.repoKey;
const tmpDir = `${__dirname}/tmp`;
const tmpDir = `${__dirname}/../../package-cache`;
const packageDetailCache = {};

process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
Expand Down

0 comments on commit 174a3a1

Please sign in to comment.