diff --git a/package-lock.json b/package-lock.json index 490d852..211f00f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9440,7 +9440,8 @@ "querystring": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=" + "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", + "dev": true }, "querystring-es3": { "version": "0.2.1", @@ -11089,6 +11090,7 @@ "version": "0.11.0", "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", + "dev": true, "requires": { "punycode": "1.3.2", "querystring": "0.2.0" @@ -11097,7 +11099,8 @@ "punycode": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=" + "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", + "dev": true } } }, diff --git a/package.json b/package.json index 65fd231..64900d3 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,6 @@ "axios-cookiejar-support": "^1.0.1", "form-data": "^4.0.0", "https": "^1.0.0", - "tough-cookie": "^4.0.0", - "url": "^0.11.0" + "tough-cookie": "^4.0.0" } } diff --git a/sasjs-tests/README.md b/sasjs-tests/README.md index 9ae629f..6296cfe 100644 --- a/sasjs-tests/README.md +++ b/sasjs-tests/README.md @@ -41,6 +41,19 @@ So you can run the script like so: SSH_ACCOUNT=me@my-sas-server.com DEPLOY_PATH=/var/www/html/my-folder/sasjs-tests npm run deploy ``` +If you are on `WINDOWS`, you will first need to install one dependency: +```bash +npm i -g copyfiles +``` +and then run to build: +```bash +npm run update:adapter && npm run build +``` +when it finishes run to deploy: +```bash +scp -rp ./build/* me@my-sas-server.com:/var/www/html/my-folder/sasjs-tests +``` + If you'd like to deploy just `sasjs-tests` without changing the adapter version, you can use the `deploy:tests` script, while also setting the same environment variables as above. ## 3. Creating the required SAS services diff --git a/sasjs-tests/package.json b/sasjs-tests/package.json index 737ab7b..64d2331 100644 --- a/sasjs-tests/package.json +++ b/sasjs-tests/package.json @@ -23,7 +23,8 @@ "test": "react-scripts test", "eject": "react-scripts eject", "update:adapter": "cd .. && npm run package:lib && cd sasjs-tests && npm i ../build/sasjs-adapter-5.0.0.tgz", - "deploy:tests": "rsync -avhe ssh ./build/* --delete $SSH_ACCOUNT:$DEPLOY_PATH", + "deploy:tests": "rsync -avhe ssh ./build/* --delete $SSH_ACCOUNT:$DEPLOY_PATH || npm run deploy:tests-win", + "deploy:tests-win": "scp %DEPLOY_PATH% ./build/*", "deploy": "npm run update:adapter && npm run build && npm run deploy:tests" }, "eslintConfig": {