Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: README.md

Issue 906413002: support multiple entry points and only html entry points (Closed) Base URL: git@github.com:dart-lang/static-init.git@master
Patch Set: add $include to transformer to optimize it a bit Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « CHANGELOG.md ('k') | lib/transformer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.md
diff --git a/README.md b/README.md
index 64dfb7910b8b1b5844456818df2a757ab2fa2f8d..99c8cec743ab83d62ac1629e3584cd4fb66a782f 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,7 @@ completes before running the next initializer.
### @initMethod
-Ther is one initializer which comes with this package, `@initMethod`. Annotate
+There is one initializer which comes with this package, `@initMethod`. Annotate
any top level function with this and it will be invoked automatically. For
example, the program below will print `hello`:
@@ -51,11 +51,13 @@ so you should put the remainder of your program inside the chained then call.
During development a mirror based system is used to find and run the initializers,
but for deployment there is a transformer which can replace that with a static list
-of initializers to be ran.
+of initializers to be ran.
-This will create a new entry point which bootstraps your existing app. If you
-supply an `html_entry_point` then any script tags whose src is the same as
-`entry_point` will be rewritten to the bootstrapped file `new_entry_point`.
+This will create a new entry point which bootstraps your existing app, this will
+have the same file name except `.dart` with be replaced with `.initialize.dart`.
+If you supply an html file to `entry_points` then it will bootstrap the dart
+script tag on that page and replace the `src` attribute to with the new
+bootstrap file.
Below is an example pubspec with the transformer:
@@ -64,9 +66,7 @@ Below is an example pubspec with the transformer:
initialize: any
transformers:
- initialize:
- entry_point: web/index.dart
- new_entry_point: web/index.bootstrap.dart
- html_entry_point: web/index.html
+ entry_points: web/index.html
## Creating your own initializer
« no previous file with comments | « CHANGELOG.md ('k') | lib/transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698