From 95c799d547980de474ffa72f05b56433580e4469 Mon Sep 17 00:00:00 2001 From: neo Date: Thu, 3 Oct 2024 14:08:52 +0200 Subject: [PATCH 1/8] FIX: favicon.ico --- ol-proj4rs-demo-app/favicon.ico | Bin 0 -> 999 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/ol-proj4rs-demo-app/favicon.ico b/ol-proj4rs-demo-app/favicon.ico index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..36d4780e5e4d0e1db5159f77ca82ce6da6e5518b 100644 GIT binary patch literal 999 zcmVRQ7{}k&o;6!x#+vM9jhLc|QI?S9gC!|nl#rbWA+p3YzDz0RgC$9nEXkUEP2>Yv zUVG6nVk|Sm`2BS5x95G__xs#0O3GEg&UxX2io@VER6%pcxf7Vc7tFOsP0oxHB6uuT0x|4 z^u_}p7lO{{{lv%JE)C9i;F;O z{@nwHP_I3LYzLl(=k8dsdPL^ERshcN5@y3hP#@DlZ4@a=aSkXxFB(H@E}K?5@BktW zT%+FxqI$obzB-6(03DC-EHn!b57O$W=~`%U4z%Q7v%nglV9aC9f)wr2NeaO9vJ_kQ zy@VojoKyqXu!@cWGb3jN-0fkogyu3Gs0mHL%2_61fTDFi>q`-fi-401g9%}fVYafl zShguTL+@@qV?!KSBRcBCd%z26Biv8pfbZyp-nIaR<^|;7SD+@6tT}&70&`x6Ol3FV z?$yIbmQ-qe-VM}&qICCODBgxWA<{+mgccyps^_!4{POY6x4NnR zU!fo@`jOgW9RBdABo1WGQGp+(UQ_ V%OP|5x&QzG002ovPDHLkV1n*&*oOcB literal 0 HcmV?d00001 From 5e8782b1e5931fd5241a735761c5ae2c64294da8 Mon Sep 17 00:00:00 2001 From: neo Date: Thu, 3 Oct 2024 14:13:56 +0200 Subject: [PATCH 2/8] UPDATE: (README.md) moved text about compiling/build --- README.md | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/README.md b/README.md index b62d2a5..c9106e8 100644 --- a/README.md +++ b/README.md @@ -99,40 +99,4 @@ let point = new Proj.Point(2.0, 1.0, 0.0); Proj.transform(from, to, point); ``` -## Compiling for WASM - -Install [wasm-pack](https://rustwasm.github.io/wasm-pack/book/) - -```bash -wasm-pack build --target web --no-default-features -``` - -Or if you have installed [cargo-make](https://sagiegurari.github.io/cargo-make/), use the following -command: - -```bash -cargo make wasm -``` - -### Running the WASM example - -There is a [`index.html`] file for testing the WASM module in a navigator. - -For security reasons, you need to run it from a server. -You can start a Python server with the following command: - -```bash -python3 -m http.server -``` - -The server will automatically serve the `index.html` file in the current directory. - - -## Build for npm - -``` -cargo make wasm_bundle -``` - -This will create a npm bundler package in pkg-bundler From ec08d77359857601c9440f724ac48a009cba6ec8 Mon Sep 17 00:00:00 2001 From: neo Date: Thu, 3 Oct 2024 14:14:04 +0200 Subject: [PATCH 3/8] ADD: (CONTRIBUTING.md) added text about compiling/build --- CONTRIBUTING.md | 39 +++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..4e7220b --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,39 @@ + +The documentation is available on [docs.rs](https://docs.rs/proj4rs/) and the demo on [docs.3liz.org](https://docs.3liz.org/proj4rs/). + +## Compiling for WASM + +Install [wasm-pack](https://rustwasm.github.io/wasm-pack/book/) + +```bash +wasm-pack build --target web --no-default-features +``` + +Or if you have installed [cargo-make](https://sagiegurari.github.io/cargo-make/), use the following +command: + +```bash +cargo make wasm +``` + +### Running the WASM example + +There is a [`index.html`] file for testing the WASM module in a navigator. + +For security reasons, you need to run it from a server. +You can start a Python server with the following command: + +```bash +python3 -m http.server +``` + +The server will automatically serve the `index.html` file in the current directory. + + +## Build for npm + +``` +cargo make wasm_bundle +``` + +This will create a npm bundler package in pkg-bundler diff --git a/README.md b/README.md index c9106e8..23a5690 100644 --- a/README.md +++ b/README.md @@ -99,4 +99,6 @@ let point = new Proj.Point(2.0, 1.0, 0.0); Proj.transform(from, to, point); ``` +## Contributing +You can contribute to this library by going on the [proj4rs](https://github.com/3liz/proj4rs/) repository From 8f7f87c8515024ec19369aa16d09d499fded264b Mon Sep 17 00:00:00 2001 From: neo Date: Thu, 3 Oct 2024 14:08:52 +0200 Subject: [PATCH 4/8] FIX: favicon.ico --- ol-proj4rs-demo-app/favicon.ico | Bin 0 -> 999 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/ol-proj4rs-demo-app/favicon.ico b/ol-proj4rs-demo-app/favicon.ico index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..36d4780e5e4d0e1db5159f77ca82ce6da6e5518b 100644 GIT binary patch literal 999 zcmVRQ7{}k&o;6!x#+vM9jhLc|QI?S9gC!|nl#rbWA+p3YzDz0RgC$9nEXkUEP2>Yv zUVG6nVk|Sm`2BS5x95G__xs#0O3GEg&UxX2io@VER6%pcxf7Vc7tFOsP0oxHB6uuT0x|4 z^u_}p7lO{{{lv%JE)C9i;F;O z{@nwHP_I3LYzLl(=k8dsdPL^ERshcN5@y3hP#@DlZ4@a=aSkXxFB(H@E}K?5@BktW zT%+FxqI$obzB-6(03DC-EHn!b57O$W=~`%U4z%Q7v%nglV9aC9f)wr2NeaO9vJ_kQ zy@VojoKyqXu!@cWGb3jN-0fkogyu3Gs0mHL%2_61fTDFi>q`-fi-401g9%}fVYafl zShguTL+@@qV?!KSBRcBCd%z26Biv8pfbZyp-nIaR<^|;7SD+@6tT}&70&`x6Ol3FV z?$yIbmQ-qe-VM}&qICCODBgxWA<{+mgccyps^_!4{POY6x4NnR zU!fo@`jOgW9RBdABo1WGQGp+(UQ_ V%OP|5x&QzG002ovPDHLkV1n*&*oOcB literal 0 HcmV?d00001 From cc94bf0d4637356733186ffef19802efc8a3f210 Mon Sep 17 00:00:00 2001 From: neo Date: Thu, 3 Oct 2024 14:13:56 +0200 Subject: [PATCH 5/8] UPDATE: (README.md) moved text about compiling/build --- README.md | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/README.md b/README.md index b62d2a5..c9106e8 100644 --- a/README.md +++ b/README.md @@ -99,40 +99,4 @@ let point = new Proj.Point(2.0, 1.0, 0.0); Proj.transform(from, to, point); ``` -## Compiling for WASM - -Install [wasm-pack](https://rustwasm.github.io/wasm-pack/book/) - -```bash -wasm-pack build --target web --no-default-features -``` - -Or if you have installed [cargo-make](https://sagiegurari.github.io/cargo-make/), use the following -command: - -```bash -cargo make wasm -``` - -### Running the WASM example - -There is a [`index.html`] file for testing the WASM module in a navigator. - -For security reasons, you need to run it from a server. -You can start a Python server with the following command: - -```bash -python3 -m http.server -``` - -The server will automatically serve the `index.html` file in the current directory. - - -## Build for npm - -``` -cargo make wasm_bundle -``` - -This will create a npm bundler package in pkg-bundler From f425bd4b7af2df3dac955b70ac29942de568217e Mon Sep 17 00:00:00 2001 From: neo Date: Thu, 3 Oct 2024 14:14:04 +0200 Subject: [PATCH 6/8] ADD: (CONTRIBUTING.md) added text about compiling/build --- CONTRIBUTING.md | 39 +++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..4e7220b --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,39 @@ + +The documentation is available on [docs.rs](https://docs.rs/proj4rs/) and the demo on [docs.3liz.org](https://docs.3liz.org/proj4rs/). + +## Compiling for WASM + +Install [wasm-pack](https://rustwasm.github.io/wasm-pack/book/) + +```bash +wasm-pack build --target web --no-default-features +``` + +Or if you have installed [cargo-make](https://sagiegurari.github.io/cargo-make/), use the following +command: + +```bash +cargo make wasm +``` + +### Running the WASM example + +There is a [`index.html`] file for testing the WASM module in a navigator. + +For security reasons, you need to run it from a server. +You can start a Python server with the following command: + +```bash +python3 -m http.server +``` + +The server will automatically serve the `index.html` file in the current directory. + + +## Build for npm + +``` +cargo make wasm_bundle +``` + +This will create a npm bundler package in pkg-bundler diff --git a/README.md b/README.md index c9106e8..23a5690 100644 --- a/README.md +++ b/README.md @@ -99,4 +99,6 @@ let point = new Proj.Point(2.0, 1.0, 0.0); Proj.transform(from, to, point); ``` +## Contributing +You can contribute to this library by going on the [proj4rs](https://github.com/3liz/proj4rs/) repository From a3fc4a3622f0d64c19166a97b3e5bd8c06eafb38 Mon Sep 17 00:00:00 2001 From: neo Date: Fri, 4 Oct 2024 09:59:43 +0200 Subject: [PATCH 7/8] UPDATE: (CONTRIBUTING.md) and moved content in (README_WASM.md) --- CONTRIBUTING.md | 39 +++++++-------------------------------- README_WASM.md | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 32 deletions(-) create mode 100644 README_WASM.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4e7220b..3ba747b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,39 +1,14 @@ The documentation is available on [docs.rs](https://docs.rs/proj4rs/) and the demo on [docs.3liz.org](https://docs.3liz.org/proj4rs/). -## Compiling for WASM +## Contributing -Install [wasm-pack](https://rustwasm.github.io/wasm-pack/book/) +### Modify -```bash -wasm-pack build --target web --no-default-features -``` +Any Rust file you wish to modify can be found in `src/` with some tests in `tests/proj4js_tests.rs`. +In order to test your new code, you need to build it thanks to WASM. More information on how to build it can be found in [README_WASM.md](./README_WASM.md). -Or if you have installed [cargo-make](https://sagiegurari.github.io/cargo-make/), use the following -command: +### Test -```bash -cargo make wasm -``` - -### Running the WASM example - -There is a [`index.html`] file for testing the WASM module in a navigator. - -For security reasons, you need to run it from a server. -You can start a Python server with the following command: - -```bash -python3 -m http.server -``` - -The server will automatically serve the `index.html` file in the current directory. - - -## Build for npm - -``` -cargo make wasm_bundle -``` - -This will create a npm bundler package in pkg-bundler +If you want to test your code, you can ron locally some demos by reading [this README](./ol-proj4rs-demo-app/README.md) in `ol-proj4rs-demo-app/`. +You can create another demo page with a HTML file + JavaScript file combo. diff --git a/README_WASM.md b/README_WASM.md new file mode 100644 index 0000000..4e7220b --- /dev/null +++ b/README_WASM.md @@ -0,0 +1,39 @@ + +The documentation is available on [docs.rs](https://docs.rs/proj4rs/) and the demo on [docs.3liz.org](https://docs.3liz.org/proj4rs/). + +## Compiling for WASM + +Install [wasm-pack](https://rustwasm.github.io/wasm-pack/book/) + +```bash +wasm-pack build --target web --no-default-features +``` + +Or if you have installed [cargo-make](https://sagiegurari.github.io/cargo-make/), use the following +command: + +```bash +cargo make wasm +``` + +### Running the WASM example + +There is a [`index.html`] file for testing the WASM module in a navigator. + +For security reasons, you need to run it from a server. +You can start a Python server with the following command: + +```bash +python3 -m http.server +``` + +The server will automatically serve the `index.html` file in the current directory. + + +## Build for npm + +``` +cargo make wasm_bundle +``` + +This will create a npm bundler package in pkg-bundler From 861af9a72b91b09c1518419d7fa9983954ea0807 Mon Sep 17 00:00:00 2001 From: neo Date: Mon, 7 Oct 2024 14:23:54 +0200 Subject: [PATCH 8/8] FIX: minor readme fix --- CONTRIBUTING.md | 2 +- README.md | 2 +- README_WASM.md | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3ba747b..8de00b6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,7 +1,7 @@ The documentation is available on [docs.rs](https://docs.rs/proj4rs/) and the demo on [docs.3liz.org](https://docs.3liz.org/proj4rs/). -## Contributing +# Contributing ### Modify diff --git a/README.md b/README.md index 23a5690..5fd7795 100644 --- a/README.md +++ b/README.md @@ -101,4 +101,4 @@ Proj.transform(from, to, point); ## Contributing -You can contribute to this library by going on the [proj4rs](https://github.com/3liz/proj4rs/) repository +You can contribute to this library by going on the [proj4rs](./CONTRIBUTING.md) repository diff --git a/README_WASM.md b/README_WASM.md index 4e7220b..6c3da4b 100644 --- a/README_WASM.md +++ b/README_WASM.md @@ -1,6 +1,8 @@ The documentation is available on [docs.rs](https://docs.rs/proj4rs/) and the demo on [docs.3liz.org](https://docs.3liz.org/proj4rs/). +# Build locally a package + ## Compiling for WASM Install [wasm-pack](https://rustwasm.github.io/wasm-pack/book/) @@ -18,7 +20,7 @@ cargo make wasm ### Running the WASM example -There is a [`index.html`] file for testing the WASM module in a navigator. +There is a `index.html` file for testing the WASM module in a navigator. For security reasons, you need to run it from a server. You can start a Python server with the following command: @@ -32,7 +34,7 @@ The server will automatically serve the `index.html` file in the current directo ## Build for npm -``` +```bash cargo make wasm_bundle ```