File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ This directory contains pure Dart packages that use standard pub layout.
2+
3+ # Working with an existing package
4+
5+ 1 . Run ` gulp build.dart `
6+ 1 . Open the package in any Dart IDE of your choice
7+ 1 . Tada!
8+
9+ You do not need to rerun step 1 if you are only making changes in
10+ ` modules_dart ` . However, you do need to run it again after you make a change
11+ in ` modules ` . This is because these packages depend on code inside the ` dist `
12+ directory via ` dependency_overrides ` . Code in ` modules ` need to be transpiled
13+ into ` dist ` before the IDE can "feel" your changes in ` modules ` .
14+
15+ # Creating a new package
16+
17+ 1 . Create a new directory with its own ` pubspec.yaml ` and standard pub layout.
18+ 1 . Add both a normal dependency on ` angular2 ` _ and_ a ` dependency_overrides ` ,
19+ like this:
20+
21+ ``` yaml
22+ version : 0.0.0
23+ dependencies :
24+ angular2 : ' 0.0.0'
25+ dependency_overrides :
26+ angular2 :
27+ path : ../../dist/dart/angular2
28+ ` ` `
29+
30+ The publishing script will automatically rewrite version numbers, so use
31+ ` 0.0.0` both for your package and `angular2` version. Similarly, do not
32+ include `authors` and `homepage`, as they will be auto-populated. However,
33+ do provide `description`, `name` (prefixed with `angular2_`), `dependencies`,
34+ and `dev_dependencies`.
You can’t perform that action at this time.
0 commit comments