Giter Site home page Giter Site logo

git_hooks's Introduction

JSShou's github stats

git_hooks's People

Contributors

asartalo avatar vladyslavbilomeria avatar wiright avatar xuzhongpeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

git_hooks's Issues

使用git_hooks之后无法提交代码,uninstall之后就好了

报错信息如下

../../Develop/flutter/packages/flutter/lib/src/material/animated_icons.dart:9:8: Error: Not found: 'dart:ui'
import 'dart:ui' as ui show Paint, Path, Canvas;
       ^
../../Develop/flutter/packages/flutter/lib/src/material/animated_icons.dart:10:8: Error: Not found: 'dart:ui'
import 'dart:ui' show lerpDouble;
       ^
../../Develop/flutter/packages/flutter/lib/src/material/app.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' as ui;
       ^
../../Develop/flutter/packages/flutter/lib/src/material/app_bar_theme.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' show lerpDouble;
       ^
../../Develop/flutter/packages/flutter/lib/src/material/arc.dart:6:8: Error: Not found: 'dart:ui'
import 'dart:ui' show lerpDouble;
       ^
../../Develop/flutter/packages/flutter/lib/src/material/banner_theme.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' show lerpDouble;
       ^
../../Develop/flutter/packages/flutter/lib/src/material/bottom_app_bar_theme.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' show lerpDouble;
       ^
../../Develop/flutter/packages/flutter/lib/src/material/bottom_navigation_bar_theme.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' show lerpDouble;
       ^
../../Develop/flutter/packages/flutter/lib/src/material/bottom_sheet.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' show lerpDouble;
       ^
../../Develop/flutter/packages/flutter/lib/src/material/bottom_sheet_theme.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' show lerpDouble;

[question] Using git_hooks for multiple Flutter apps in a monorepo

Description

The .git configuration of the project is in the root of the monorepo, which is not a Flutter app (no pubspec.yaml). This monorepo contains different Flutter apps talking relatively importing each other. I'm interested to know if there are available workarounds getting git_hooks to work subdirectories of Flutter apps in a monorepo.

Issue

  1. Creating git_hooks within one of the Flutter subdirectory
$ git_hooks create bin/git_hooks.dart    
create files...                        /Invalid argument(s): .git is not exists in your project
  1. Creating git_hooks in the root (obviously won't work)
$ git_hooks create bin/git_hooks.dart    

... app/pubspec.yaml' (OS Error: No such file or directory, errno = 2)

Attachments

monorepo

  • flutter_app_1
  • flutter_app_2
  • .git

Thanks for the great work on this tool

null-safety?

Hi! Do you have any plans to create a null-safety release? I can help with this if you need any help although I don't really know how to properly create a tests for this.

Option to use `tool/git_hooks.dart` instead of `bin/git_hooks.dart`

Dart recommends that internal tools and scripts should be added under the tool/ directory instead of bin/ (https://dart.dev/tools/pub/package-layout#internal-tools-and-scripts).

Use case:

When publishing packages to pub.dev, pub will complain if there are executables under bin/ that include dev_dependencies:

* line 4, column 1 of bin/git_hooks.dart: git_hooks is in the `dev_dependencies` section of `pubspec.yaml`. Packages used in bin/ must be declared in the `dependencies` section.
   ╷
 4 │ import 'package:git_hooks/git_hooks.dart';
   │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.