chore: 🤖 default build type is production, not development
This commit is contained in:
9 files changed
+18
-18
No files matched your search
@@ -112,7 +112,7 @@ To quickly produce a production build of Core UI, run from this folder:
|
||||
|
||||
```bash
|
||||
yarn install
|
||||
yarn build:production:ui:core
|
||||
yarn build:ui:core
|
||||
```
|
||||
|
||||
Assets are saved to `ui/core/dist/`.
|
||||
@@ -123,7 +123,7 @@ Optionally, you may build the UI within a container. Execute the
|
||||
following command:
|
||||
|
||||
```bash
|
||||
./build_production.sh
|
||||
docker-compose -f docker-compose-embedding.yml run build
|
||||
```
|
||||
|
||||
Assets are saved to `ui/core/dist/`.
|
||||
|
||||
@@ -33,8 +33,8 @@ List of available project commands. `yarn run <command-name>`
|
||||
|
||||
| Command | Description |
|
||||
| ------- | ----------- |
|
||||
| build | Builds the dummy app in development mode. |
|
||||
| build:production | Builds the dummy app for production. |
|
||||
| build:development | Builds the dummy app in development mode. |
|
||||
| build | Builds the dummy app for production. |
|
||||
| lint | Runs all lint commands. |
|
||||
| lint:js | Lints `js` files. |
|
||||
| format | Runs all auto-formatters. |
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
"ember-addon"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "ember build",
|
||||
"build:production": "ember build --environment=production",
|
||||
"build:development": "ember build",
|
||||
"build": "ember build --environment=production",
|
||||
"lint": "yarn lint:js",
|
||||
"lint:js": "eslint .",
|
||||
"format": "npm run format:js",
|
||||
|
||||
@@ -36,8 +36,8 @@ List of available project commands. `yarn run <command-name>`
|
||||
|
||||
| Command | Description |
|
||||
| ------- | ----------- |
|
||||
| build | Builds the dummy app in development mode. |
|
||||
| build:production | Builds the dummy app for production. |
|
||||
| build:development | Builds the dummy app in development mode. |
|
||||
| build | Builds the dummy app for production. |
|
||||
| lint | Runs all lint commands. |
|
||||
| lint:hbs | Lints template `hbs` files. |
|
||||
| lint:js | Lints `js` files. |
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
"ember-addon"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "ember build",
|
||||
"build:production": "ember build --environment=production",
|
||||
"build:development": "ember build",
|
||||
"build": "ember build --environment=production",
|
||||
"lint": "yarn lint:hbs && yarn lint:js && yarn lint:sass",
|
||||
"lint:hbs": "ember-template-lint .",
|
||||
"lint:js": "eslint .",
|
||||
|
||||
@@ -16,10 +16,10 @@ services:
|
||||
- 'icu_ui_core_node_modules:/src/ui/core/node_modules'
|
||||
working_dir: /src
|
||||
|
||||
build_production:
|
||||
build:
|
||||
<<: *node
|
||||
entrypoint: bash
|
||||
command: '-c "yarn install && yarn build:production:ui:core && chmod -R 777 ."'
|
||||
command: '-c "yarn install && yarn build:ui:core && chmod -R 777 ."'
|
||||
|
||||
volumes:
|
||||
icu_node_modules:
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
"ui/*"
|
||||
],
|
||||
"scripts": {
|
||||
"build:production:ui:core": "cd ui/core && yarn build:production",
|
||||
"build:ui:core": "cd ui/core && yarn build",
|
||||
"lint": "yarn lint:addons:api && yarn lint:addons:auth && yarn lint:addons:rose && yarn lint:ui:core",
|
||||
"lint:addons:api": "echo \"\n\nlint: addons/api\n\" && cd addons/api && yarn lint",
|
||||
"lint:addons:auth": "echo \"\n\nlint: addons/auth\n\" && cd addons/auth && yarn lint",
|
||||
|
||||
+3
-3
@@ -39,8 +39,8 @@ List of available project commands. `yarn run <command-name>`
|
||||
|
||||
| Command | Description |
|
||||
| ------- | ----------- |
|
||||
| build | Builds the UI in development mode. |
|
||||
| build:production | Builds the UI for production. |
|
||||
| build:development | Builds the UI in development mode. |
|
||||
| build | Builds the UI for production. |
|
||||
| lint | Runs all lint commands. |
|
||||
| lint:hbs | Lints `hbs` template files. |
|
||||
| lint:js | Lints `js` files. |
|
||||
@@ -66,7 +66,7 @@ production, run the following commads from this folder:
|
||||
|
||||
```bash
|
||||
yarn install
|
||||
yarn build:production
|
||||
yarn build
|
||||
```
|
||||
|
||||
The static production assets are saved into the `dist/` folder.
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"doc:toc": "doctoc README.md",
|
||||
"build": "ember build",
|
||||
"build:production": "ember build --environment=production",
|
||||
"build:development": "ember build",
|
||||
"build": "ember build --environment=production",
|
||||
"lint": "yarn lint:hbs && yarn lint:js && yarn lint:sass",
|
||||
"lint:hbs": "ember-template-lint .",
|
||||
"lint:js": "eslint .",
|
||||
|
||||
Reference in new issue
Block a user