@@ -26,45 +26,6 @@ Future<void> validate() async {
26
26
Dart .run ('bin/format.dart' , arguments: ['-w' , '.' ]);
27
27
}
28
28
29
- // TODO(rnystrom): Disabled for now because node_preamble is not migrated and
30
- // this isn't used anyway.
31
- /*
32
- @Task('Publish to npm')
33
- void npm() {
34
- var out = 'dist';
35
-
36
- var pubspec = yaml.loadYaml(getFile('pubspec.yaml').readAsStringSync());
37
- var homepage = pubspec['homepage'];
38
- var fileName = 'index.js';
39
-
40
- // Generate modified dart2js output suitable to run on node.
41
- var tempFile = File('${Directory.systemTemp.path}/temp.js');
42
-
43
- Dart2js.compile(File('tool/node_format_service.dart'),
44
- outFile: tempFile, categories: 'all');
45
- var dart2jsOutput = tempFile.readAsStringSync();
46
- File('$out/$fileName').writeAsStringSync('''${preamble.getPreamble()}
47
- self.exports = exports; // Temporary hack for Dart-JS Interop under node.
48
- $dart2jsOutput''');
49
-
50
- File('$out/package.json')
51
- .writeAsStringSync(const JsonEncoder.withIndent(' ').convert({
52
- 'name': 'dart-style',
53
- 'version': pubspec['version'],
54
- 'description': pubspec['description'],
55
- 'main': fileName,
56
- 'typings': 'dart-style.d.ts',
57
- 'scripts': {'test': 'echo "Error: no test specified" && exit 1'},
58
- 'repository': {'type': 'git', 'url': 'git+$homepage'},
59
- 'author': pubspec['author'],
60
- 'license': 'BSD',
61
- 'bugs': {'url': '$homepage/issues'},
62
- 'homepage': homepage
63
- }));
64
- run('npm', arguments: ['publish', out]);
65
- }
66
- */
67
-
68
29
/// Gets ready to publish a new version of the package.
69
30
///
70
31
/// To publish a version, you need to:
0 commit comments