Giter VIP home page Giter VIP logo

Comments (3)

brettstack avatar brettstack commented on June 1, 2024 1

I'll take a look

from serverless-express.

KaminoRyo avatar KaminoRyo commented on June 1, 2024

Umm...I use powershell (VSCode's terminal) and run npm run setupcommand.
I didn't know that, but cp command can be used in Powershell (an alias for the Copy-Item command is set).
However, It doesn't seem to work with npm commands.

Log

❯ npm run setup     

> [email protected] setup
> npm install && (cross-var aws s3api get-bucket-location --bucket $npm_package_config_s3BucketName --region $npm_package_config_region || npm run create-bucket) && npm run package-deploy


up to date, audited 436 packages in 4s

37 packages are looking for funding
  run `npm fund` for details

18 vulnerabilities (7 moderate, 11 high)

To address issues that do not require attention, run:
  npm audit fix

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
{
    "LocationConstraint": "ap-northeast-1"
}


> [email protected] package-deploy
> npm run build && npm run sam:build && npm run sam:deploy


> [email protected] build
> tsc


> [email protected] postbuild
> cp -R src/views dist/ && cp package*json dist/ && cp src/code-genie-logo.png dist/

'cp' は、内部コマンドまたは外部コマンド、
操作可能なプログラムまたはバッチ ファイルとして認識されていません。 
(English: 'cp' is an internal or external command,
It is not recognized as an operational program or batch file.)

from serverless-express.

KaminoRyo avatar KaminoRyo commented on June 1, 2024

I've looked into it, but there doesn't seem to be an easy way to solve the problem without relying on external libraries or creating script files. npm command uses cmd.exe(command-prompt) in Windows.....
Probably on Windows the postbuild command will look like this.

    "postbuild": "echo d | xcopy /Y /E src\\views\\ dist\\views & xcopy /Y package*json dist\\ & xcopy /Y src\\code-genie-logo.png dist\\ ",

from serverless-express.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.