-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Initial Vagrant - Ready to dev (#2092)
* Initial Ready to deev * Update README.md
- Loading branch information
1 parent
8a82c29
commit 0ff7c6c
Showing
11 changed files
with
1,211 additions
and
671 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM node:20 AS build | ||
WORKDIR /app | ||
COPY . . | ||
RUN ./deploy.sh | ||
FROM nginx:stable-alpine | ||
COPY nginx.conf /etc/nginx/nginx.conf | ||
COPY --from=build /app/docs /app/docs | ||
COPY --from=build /app/examples/demo/build /app/examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Vagrant.configure("2") do |config| | ||
config.vm.provider "docker" do |d| | ||
d.build_dir = "." | ||
d.ports = ["8081:8081", "8080:8080"] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
set -xe | ||
# prepare env | ||
export DISABLE_ESLINT_PLUGIN=true | ||
export PUBLIC_URL="/" | ||
export SKIP_PREFLIGHT_CHECK=true | ||
|
||
# prepare yarn | ||
corepack enable | ||
corepack prepare yarn@stable --activate | ||
|
||
# installation deps | ||
yarn --immutable | ||
|
||
# deploy examples | ||
yarn lerna run build --scope @berviantoleo/react-multi-crop | ||
yarn lerna run build --scope @berviantoleo/react-multi-crop-demo | ||
|
||
# deploy docs | ||
yarn docs:build | ||
yarn lerna run docs --scope @berviantoleo/react-multi-crop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { defineConfig } from "vitepress"; | ||
|
||
export default defineConfig({ | ||
export default { | ||
title: "React Multi Crop", | ||
description: "React Multi Crop for easy crop", | ||
lang: "en-US", | ||
base: process.env.BASE_URL || "/", | ||
lastUpdated: true, | ||
outDir: "../docs" | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# on alpine, copy to /etc/nginx/nginx.conf | ||
user root; | ||
worker_processes auto; | ||
|
||
error_log /var/log/nginx/error.log warn; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
sendfile off; | ||
access_log off; | ||
keepalive_timeout 3000; | ||
server { | ||
listen 8080; | ||
server_name docs; | ||
root /app/docs/; | ||
} | ||
server { | ||
listen 8081; | ||
server_name examples; | ||
root /app/examples/; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.