From 6387b8d63ecac42919252e495b9ea542bde416f9 Mon Sep 17 00:00:00 2001 From: "Kyle D. McCormick" Date: Tue, 26 Mar 2024 17:51:48 -0400 Subject: [PATCH] docs: npm scripts for static assets are no longer experimental :) --- package.json | 6 +++--- scripts/compile_sass.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 341673136281..5b4f06527685 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,13 @@ "repository": "https://github.com/openedx/edx-platform", "scripts": { "postinstall": "scripts/copy-node-modules.sh", - "build": "echo 'WARNING: `npm run build` in edx-platform is experimental. Use at your own risk.' && npm run webpack && npm run compile-sass", - "build-dev": "echo 'WARNING: `npm run build-dev` in edx-platform is experimental. Use at your own risk.' && npm run webpack-dev && npm run compile-sass-dev", + "build": "npm run webpack && npm run compile-sass", + "build-dev": "npm run webpack-dev && npm run compile-sass-dev", "webpack": "NODE_ENV=${NODE_ENV:-production} \"$(npm bin)/webpack\" --config=${WEBPACK_CONFIG_PATH:-webpack.prod.config.js}", "webpack-dev": "NODE_ENV=development \"$(npm bin)/webpack\" --config=webpack.dev.config.js", "compile-sass": "scripts/compile_sass.py --env=${NODE_ENV:-production}", "compile-sass-dev": "scripts/compile_sass.py --env=development", - "watch": "echo 'WARNING: `npm run watch` in edx-platform is experimental. Use at your own risk.' && { npm run watch-webpack& npm run watch-sass& } && sleep infinity", + "watch": "{ npm run watch-webpack& npm run watch-sass& } && sleep infinity", "watch-webpack": "npm run webpack-dev -- --watch", "watch-sass": "scripts/watch_sass.sh" }, diff --git a/scripts/compile_sass.py b/scripts/compile_sass.py index 8a21f718fefe..5698b2eaa6cb 100755 --- a/scripts/compile_sass.py +++ b/scripts/compile_sass.py @@ -219,7 +219,6 @@ def compile_sass_dir( click.echo() # Warnings - click.secho("WARNING: `npm run compile-sass` is experimental. Use at your own risk.", fg="yellow", bold=True) if show_help: click.echo(context.get_help()) return