Skip to content

Commit 826a88f

Browse files
committed
web publish
1 parent 6d88c45 commit 826a88f

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

packages/web_publish/lib/src/deploy_common.dart

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
11
import 'package:path/path.dart';
22

33
/// Web deploy options.
4-
abstract class WebAppDeployOptions {}
4+
abstract class WebAppDeployOptions {
5+
/// No specific options.
6+
WebAppDeployOptions();
7+
}
58

69
/// Common web app deployer
710
abstract class WebAppDeployer {
811
/// Deploy.
912
Future<void> deploy({String? path});
13+
14+
/// Default just deploy to deploy/web
15+
factory WebAppDeployer() {
16+
return _WebAppDeployer();
17+
}
18+
}
19+
20+
class _WebAppDeployer implements WebAppDeployer {
21+
@override
22+
Future<void> deploy({String? path}) async {
23+
// no deploy
24+
}
1025
}
1126

1227
/// Surge web app deployment.

0 commit comments

Comments
 (0)