scripts -> tools

This commit is contained in:
Pig Fang 2020-10-30 10:11:50 +08:00
parent 2163356f7e
commit 17ad007d40
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2
10 changed files with 9 additions and 9 deletions

View File

@ -8,7 +8,6 @@ public/app/*
public/lang/*
public/plugins/**
resources/assets/tests/
scripts/
storage/debugbar
storage/framework/cache/**
storage/framework/sessions/**
@ -18,6 +17,7 @@ storage/logs/**
storage/packages/**
storage/textures/*
tests/
tools/
vendor/
_ide_helper.php
.dockerignore

View File

@ -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 信息。

View File

@ -12,7 +12,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Build and create archive
run: ./scripts/release.ps1
run: ./tools/release.ps1
shell: pwsh
env:
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}

View File

@ -13,10 +13,10 @@
"dev": "webpack-dev-server",
"build": "webpack -p --progress && webpack -p --config=webpack.meta.config.ts",
"lint": "eslint --ext=ts -f=beauty .",
"fmt": "prettier --write resources/assets scripts webpack.*.ts",
"fmt:check": "prettier --check resources/assets scripts webpack.*.ts",
"fmt": "prettier --write resources/assets tools webpack.*.ts",
"fmt:check": "prettier --check resources/assets tools webpack.*.ts",
"test": "jest",
"build:urls": "ts-node scripts/generateUrls.ts"
"build:urls": "ts-node tools/generateUrls.ts"
},
"dependencies": {
"@emotion/core": "^10.0.28",

View File

@ -7,7 +7,7 @@ composer install --no-dev --prefer-dist --no-progress
Remove-Item vendor/bin -Recurse -Force
yarn
Write-Host "Dependencies have been installed." -ForegroundColor Green
./scripts/build.ps1
./tools/build.ps1
$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

View File

@ -2,7 +2,7 @@
"extends": "./tsconfig.json",
"include": [
"resources/assets",
"scripts",
"tools",
"webpack.config.ts",
"webpack.meta.config.ts"
]

View File

@ -13,7 +13,7 @@
"include": [
"resources/assets/src",
"resources/assets/webpack.d.ts",
"scripts",
"tools",
"webpack.config.ts",
"webpack.meta.config.ts"
],