From 695f1b24b56f1c3be37e86c4fa2334b04f0537aa Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Mon, 29 Jun 2020 18:07:43 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20default=20build=20type?= =?UTF-8?q?=20is=20production,=20not=20development?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- addons/api/README.md | 4 ++-- addons/api/package.json | 4 ++-- addons/rose/README.md | 4 ++-- addons/rose/package.json | 4 ++-- docker-compose-embedding.yml | 4 ++-- package.json | 2 +- ui/core/README.md | 6 +++--- ui/core/package.json | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index e3951ba65..ac3e10ded 100644 --- a/README.md +++ b/README.md @@ -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/`. diff --git a/addons/api/README.md b/addons/api/README.md index 1ae9b38ac..5d7b04d70 100644 --- a/addons/api/README.md +++ b/addons/api/README.md @@ -33,8 +33,8 @@ List of available project commands. `yarn run ` | 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. | diff --git a/addons/api/package.json b/addons/api/package.json index f9a6af815..00d40d798 100644 --- a/addons/api/package.json +++ b/addons/api/package.json @@ -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", diff --git a/addons/rose/README.md b/addons/rose/README.md index 2cd8b9ec1..70b369263 100644 --- a/addons/rose/README.md +++ b/addons/rose/README.md @@ -36,8 +36,8 @@ List of available project commands. `yarn run ` | 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. | diff --git a/addons/rose/package.json b/addons/rose/package.json index ec020554e..466cbeb94 100644 --- a/addons/rose/package.json +++ b/addons/rose/package.json @@ -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 .", diff --git a/docker-compose-embedding.yml b/docker-compose-embedding.yml index 1cd3d329b..25ba07cd7 100644 --- a/docker-compose-embedding.yml +++ b/docker-compose-embedding.yml @@ -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: diff --git a/package.json b/package.json index 8e18bfe44..3b26ed612 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/ui/core/README.md b/ui/core/README.md index 9fe164967..d3b404f53 100644 --- a/ui/core/README.md +++ b/ui/core/README.md @@ -39,8 +39,8 @@ List of available project commands. `yarn run ` | 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. diff --git a/ui/core/package.json b/ui/core/package.json index a03037825..02bcc7ea3 100644 --- a/ui/core/package.json +++ b/ui/core/package.json @@ -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 .",