question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature: `projen clean`

See original GitHub issue

I know there is clobber, but it might not always be desirable as it also does:

hard resets to HEAD of origin

This will not work in cases where:

  1. There is no origin yet, as the repo hasn’t been pushed to any remotes (local repo)
  2. I have commits that I don’t want to reset to HEAD of origin

In fact, this feels like a mix of concerns that would be better split up and clean is just triggered by clobber.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
eppeterscommented, Jun 27, 2022

Good idea. I just had the following use-case:

  1. For some reason (who cares why), I had messed around in my local repo with some build artifacts from previous projen commands.
  2. I ran my projen build command.
  3. Some error occurred because somehow my projen build step used some of the build outputs as inputs to itself.
  4. I ran git clean -dfx (-d includes directory, -f or “force” is required to actually remove files, and -x removes gitignored files in addition to untracked ones).

I think that, since projen is heavily git-based, something like the git command above would make a lot of sense as a generic clean: git clean -dfx

1reaction
moltarcommented, Mar 2, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

projen/cleanup.ts at main - GitHub
A new generation of project generators. Contribute to projen/projen development by creating an account on GitHub.
Read more >
API Reference | projen
ResourceClass, The resource_class feature allows configuring CPU and RAM resources for each job. ... Exclude the matching files from pre-synth cleanup.
Read more >
A Beginner's Guide to Create AWS CDK Construct Library with ...
Introduction. AWS CDK allows you to create your Construct Library and publish it to npm or PyPI. Using projen makes the development of ......
Read more >
They use Mergify: Wheatstalk
We then use a CDK adjacent tool called Projen to maintain the project ... So typically what we're doing is opening up feature...
Read more >
british-sugar-logo - PM Projen
PM PROjEN receives RoSPA Order of Distinction Award for Health and Safety achievements · PM PROjEN supporting the Great British Spring Clean ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found