action-hosting-deploy
lint-staged
action-hosting-deploy | lint-staged | |
---|---|---|
8 | 52 | |
655 | 12,900 | |
1.2% | 1.0% | |
2.9 | 8.2 | |
23 days ago | 3 days ago | |
TypeScript | JavaScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
action-hosting-deploy
-
What are the best practices to hide sensitive information in your open source project
Could they not have their own FB to develop against? Does every dev need to use just yours? If that is the case, then you'd need to use https://support.google.com/firebase/answer/7000272?hl=en also, it looks to be possible to include Firebase in your GitHub for them to pull from https://firebase.google.com/docs/hosting/github-integration
-
Anyone interested in a website that allows pushing to Firebase Hosting in just a couple of clicks?
Github Actions is the way to go for this: https://firebase.google.com/docs/hosting/github-integration
-
Taiga UI: A year in Open Source
Whenever a Pull Request is created we need to be able to quickly checkout the changes. Reading code diff is great, but sometimes you just need to tinker with the new version, test it on mobile, different browsers and OS. Cloud services are perfect for this case, they allow you to deploy the code temporarily and access it with a link from any device. We chose Firebase to host it for us and a Github action posts a link to the deployment as a comment in the Pull Request. It works like a charm and speeds up code reviews a lot. Read this article to set it up on your repository!
- Firebase: Deploy to live and preview channels via GitHub pull requests
-
Ask HN: Solo-preneurs, how do you DevOps to save time?
Lambdas and firebase on the GCP stack for CRUD apps.
One nice thing about firebase -> each PR deploys to its own preview channel[1].
Downside: Very JS heavy. I write lambdas in python though.
[1] https://firebase.google.com/docs/hosting/github-integration
-
Autodeploy subdirectory to Firebase
Google Firebase has a pretty straightforward guide to setting up auto-deploy from Github, which you can take a look at here: https://firebase.google.com/docs/hosting/github-integration
-
[Help] First time setting up Github (actions?) for Firebase Functions
What is the easiest way for setting up CI/CD from GH for Firebase functions? Maybe something like this for hosting, but only for functions?
-
3 steps for handling GitHub Workflow Secrets
Note: you can find more info about the used steps actions here actions/checkout@v2 and here FirebaseExtended/action-hosting-deploy@v0
lint-staged
-
Supercharge your workflow with Husky, Lint Staged and Commitlint
Lint Staged: https://github.com/lint-staged/lint-staged
-
Streamline Your Workflow: A Guide to Normalising Git Commit and Push Processes
lint-staged is the second important tools we need here, install it via NPM.
-
How Automation Saved Me from Oops Moments: Never Skip Tests in Production Again!
We were already using lint-staged and have a pre-commit hook in place using Husky in our project for linter and prettier. So it made sense to add a check here.
-
Pre-commit with husky & lint-staged
Now you can config it in your package.json, here is the guide doc:
-
Automating code patterns with Husky
In the world of software development, maintaining consistent code quality and ensuring that the codebase adheres to predefined patterns and guidelines is crucial. However, manually enforcing these standards can be time-consuming and error-prone. This is where automation tools like Husky, Lint-Staged, Commitlint, and Commitizen come to the rescue. In this post, we will explore how these tools can be combined to streamline your development workflow.
-
500 lines in 2013 is 10k in 2023, inflation you know
This is wasted work that can and should be automated. Adding a linter and formatter on CI and a pre-commit hook such as lint-staged can do wonders.
-
Set up linting and formatting for code and (S)CSS files in a Next.js project
lint-staged is a package that can be used to run formatting and linting commands on staged files in a Git repo.
-
How do you handle eslint/prettier configs across multiple repos?
To answer your next question: I lint and format on save, and I use Git hooks installed by Husky and executed through Lint-Staged (this tool helps ensure your Git hooks only run on modified files, etc) to ensure there are no lint or formatting errors whenever making a commit or pushing code. This is helpful for teams, as some developers tend to forget to run lint tasks, or don't have the Prettier extension installed in their IDE. If there are lint errors, the commit is rejected until fixed. YMMV - you'll need to fine-tune the strictness of this based on the team's needs.
-
How to create and publish a TypeScript library with ease
Uses Husky Git hooks and Lint-staged pre-commit hooks.
-
How to Contribute on the First Day of a Frontend Project
Something else to consider is applying linting and formatting before every git commit. A package like Lint-staged only lints and formats on staged items, ensuring all pushed code follows the standards in the repo. This allows developers to have their own formatting preferences when developing, while the code homogenizes on push. Linting pre-commit also avoids strict rules like no-console or no-unused-vars restricting a developer when writing code, when it should only apply in production. Imagine not being able to console log anything during development!
What are some alternatives?
firebase-tools - The Firebase Command Line Tools
commitlint - 📓 Lint commit messages
flyctl - Command line tools for fly.io services
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
golang-samples - Sample apps and code written for Google Cloud in the Go programming language.
stylelint - A mighty CSS linter that helps you avoid errors and enforce conventions.
flux2 - Open and extensible continuous delivery solution for Kubernetes. Powered by GitOps Toolkit.
prettier - Prettier is an opinionated code formatter.
ngx-scully-blog - A simple blog made for developers that is easy to setup, supports SEO, Google Adsense, Google Analytics, Facebook Pixel, and many more
graphql-code-generator - A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.
parsemail - Hanami fork of https://github.com/DusanKasan/parsemail
volar - âš¡ Explore high-performance tooling for Vue [Moved to: https://github.com/vuejs/language-tools]