Browse Source

添加缺少的依赖

yangc 8 years ago
parent
commit
531196bf18
3 changed files with 14 additions and 3 deletions
  1. 1 1
      build/zip.js
  2. 12 1
      package.json
  3. 1 1
      post.sh

+ 1 - 1
build/zip.js

@@ -10,5 +10,5 @@ archive.on('error', function (err) {
 })
 })
 
 
 archive.pipe(output)
 archive.pipe(output)
-archive.directory(path.join(__dirname, '../dist/'), '')
+archive.directory(path.join(__dirname, '../'), '')
 archive.finalize()
 archive.finalize()

+ 12 - 1
package.json

@@ -6,20 +6,31 @@
   "private": true,
   "private": true,
   "dependencies": {
   "dependencies": {
     "archiver": "^2.1.0",
     "archiver": "^2.1.0",
+    "archiver-utils": "^1.3.0",
+    "arr-diff": "^4.0.0",
+    "array-unique": "^0.3.2",
     "axios": "^0.15.3",
     "axios": "^0.15.3",
     "bezier-easing": "^2.0.3",
     "bezier-easing": "^2.0.3",
     "bootstrap": "^3.3.7",
     "bootstrap": "^3.3.7",
+    "braces": "^2.3.0",
     "cookiejar": "^2.1.1",
     "cookiejar": "^2.1.1",
     "cross-env": "^3.1.4",
     "cross-env": "^3.1.4",
     "element-ui": "^1.3.7",
     "element-ui": "^1.3.7",
+    "expand-brackets": "^2.1.4",
     "express": "^4.14.1",
     "express": "^4.14.1",
+    "extglob": "^2.0.2",
+    "filename-regex": "^2.0.1",
     "font-awesome": "^4.7.0",
     "font-awesome": "^4.7.0",
     "http-proxy-middleware": "^0.17.4",
     "http-proxy-middleware": "^0.17.4",
     "jsonp": "^0.2.1",
     "jsonp": "^0.2.1",
     "node-sass": "^4.5.3",
     "node-sass": "^4.5.3",
     "nuxt": "0.10.6",
     "nuxt": "0.10.6",
+    "object.omit": "^3.0.0",
+    "shebang-command": "^1.2.0",
+    "tar-stream": "^1.5.4",
     "vue-awesome-swiper": "^2.5.4",
     "vue-awesome-swiper": "^2.5.4",
-    "vue2-filters": "^0.1.9"
+    "vue2-filters": "^0.1.9",
+    "zip-stream": "^1.2.0"
   },
   },
   "scripts": {
   "scripts": {
     "dev": "nodemon --exec node server.js",
     "dev": "nodemon --exec node server.js",

+ 1 - 1
post.sh

@@ -9,7 +9,7 @@ repo_uri='http://10.10.100.23:23004/v1/artifact'
 basepath=$(cd `dirname $0`; pwd)
 basepath=$(cd `dirname $0`; pwd)
 buildfile=$basepath/dist.zip
 buildfile=$basepath/dist.zip
 
 
-npm install
+cnpm install
 npm run build
 npm run build
 npm run zip
 npm run zip
 curl -H "Expect:" -F "groupId=$groupId" -F "artifactId=$artifactId" -F "packaging=$packaging"  -F "version=$version" -F "file=@$buildfile" $repo_uri
 curl -H "Expect:" -F "groupId=$groupId" -F "artifactId=$artifactId" -F "packaging=$packaging"  -F "version=$version" -F "file=@$buildfile" $repo_uri