2016-05-23 18:11:09 -07:00
|
|
|
// Copyright 2016 Google Inc. Use of this source code is governed by an
|
|
|
|
// MIT-style license that can be found in the LICENSE file or at
|
|
|
|
// https://opensource.org/licenses/MIT.
|
|
|
|
|
|
|
|
import 'dart:io';
|
|
|
|
|
|
|
|
import 'package:path/path.dart' as p;
|
|
|
|
import 'package:sass/src/parser.dart';
|
2016-08-26 20:03:47 -07:00
|
|
|
import 'package:sass/src/visitor/perform.dart';
|
2016-08-14 23:51:29 -07:00
|
|
|
import 'package:sass/src/visitor/serialize.dart';
|
2016-05-23 18:11:09 -07:00
|
|
|
|
|
|
|
void main(List<String> args) {
|
|
|
|
var parser = new Parser(new File(args.first).readAsStringSync(),
|
|
|
|
url: p.toUri(args.first));
|
2016-05-27 16:09:03 -07:00
|
|
|
var cssTree = new PerformVisitor().visitStylesheet(parser.parse());
|
|
|
|
print(toCss(cssTree));
|
2016-05-23 18:11:09 -07:00
|
|
|
}
|