update turbo config
This commit is contained in:
Родитель
44a987b5c0
Коммит
5cc1e1761e
|
@ -92,7 +92,7 @@ stages:
|
|||
displayName: Archive WebApp
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: yarn archive:client
|
||||
script: yarn archive:webapp
|
||||
|
||||
- task: AzureRmWebAppDeployment@4
|
||||
displayName: Deploy Webapp
|
||||
|
|
|
@ -18,7 +18,7 @@ module.exports = {
|
|||
},
|
||||
webpackFinal(config) {
|
||||
// mute build output
|
||||
if (process.env.CI) {
|
||||
if (process.env.CI || process.env.SB_QUIET) {
|
||||
config.stats = 'errors-only'
|
||||
config.plugins = config.plugins.filter(({ constructor }) => constructor.name !== "ProgressPlugin")
|
||||
}
|
||||
|
|
|
@ -25,10 +25,10 @@
|
|||
"clean": "essex clean build dist lib node_modules",
|
||||
"bundle": "essex bundle && shx cp -r public/* build/",
|
||||
"start": "essex serve",
|
||||
"start:client": "yarn start",
|
||||
"build:client": "yarn build && yarn archive",
|
||||
"start:webapp": "yarn start",
|
||||
"build:webapp": "yarn build && yarn archive",
|
||||
"archive": "essex zip --baseDir build deploy.zip '**/*'",
|
||||
"archive:client": "yarn archive",
|
||||
"archive:webapp": "yarn archive",
|
||||
"lint": "essex lint --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
"name": "@data-wrangling-components/project",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"_publish": "yarn workspaces foreach -piv run release",
|
||||
"_ci": "turbo run ci",
|
||||
"_publish": "turbo run release",
|
||||
"_ci": "SB_QUIET=true turbo run ci",
|
||||
"_cut_schema": "yarn node scripts/release-schema.mjs",
|
||||
"_isclean": "essex git-is-clean",
|
||||
"_pause": "sleep 3",
|
||||
|
@ -13,8 +13,8 @@
|
|||
"build": "turbo run build",
|
||||
"lint": "turbo run lint",
|
||||
"test": "turbo run test",
|
||||
"start": "yarn workspaces foreach -piv run start",
|
||||
"deploy": "yarn workspaces foreach -piv run deploy",
|
||||
"start": "SB_QUIET=true turbo run start",
|
||||
"deploy": "turbo run deploy",
|
||||
"prettify": "essex prettify",
|
||||
"release": "run-s _publish _cut_schema",
|
||||
"update_sdks": "yarn dlx @yarnpkg/sdks vscode",
|
||||
|
|
18
turbo.json
18
turbo.json
|
@ -2,12 +2,9 @@
|
|||
"$schema": "https://turborepo.org/schema.json",
|
||||
"baseBranch": "origin/main",
|
||||
"pipeline": {
|
||||
"clean": {
|
||||
"outputs": ["dist/", "docs/", "build/", "storybook-static/"]
|
||||
},
|
||||
"build": {
|
||||
"dependsOn": ["^build"],
|
||||
"outputs": ["dist/", "docs/", "build/", "storybook-static/"]
|
||||
"outputs": ["dist/**", "docs/**"]
|
||||
},
|
||||
"test": {
|
||||
"dependsOn": [],
|
||||
|
@ -19,12 +16,21 @@
|
|||
},
|
||||
"bundle": {
|
||||
"dependsOn": ["^build"],
|
||||
"outputs": ["build/", "storybook-static/"]
|
||||
"outputs": ["build/**", "storybook-static/**"]
|
||||
},
|
||||
"ci": {
|
||||
"dependsOn": ["build", "lint", "test", "bundle"]
|
||||
},
|
||||
"dev": {
|
||||
"clean": {
|
||||
"cache": false
|
||||
},
|
||||
"release": {
|
||||
"cache": false
|
||||
},
|
||||
"start": {
|
||||
"cache": false
|
||||
},
|
||||
"deploy": {
|
||||
"cache": false
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче