change path of gulp outputs to all be static folder

merge-requests/208/head
fatchan 5 years ago
parent 99e5b482c1
commit 3a03351a80
  1. 1
      .gitignore
  2. 4
      gulpfile.js
  3. 37
      package-lock.json
  4. 8
      package.json

1
.gitignore vendored

@ -4,5 +4,6 @@ static/img/*
static/captcha/*
static/banner/*
static/html/*
static/css/*
gulp/dist/
tmp/

@ -8,7 +8,7 @@ const gulp = require('gulp')
const paths = {
styles: {
src: 'gulp/res/css/*.css',
dest: 'gulp/dist/css/'
dest: 'static/css/'
},
images: {
src: 'gulp/res/img/*',
@ -16,7 +16,7 @@ const paths = {
},
scripts: {
src: 'gulp/res/js/*.js',
dest: 'gulp/dist/js/'
dest: 'static/js/'
}
};

37
package-lock.json generated

@ -24,9 +24,9 @@
}
},
"ms": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
"integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
}
}
},
@ -768,7 +768,7 @@
},
"readable-stream": {
"version": "1.1.14",
"resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
"integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=",
"requires": {
"core-util-is": "~1.0.0",
@ -1473,7 +1473,7 @@
},
"readable-stream": {
"version": "1.1.14",
"resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
"integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=",
"requires": {
"core-util-is": "~1.0.0",
@ -1805,24 +1805,23 @@
}
},
"express-fileupload": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/express-fileupload/-/express-fileupload-1.1.4.tgz",
"integrity": "sha512-/Fu4+pVQ1lED3jb17kqAjxYS3b/m0WWUSWBOCxBjdXc41SpXV1lUVc3LGAFLaLf6EkcUMzeAYRNJ7dWW9n/Jmw==",
"version": "github:fatchan/express-fileupload#acf277fd91c25c1e47bb4204ceca2c3ec7d3fe43",
"from": "github:fatchan/express-fileupload",
"requires": {
"busboy": "^0.2.14"
}
},
"express-session": {
"version": "1.16.1",
"resolved": "https://registry.npmjs.org/express-session/-/express-session-1.16.1.tgz",
"integrity": "sha512-pWvUL8Tl5jUy1MLH7DhgUlpoKeVPUTe+y6WQD9YhcN0C5qAhsh4a8feVjiUXo3TFhIy191YGZ4tewW9edbl2xQ==",
"version": "1.16.2",
"resolved": "https://registry.npmjs.org/express-session/-/express-session-1.16.2.tgz",
"integrity": "sha512-oy0sRsdw6n93E9wpCNWKRnSsxYnSDX9Dnr9mhZgqUEEorzcq5nshGYSZ4ZReHFhKQ80WI5iVUUSPW7u3GaKauw==",
"requires": {
"cookie": "0.3.1",
"cookie-signature": "1.0.6",
"debug": "2.6.9",
"depd": "~2.0.0",
"on-headers": "~1.0.2",
"parseurl": "~1.3.2",
"parseurl": "~1.3.3",
"safe-buffer": "5.1.2",
"uid-safe": "~2.1.5"
},
@ -4135,11 +4134,11 @@
}
},
"mongodb": {
"version": "3.2.6",
"resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.2.6.tgz",
"integrity": "sha512-qnHc4tjEkHKemuzBq9R7ycYnhFE0Dlpt6+n6suoZp2DcDdqviQ+teloJU24fsOw/PLmr75yGk4mRx/YabjDQEQ==",
"version": "3.2.7",
"resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.2.7.tgz",
"integrity": "sha512-2YdWrdf1PJgxcCrT1tWoL6nHuk6hCxhddAAaEh8QJL231ci4+P9FLyqopbTm2Z2sAU6mhCri+wd9r1hOcHdoMw==",
"requires": {
"mongodb-core": "3.2.6",
"mongodb-core": "3.2.7",
"safe-buffer": "^5.1.2"
},
"dependencies": {
@ -4149,9 +4148,9 @@
"integrity": "sha512-jCGVYLoYMHDkOsbwJZBCqwMHyH4c+wzgI9hG7Z6SZJRXWr+x58pdIbm2i9a/jFGCkRJqRUr8eoI7lDWa0hTkxg=="
},
"mongodb-core": {
"version": "3.2.6",
"resolved": "https://registry.npmjs.org/mongodb-core/-/mongodb-core-3.2.6.tgz",
"integrity": "sha512-i+XRVjur9D0ywGF7cFebOUnALnbvMHajdNhhl3TQuopW6QDE655G8CpPeERbqSqfa3rOKEUo08lENDIiBIuAvQ==",
"version": "3.2.7",
"resolved": "https://registry.npmjs.org/mongodb-core/-/mongodb-core-3.2.7.tgz",
"integrity": "sha512-WypKdLxFNPOH/Jy6i9z47IjG2wIldA54iDZBmHMINcgKOUcWJh8og+Wix76oGd7EyYkHJKssQ2FAOw5Su/n4XQ==",
"requires": {
"bson": "^1.1.1",
"require_optional": "^1.0.1",

@ -11,13 +11,13 @@
"cookie-parser": "^1.4.4",
"csurf": "^1.10.0",
"express": "^4.17.1",
"express-fileupload": "^1.1.4",
"express-session": "^1.16.1",
"express-fileupload": "github:fatchan/express-fileupload",
"express-session": "^1.16.2",
"fluent-ffmpeg": "^2.1.2",
"fs": "0.0.1-security",
"fs-extra": "^7.0.1",
"helmet": "^3.18.0",
"mongodb": "^3.2.6",
"mongodb": "^3.2.7",
"morgan": "^1.9.1",
"path": "^0.12.7",
"pug": "^2.0.3",
@ -35,7 +35,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js",
"wipe": "node wipe.js && gulp"
"wipe": "node wipe.js && rm -rf static/img/* && rm -rf static/banner/* && rm -rf static/html/* && gulp"
},
"author": "",
"license": "ISC"

Loading…
Cancel
Save