Comments (3)
I'll take a look
from serverless-express.
Umm...I use powershell (VSCode's terminal) and run npm run setup
command.
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.
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)
- Logger doesn't work HOT 3
- [404 Not Found] API Gateway HTTP Protocol Path Matching with stage HOT 3
- `body` data not passed correctly to the express app HOT 1
- Unable to Stream Responses from AWS Lambda HOT 5
- Is there support for NodeJS Server from HTTP module HOT 1
- Pradeep wants to pay 0 USD to have this issue fixed
- NestJS & Unable to determine event source based on event HOT 5
- RIE instructions missing
- Incompatibility with AWS API Gateway HOT 8
- Binary Content Type with Dots or Other Regex
- @codegenie/serverless-express has not been release to npm HOT 2
- NestJS + PG Aurora Serverless cold start HOT 4
- Serverless with Node14 & Yarn unable to install @vendia/serverless-express via serverless package/deploy. Pulls latest @CodeGenieApp tag instead HOT 2
- `Authorization` headers not passed properly through Api Gateway v1.
- Swagger for basic-starter nestjs template
- Failing works with files
- Support hyper-express HOT 2
- Potential Issue with getCurrentInvoke handling concurrent Lambda invocations HOT 1
- Handling custom EventBridge events HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-express.