Custom launch command for Node.js app on Azure with Babel 6

I have the same problem as this question , which was not really resolved, because the original questionnaire refused this route. I am trying to run a node application on Azure using Babel6. The file package.jsonI am using has the following:

  "scripts": {
      "start": "node ./node_modules/babel-cli/bin/babel-node.js server.js"
   }

I checked using the Azure console and the babel-clinode module is installed and the file server.jsis in wwwroot. Despite this, I get the following when I pass Azure:

remote: Start script "./node_modules/babel-cli/bin/babel-node.js
        server.js" from package.json is not found.

The npm version running on Azure is 3.10.3, the node version is 6.6.0. Can anyone advise how to do this. Any help is much appreciated!

0
1

, node.js ES2015 -. ES5, Custom Deployment Script, .

example repos GitHub, gulp script node.js ES6 ES5 Azure.

, package.json :

"scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "gulp nodemon",
    "build": "gulp build"
  },

npm deploy.cmd , KuduSync .

:Deployment
echo Handling node.js deployment.

:: 0. Select node version for build
call :SelectNodeVersion

:: 1. Install build dependencies
pushd "%DEPLOYMENT_SOURCE%"
call :ExecuteCmd !NPM_CMD! install --production
IF !ERRORLEVEL! NEQ 0 goto error
popd

:: 2. Run build command
pushd "%DEPLOYMENT_SOURCE%"
call :ExecuteCmd !NPM_CMD! run-script build
IF !ERRORLEVEL! NEQ 0 goto error
popd
+1

All Articles