Skip to content

compile plugin packages with DDC #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 1, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ dependencies:
usage: ^1.1.0

dev_dependencies:
# dev_compiler: 0.1.22
grinder: ^0.8.0+1
pub_semver: ^1.2.1
test: ^0.12.0
20 changes: 15 additions & 5 deletions tool/grind.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,18 @@ publish() => publishAtomPlugin();
@Depends(analyze, build)
bot() => null;

@Task('Generate a DDC analysis report')
report() {
return new DevCompiler().analyzeAsync(
getFile('web/entry.dart'), htmlReport: true);
}
/* DDC manual commands:

dart $DDC_PATH/bin/dartdevc.dart compile --modules node -o web/entry.js -s web/logging.sum -s web/atom.sum -s web/atom_flutter.sum -s web/usage.sum web/entry.dart

dart $DDC_PATH/bin/dartdevc.dart compile --modules node -o web/logging.js package:logging/logging.dart

dart $DDC_PATH/bin/dartdevc.dart compile --modules node -o web/usage.js package:usage/usage.dart package:usage/src/uuid.dart package:usage/src/usage_impl.dart

dart $DDC_PATH/bin/dartdevc.dart compile --modules node -o web/atom.js -s web/logging.sum package:atom/atom.dart package:atom/atom_utils.dart package:atom/node/command.dart package:atom/node/config.dart package:atom/node/fs.dart package:atom/node/node.dart package:atom/node/notification.dart package:atom/node/package.dart package:atom/node/process.dart package:atom/node/shell.dart package:atom/node/workspace.dart package:atom/src/js.dart package:atom/src/utils.dart package:atom/utils/dependencies.dart package:atom/utils/disposable.dart package:atom/utils/package_deps.dart package:atom/utils/utils.dart

dart $DDC_PATH/bin/dartdevc.dart compile --modules node -o web/atom_flutter.js -s web/logging.sum -s web/atom.sum -s web/usage.sum package:atom_flutter/flutter.dart package:atom_flutter/menus/getting_started.dart package:atom_flutter/state.dart package:atom_flutter/usage.dart

dart $DDC_PATH/tool/build_sdk.dart --dart-sdk $DDC_PATH/tool/input_sdk/ --modules node -o web/dart_sdk.js

*/
2,909 changes: 2,909 additions & 0 deletions web/atom.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions web/atom.js.map

Large diffs are not rendered by default.

Binary file added web/atom.sum
Binary file not shown.
339 changes: 339 additions & 0 deletions web/atom_flutter.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions web/atom_flutter.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added web/atom_flutter.sum
Binary file not shown.
31 changes: 31 additions & 0 deletions web/entry.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web/entry.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added web/entry.sum
Binary file not shown.
Loading