diff --git a/package-lock.json b/package-lock.json index b62d148..8f8364f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,8 +12,7 @@ "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" }, "devDependencies": { "@types/axios": "^0.14.0", diff --git a/package.json b/package.json index 332b564..e190315 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,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": {