updated files

package.json and package-lock.json updated to include ftp-deploy, sample deploy.js added for future use
master
Nexan 2024-01-20 00:04:16 -06:00
parent ff59df6dea
commit 5e5fb78421
3 changed files with 1617 additions and 5558 deletions

32
deploy.js 100644
View File

@ -0,0 +1,32 @@
const FtpDeploy = require("ftp-deploy");
const ftpDeploy = new FtpDeploy();
const config = {
user: "user",
// Password optional, prompted if none given
password: "password",
host: "ftp.someserver.com",
port: 21,
localRoot: __dirname + "/local-folder",
remoteRoot: "/public_html/remote-folder/",
// include: ["*", "**/*"], // this would upload everything except dot files
include: ["*.php", "dist/*", ".*"],
// e.g. exclude sourcemaps, and ALL files in node_modules (including dot files)
exclude: [
"dist/**/*.map",
"node_modules/**",
"node_modules/**/.*",
".git/**",
],
// delete ALL existing files at destination before uploading, if true
deleteRemote: false,
// Passive mode is forced (EPSV command is not sent)
forcePasv: true,
// use sftp or ftp
sftp: false,
};
ftpDeploy
.deploy(config)
.then((res) => console.log("finished:", res))
.catch((err) => console.log(err));

7140
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -15,9 +15,10 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@11ty/eleventy": "^1.0.0",
"@11ty/eleventy": "^2.0.1",
"@11ty/eleventy-plugin-syntaxhighlight": "^4.2.0",
"eslint": "^7.12.1",
"ftp-deploy": "^2.4.5",
"postcss": "^8.4.5"
},
"dependencies": {