1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
version: 1
applications:
- frontend:
phases:
preBuild:
commands:
- npm install
build:
commands:
- npm run build
# Rename the dist folder to the add-in name, e.g., "my-addin"
- mv dist my-addin
# Zip the renamed folder
- zip -r my-addin.zip my-addin
# (Optional) Move the zipped file to a specific directory if needed
- mv my-addin.zip ../
artifacts:
# Define the files to be uploaded/deployed
# For the Angular site, you might have:
baseDirectory: dist
files:
- '**/*'
# For the add-in, you might want to specify the zipped file
# You can define multiple artifacts if necessary
# Uncomment the following lines if you want to include the add-in zip
# baseDirectory: .
# files:
# - 'my-addin.zip'
cache:
paths:
- node_modules/**/*
# You can define multiple applications if needed
回答済み 1年前
