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.

Remove `.replit` and `replit.nix` Files From Boilerplate Repos

See original GitHub issue

One of the Replit devs mentioned that they’re making a lot of changes on their end, and recommends that we remove the .replit and replit.nix files from our boilerplate repos whenever possible. We should be able to do this in most of the boilerplate repos without issue.

There may be a couple of exceptions, though, like with the Rust in Replit project boilerplate. For that project, there are some commands that need to run when the project is imported.

The recommendation for repos that need special commands is to leave the .replit and replit.nix files in the repo, but to make sure the only difference between them and the autogenerated .replit and replit.nix files are the commands that need to run.

Here’s a list of the project boilerplates that should be updated. Please let me know if I missed any:

Remove .replit and replit.nix Files

Back End Development and APIs

Practice Projects

Required Projects

Quality Assurance

Practice Projects

Required Projects

Scientific Computing with Python

Required Projects

Data Analysis with Python

Required Projects

Information Security

Practice Projects

Required Projects

Machine Learning with Python

Required Projects

Special Cases

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
scissorsneedfoodtoocommented, Oct 31, 2022

Hi team! To solve this monotonous(?) task in a fun and efficient way, I created a script for automating this full process!

Here’s the link to that project - https://github.com/Prince-Mendiratta/mass-repo-editor

I am not sure what exactly should I add to the Learn description so with any pointers on that and I’ll get that done as well. 😄

Wow, thank you for sharing your script, @Prince-Mendiratta. That looks super helpful. I was wondering how you were able to update so many of the boilerplate repos simultaneously!

For the Learn descriptions, I think a large PR that updates all the English challenge / project files is the best way to do this. That will help in terms of orchestrating the reviews, updating the client, and merging all of the boilerplate PRs.

We would definitely welcome your help with updating the Learn files if you’re interested.

But before we do that, we can discuss the language to use first.

There’s a slight difference between importing a Node.js and a Python boilerplate into Replit. Still, it’d be good if we could use the same language for both types of projects.

Most of the challenge / project descriptions contain this text:

...
- Clone this GitHub repo and complete your project locally.
- Use our Replit starter project to complete your project.
- Use a site builder of your choice to complete the project. Be sure to incorporate all the files from our GitHub repo.

And the Python projects contain this text:

You will be working on this project with our Replit starter code.

The easiest thing to do is to add a couple of short sentences to each description, just after “Use our Repit starter project…” and “You will be working on…”. Something like “After importing this project into Replit, you will see the .replit window. Select Use run command and click the Done button.”

It would be best to put backticks (`) around .replit, Use run command and Done so those don’t get translated.

So the full sentences could read:

  • Use our Replit starter project to complete your project. After importing this project into Replit, you will see the .replit window. Select Use run command and click the Done button.
  • You will be working on this project with our Replit starter code. After importing this project into Replit, you will see the .replit window. Select Use run command and click the Done button.

Or if there’s a better, more concise way to explain those steps, we can go with that instead.

1reaction
scissorsneedfoodtoocommented, Dec 3, 2022

Thank you again for all of your help updating these boilerplate repos and descriptions @Prince-Mendiratta.

Just went through and merged all of the PRs listed here. Also cloned and tested a few projects and everything seems to work as expected.

It should be safe to close this now, and I’ll do more thorough testing after the weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Revamping the GitHub Import Flow - Replit - Blog
We would start with an existing Nix language template, clear out the unused files from within it that were associated with the template,...
Read more >
Using Nix with Replit
Replit supports all programming languages through our integration with Nix. Nix is a tool for managing software packages and system ...
Read more >
replit.nix and .replit files are hidden for nix repls
Hi all, None of the configuration files for nix (replit.nix and .replit) show up on the file browser for nix. They used to,...
Read more >
where is the project root fold... - Replit
You should see a folder in your files with the name of your artifactID, click it and open the pom.xml file. Delete what's...
Read more >
Packaging software with Nix - Replit Docs
However, despite being the largest repository of packaged software (at the ... Nix has many different fetchers we can use to fetch files....
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