mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-22 22:02:00 +01:00
Use the dart cli in tasks (#27)
This commit is contained in:
parent
89682335d9
commit
8128431b18
@ -5,9 +5,7 @@ branches:
|
||||
# Semantic version tags and legacy branches of the form "1.2.x".
|
||||
- "/^\\d+\\.\\d+\\.(\\d+([+-].*)?|x)$/"
|
||||
|
||||
# TODO(nweiz): Make this stable when Dart 2.10.0 launches with a fix for
|
||||
# dart-lang/pub#2545.
|
||||
dart: 2.8.1
|
||||
dart: stable
|
||||
|
||||
cache:
|
||||
directories:
|
||||
|
@ -5,7 +5,7 @@ author: Sass Team
|
||||
homepage: https://github.com/sass/dart-sass-embedded
|
||||
|
||||
environment:
|
||||
sdk: '>=2.4.0 <3.0.0'
|
||||
sdk: '>=2.10.0 <3.0.0'
|
||||
|
||||
executables:
|
||||
dart-sass-embedded: dart_sass_embedded
|
||||
|
@ -24,11 +24,11 @@ protobuf() async {
|
||||
if (Platform.isWindows) {
|
||||
File('build/protoc-gen-dart.bat').writeAsStringSync('''
|
||||
@echo off
|
||||
pub run protoc_plugin %*
|
||||
dart pub run protoc_plugin %*
|
||||
''');
|
||||
} else {
|
||||
File('build/protoc-gen-dart')
|
||||
.writeAsStringSync('pub run protoc_plugin "\$@"');
|
||||
.writeAsStringSync('dart pub run protoc_plugin "\$@"');
|
||||
run('chmod', arguments: ['a+x', 'build/protoc-gen-dart']);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user