A
A
Alexander Osadchy2020-03-15 21:13:20
npm
Alexander Osadchy, 2020-03-15 21:13:20

What does this line do in NPM?

Hello!
I'll go crazy soon, I still can't get the project to build on Windows... everything worked on Linux, but there was a need to move to Windows.

In general, I have the following line in my project in the package.json file

"move-build": "./node_modules/.bin/gulp build && rsync -av --delete ./dist/ ../themes/blaize-tech/assets/",

What does it run besides building the project?

What is rsync?

Whether it is possible to transfer this business under windows? The whole package.json

file :
{
  "name": "Site",
  "version": "0.0.1",
  "description": "Site project",
  "main": "index.js",
  "scripts": {
    "start": "./node_modules/.bin/gulp",
    "build": "./node_modules/.bin/gulp build",
    "move-build": "./node_modules/.bin/gulp build && rsync -av --delete ./dist/ ../themes/Site-tech/assets/",
    "clean": "./node_modules/.bin/gulp clean"
  },
  "author": "Kostyantin Stepakh <[email protected]>",
  "license": "ISC",
  "devDependencies": {
    "babel-core": "^6.26.0",
    "babel-preset-env": "^1.6.0",
    "browser-sync": "^2.18.8",
    "copy": "^0.3.0",
    "gulp": "^4.0.2",
    "gulp-autoprefixer": "^3.1.1",
    "gulp-babel": "^7.0.0",
    "gulp-cache": "^0.4.6",
    "gulp-changed": "^3.1.0",
    "gulp-concat": "^2.6.1",
    "gulp-copy": "^1.0.1",
    "gulp-cssnano": "^2.1.2",
    "gulp-if": "^2.0.2",
    "gulp-imagemin": "^3.1.1",
    "gulp-jade": "^1.1.0",
    "gulp-notify": "^3.0.0",
    "gulp-pug": "^3.3.0",
    "gulp-remember": "^0.3.1",
    "gulp-sass": "^3.1.0",
    "gulp-sourcemaps": "^2.2.0",
    "gulp-svg-sprite": "^1.3.6",
    "gulp-uglify": "^2.0.0",
    "gulp-uglifyjs": "^0.6.2",
    "imagemin-pngquant": "^5.0.0",
    "path": "^0.12.7",
    "require": "^2.4.20",
    "rimraf": "^2.6.1",
    "stylus": "^0.54.5",
    "gulp-webpack": "^1.5.0",
    "gulp-util": "^3.0.7",
    "babel-loader": "^5.3.2",
    "del": "^2.0.2",
    "gulp-cssmin": "^0.1.7",
    "gulp-dust": "^2.0.0",
    "gulp-flatten": "^0.2.0",
    "gulp-hash": "^4.2.2",
    "gulp-jshint": "^1.11.2",
    "gulp-rename": "^1.2.2",
    "gulp-sftp": "^0.1.5",
    "jshint-stylish": "^2.0.1",
    "require-dir": "^0.3.0",
    "run-sequence": "^1.1.4",
    "webpack": "^3.1.0"
  },
  "dependencies": {
    "rsync": "^0.6.1",
    "uglifyjs-webpack-plugin": "^1.1.6"
  }
}

+ gulpfile throws weird error..is it related?
5e6e702139c48732077870.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2020-03-15
Matytsyn @ArsenyMatytsyn

Install WSL2 and enjoy life. It just recently fixed work with Windows folders (this problem was not in the first part).
The shell is built into Windows and runs under PowerShell (you open and write bash). And in the default console.
In the Home version, you will not be able to work with docker until you join the ranks of insiders (they may have already rolled out the version, I don’t know for sure).
It's not worth ruining your life trying to make friends with Windows if you end up running Unix servers anyway.
UPD: WSL + VSCode is a great combination. Of the minuses is the interception of file rights if you opened a folder in VSCode in VSCode, which is in the virtual environment of OpenServer (I still didn’t overcome this trouble, but I didn’t really try).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question