Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
projen-turborepo
Advanced tools
projen-turborepo
To create a new project, run the following command and follow the instructions:
$> mkdir my-monorepo
$> cd my-monorepo
$> npx projen new --from projen-turborepo --projenrc-ts
🤖 Synthesizing project...
...
See projen-turborepo-test
GitHub repo for
a demo project.
import { TurborepoProject } from 'projen-turborepo'
import { typescript } from 'projen';
const turbo = new TurborepoProject({
name: 'my-monorepo',
turbo: {
pipeline: {
// ... your pipeline config, but defaults are already included
},
},
// this will probably all be true by default in the future, but for now all of these
// are experimental and need to be explicitly turned on.
pathMapping: true,
jestModuleNameMapper: true,
projectReferences: true,
parallelWorkflows: true,
vscodeMultiRootWorkspaces: true,
})
new typescript.TypeScriptProject({
parent: turbo,
defaultReleaseBranch: 'master',
name: 'my-first-project',
outdir: 'packages/my-first-project',
// ...
})
turbo.synth()
Then use turbo
to run the tasks:
$> turbo run test
• Packages in scope: my-first-project
• Running test in 1 packages
my-first-project:test: cache hit, replaying output 2264dbd676fac83e
my-first-project:test: yarn run v1.22.11
my-first-project:test: $ npx projen test
my-first-project:test: ----------|---------|----------|---------|---------|-------------------
my-first-project:test: File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
my-first-project:test: ----------|---------|----------|---------|---------|-------------------
my-first-project:test: All files | 100 | 100 | 100 | 100 |
my-first-project:test: index.ts | 100 | 100 | 100 | 100 |
my-first-project:test: ----------|---------|----------|---------|---------|-------------------
my-first-project:test: Done in 4.29s.
my-first-project:test: 👾 test | jest --passWithNoTests --all --updateSnapshot
my-first-project:test: PASS test/hello.test.ts
my-first-project:test: ✓ hello (1 ms)
my-first-project:test:
my-first-project:test: Test Suites: 1 passed, 1 total
my-first-project:test: Tests: 1 passed, 1 total
my-first-project:test: Snapshots: 0 total
my-first-project:test: Time: 1.148 s, estimated 2 s
my-first-project:test: Ran all test suites.
my-first-project:test: 👾 test » eslint | eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern src test build-tools .projenrc.js
Tasks: 1 successful, 1 total
Cached: 1 cached, 1 total
Time: 65ms >>> FULL TURBO
FAQs
Projen project type for Turborepo monorepo setup.
We found that projen-turborepo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.