Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove yarn scripts, yarn styles, yarn copy tasks #8608

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions docs/running-virtualenv.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions esbuild/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading