diff --git a/docs/running-virtualenv.md b/docs/running-virtualenv.md index 046b3f5710..b2113cb654 100644 --- a/docs/running-virtualenv.md +++ b/docs/running-virtualenv.md @@ -124,14 +124,12 @@ password will expire after 60 days). The following yarn tasks are available: ``` -yarn scripts # Build the Javascript with esbuild -yarn styles # Build the SCSS with esbuild and its PostCSS plugin -yarn copy # Move static files to the output directory -yarn build # Run scripts, styles, and copy along with app-specific scripts +yarn build # Build the JavaScript, SCSS, and frontend assets. yarn watch # Run the build then watch JS and SCSS changes yarn lint # Run frontend linting yarn jest # Run frontend tests yarn test # Run both +yarn cy # Run Cypress integration tests ``` ### Reinstalling the virtual environment diff --git a/esbuild/build.js b/esbuild/build.js index bd5eb5fccb..6890a254fc 100644 --- a/esbuild/build.js +++ b/esbuild/build.js @@ -32,14 +32,6 @@ const arg = process.argv.slice(2)[0]; const ctx = await esbuild.context(mergedConfig); await ctx.watch(); // Not disposing context here as the user will ctrl+c to end watching. - } else if (arg === 'scripts') { - const ctx = await esbuild.context(scriptsConfig); - await ctx.rebuild(); - return await ctx.dispose(); - } else if (arg === 'styles') { - const ctx = await esbuild.context(stylesConfig); - await ctx.rebuild(); - return await ctx.dispose(); } else { const ctx = await esbuild.context(mergedConfig); await ctx.rebuild(); diff --git a/package.json b/package.json index 1cb0a691c6..ccf08cb439 100644 --- a/package.json +++ b/package.json @@ -65,9 +65,6 @@ "jest": "yarn node --experimental-vm-modules $(yarn bin jest)", "test": "yarn lint && yarn jest", "snyk": "snyk test", - "copy": "yarn build copy", - "styles": "yarn build styles", - "scripts": "yarn build scripts", "watch": "yarn build watch", "build": "node ./esbuild/build.js", "cy": "./scripts/cypress.sh"