scripts -> tools
This commit is contained in:
parent
2163356f7e
commit
17ad007d40
|
|
@ -8,7 +8,6 @@ public/app/*
|
||||||
public/lang/*
|
public/lang/*
|
||||||
public/plugins/**
|
public/plugins/**
|
||||||
resources/assets/tests/
|
resources/assets/tests/
|
||||||
scripts/
|
|
||||||
storage/debugbar
|
storage/debugbar
|
||||||
storage/framework/cache/**
|
storage/framework/cache/**
|
||||||
storage/framework/sessions/**
|
storage/framework/sessions/**
|
||||||
|
|
@ -18,6 +17,7 @@ storage/logs/**
|
||||||
storage/packages/**
|
storage/packages/**
|
||||||
storage/textures/*
|
storage/textures/*
|
||||||
tests/
|
tests/
|
||||||
|
tools/
|
||||||
vendor/
|
vendor/
|
||||||
_ide_helper.php
|
_ide_helper.php
|
||||||
.dockerignore
|
.dockerignore
|
||||||
|
|
|
||||||
2
.github/CONTRIBUTING.md
vendored
2
.github/CONTRIBUTING.md
vendored
|
|
@ -46,7 +46,7 @@ location ~* \w+\.hot-update\.json$ {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
当 `APP_ENV` 为其它值时,您需要事先执行 `pwsh ./scripts/build.ps1`。此命令将构建并压缩前端资源。通常用于生产环境。
|
当 `APP_ENV` 为其它值时,您需要事先执行 `pwsh ./tools/build.ps1`。此命令将构建并压缩前端资源。通常用于生产环境。
|
||||||
|
|
||||||
> 如果传递 `-Simple` 参数给 `build.ps1` 脚本,则只会运行 webpack 来编译代码,而不会复制首页背景以及生成 commit 信息。
|
> 如果传递 `-Simple` 参数给 `build.ps1` 脚本,则只会运行 webpack 来编译代码,而不会复制首页背景以及生成 commit 信息。
|
||||||
|
|
||||||
|
|
|
||||||
2
.github/workflows/Release.yml
vendored
2
.github/workflows/Release.yml
vendored
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Build and create archive
|
- name: Build and create archive
|
||||||
run: ./scripts/release.ps1
|
run: ./tools/release.ps1
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
env:
|
env:
|
||||||
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
|
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,10 @@
|
||||||
"dev": "webpack-dev-server",
|
"dev": "webpack-dev-server",
|
||||||
"build": "webpack -p --progress && webpack -p --config=webpack.meta.config.ts",
|
"build": "webpack -p --progress && webpack -p --config=webpack.meta.config.ts",
|
||||||
"lint": "eslint --ext=ts -f=beauty .",
|
"lint": "eslint --ext=ts -f=beauty .",
|
||||||
"fmt": "prettier --write resources/assets scripts webpack.*.ts",
|
"fmt": "prettier --write resources/assets tools webpack.*.ts",
|
||||||
"fmt:check": "prettier --check resources/assets scripts webpack.*.ts",
|
"fmt:check": "prettier --check resources/assets tools webpack.*.ts",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"build:urls": "ts-node scripts/generateUrls.ts"
|
"build:urls": "ts-node tools/generateUrls.ts"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/core": "^10.0.28",
|
"@emotion/core": "^10.0.28",
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ composer install --no-dev --prefer-dist --no-progress
|
||||||
Remove-Item vendor/bin -Recurse -Force
|
Remove-Item vendor/bin -Recurse -Force
|
||||||
yarn
|
yarn
|
||||||
Write-Host "Dependencies have been installed." -ForegroundColor Green
|
Write-Host "Dependencies have been installed." -ForegroundColor Green
|
||||||
./scripts/build.ps1
|
./tools/build.ps1
|
||||||
|
|
||||||
$zip = "blessing-skin-server-$current.zip"
|
$zip = "blessing-skin-server-$current.zip"
|
||||||
zip -9 -r $zip app bootstrap config database plugins public resources/lang resources/views resources/misc/textures routes storage vendor .env.example artisan LICENSE README.md README_EN.md index.html
|
zip -9 -r $zip app bootstrap config database plugins public resources/lang resources/views resources/misc/textures routes storage vendor .env.example artisan LICENSE README.md README_EN.md index.html
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
"include": [
|
"include": [
|
||||||
"resources/assets",
|
"resources/assets",
|
||||||
"scripts",
|
"tools",
|
||||||
"webpack.config.ts",
|
"webpack.config.ts",
|
||||||
"webpack.meta.config.ts"
|
"webpack.meta.config.ts"
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
"include": [
|
"include": [
|
||||||
"resources/assets/src",
|
"resources/assets/src",
|
||||||
"resources/assets/webpack.d.ts",
|
"resources/assets/webpack.d.ts",
|
||||||
"scripts",
|
"tools",
|
||||||
"webpack.config.ts",
|
"webpack.config.ts",
|
||||||
"webpack.meta.config.ts"
|
"webpack.meta.config.ts"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user