File tree Expand file tree Collapse file tree 3 files changed +27
-23
lines changed Expand file tree Collapse file tree 3 files changed +27
-23
lines changed Original file line number Diff line number Diff line change @@ -26,28 +26,18 @@ jobs:
26
26
- uses : dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
27
27
28
28
# Build the markdown playground.
29
- - name : " markdown: pub get"
30
- run : dart pub get
29
+ - run : dart pub get
31
30
working-directory : pkgs/markdown
32
- - name : " markdown: build playground"
33
- run : >
34
- dart compile js -o example/app.dart.js
35
- --minify --no-frequency-based-minification --no-source-maps
36
- example/app.dart
31
+ - run : dart run build_runner build -o example:build --release
37
32
working-directory : pkgs/markdown
38
33
39
34
# Create the _site directory.
40
35
- run : mkdir _site
41
- - run : cp -r pkgs/markdown/example _site/markdown
42
- - run : rm _site/markdown/*.dart
36
+ - run : cp -r pkgs/markdown/build _site/markdown
43
37
44
38
# Deploy to GitHub Pages.
45
- - name : setup pages
46
- uses : actions/configure-pages@v5
47
- - name : upload artifact
48
- uses : actions/upload-pages-artifact@v3
39
+ - uses : actions/configure-pages@v5
40
+ - uses : actions/upload-pages-artifact@v3
49
41
with :
50
42
path : _site
51
- - name : deploy to github pages
52
- id : deployment
53
- uses : actions/deploy-pages@v4
43
+ - uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change
1
+ # https://dart.dev/tools/pub/private-files
1
2
.dart_tool
2
- .packages
3
- .pub
3
+ build
4
4
pubspec.lock
5
- doc /
6
-
7
- example /app.dart.js
8
- example /app.dart.js.deps
9
- example /app.dart.js.map
Original file line number Diff line number Diff line change
1
+ # See https://github.com/dart-lang/build/tree/master/build_web_compilers#configuration
2
+ targets :
3
+ $default :
4
+ builders :
5
+ build_web_compilers|dart2js_archive_extractor :
6
+ options :
7
+ filter_outputs : false
8
+ build_web_compilers|entrypoint :
9
+ generate_for :
10
+ - example/**.dart
11
+ options :
12
+ compilers :
13
+ dart2wasm :
14
+ args :
15
+ - -O4
16
+ - --no-strip-wasm
17
+ dart2js :
18
+ args :
19
+ - -O4
You can’t perform that action at this time.
0 commit comments