diff --git a/.github/workflows/deploy_pages.yaml b/.github/workflows/deploy_pages.yaml index 691544a58..a7908f34e 100644 --- a/.github/workflows/deploy_pages.yaml +++ b/.github/workflows/deploy_pages.yaml @@ -28,7 +28,7 @@ jobs: # Build the markdown playground. - run: dart pub get working-directory: pkgs/markdown - - run: dart run build_runner build -o example:build --release + - run: dart run build_runner build -o example:build --release --delete-conflicting-outputs --verbose working-directory: pkgs/markdown # Create the _site directory. diff --git a/pkgs/markdown/build.yaml b/pkgs/markdown/build.yaml index 81238acac..3f26d302a 100644 --- a/pkgs/markdown/build.yaml +++ b/pkgs/markdown/build.yaml @@ -2,9 +2,6 @@ targets: $default: builders: - build_web_compilers|dart2js_archive_extractor: - options: - filter_outputs: false build_web_compilers|entrypoint: generate_for: - example/**.dart diff --git a/pkgs/markdown/example/README.md b/pkgs/markdown/example/README.md new file mode 100644 index 000000000..b5633aa28 --- /dev/null +++ b/pkgs/markdown/example/README.md @@ -0,0 +1,13 @@ +Commands must be executed from the `/markdown` directory. + +Run locally with JavaScript development compiler: + +```console +dart run build_runner serve example +``` + +Build production JS and WebAssembly: + +```console +dart run build_runner build -o example:build --release +``` diff --git a/pkgs/markdown/example/index.html b/pkgs/markdown/example/index.html index 82650a6cd..4dafc28ef 100644 --- a/pkgs/markdown/example/index.html +++ b/pkgs/markdown/example/index.html @@ -4,10 +4,10 @@ - - - - + + + + Dart Markdown Live Editor