Adding in livereload to the examples
This commit is contained in:
parent
8600212043
commit
41b68baf90
|
@ -6,6 +6,14 @@ yarn install
|
|||
|
||||
## How to build
|
||||
|
||||
```sh
|
||||
# Builds the project and opens it in your browser.
|
||||
# It will auto-reload when you make any changes.
|
||||
yarn start
|
||||
```
|
||||
|
||||
## How to build for production
|
||||
|
||||
```sh
|
||||
# Builds the project and places it into the `dist` folder.
|
||||
yarn run build
|
||||
|
|
|
@ -4,11 +4,14 @@
|
|||
"name": "animation",
|
||||
"version": "0.1.0",
|
||||
"scripts": {
|
||||
"build": "rimraf dist/js && rollup --config"
|
||||
"build": "rimraf dist/js && rollup --config",
|
||||
"start": "rimraf dist/js && rollup --config --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@wasm-tool/rollup-plugin-rust": "^1.0.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "^1.31.0"
|
||||
"rollup": "^1.31.0",
|
||||
"rollup-plugin-livereload": "^1.2.0",
|
||||
"rollup-plugin-serve": "^1.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
import rust from "@wasm-tool/rollup-plugin-rust";
|
||||
import serve from "rollup-plugin-serve";
|
||||
import livereload from "rollup-plugin-livereload";
|
||||
|
||||
const is_watch = !!process.env.ROLLUP_WATCH;
|
||||
|
||||
export default {
|
||||
input: {
|
||||
|
@ -12,6 +16,14 @@ export default {
|
|||
plugins: [
|
||||
rust({
|
||||
serverPath: "js/",
|
||||
debug: false,
|
||||
}),
|
||||
|
||||
is_watch && serve({
|
||||
contentBase: "dist",
|
||||
open: true,
|
||||
}),
|
||||
|
||||
is_watch && livereload("dist"),
|
||||
],
|
||||
};
|
||||
|
|
|
@ -6,6 +6,14 @@ yarn install
|
|||
|
||||
## How to build
|
||||
|
||||
```sh
|
||||
# Builds the project and opens it in your browser.
|
||||
# It will auto-reload when you make any changes.
|
||||
yarn start
|
||||
```
|
||||
|
||||
## How to build for production
|
||||
|
||||
```sh
|
||||
# Builds the project and places it into the `dist` folder.
|
||||
yarn run build
|
||||
|
|
|
@ -4,11 +4,14 @@
|
|||
"name": "async",
|
||||
"version": "0.1.0",
|
||||
"scripts": {
|
||||
"build": "rimraf dist/js && rollup --config"
|
||||
"build": "rimraf dist/js && rollup --config",
|
||||
"start": "rimraf dist/js && rollup --config --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@wasm-tool/rollup-plugin-rust": "^1.0.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "^1.31.0"
|
||||
"rollup": "^1.31.0",
|
||||
"rollup-plugin-livereload": "^1.2.0",
|
||||
"rollup-plugin-serve": "^1.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
import rust from "@wasm-tool/rollup-plugin-rust";
|
||||
import serve from "rollup-plugin-serve";
|
||||
import livereload from "rollup-plugin-livereload";
|
||||
|
||||
const is_watch = !!process.env.ROLLUP_WATCH;
|
||||
|
||||
export default {
|
||||
input: {
|
||||
|
@ -12,6 +16,14 @@ export default {
|
|||
plugins: [
|
||||
rust({
|
||||
serverPath: "js/",
|
||||
debug: false,
|
||||
}),
|
||||
|
||||
is_watch && serve({
|
||||
contentBase: "dist",
|
||||
open: true,
|
||||
}),
|
||||
|
||||
is_watch && livereload("dist"),
|
||||
],
|
||||
};
|
||||
|
|
|
@ -6,6 +6,14 @@ yarn install
|
|||
|
||||
## How to build
|
||||
|
||||
```sh
|
||||
# Builds the project and opens it in your browser.
|
||||
# It will auto-reload when you make any changes.
|
||||
yarn start
|
||||
```
|
||||
|
||||
## How to build for production
|
||||
|
||||
```sh
|
||||
# Builds the project and places it into the `dist` folder.
|
||||
yarn run build
|
||||
|
|
|
@ -4,11 +4,14 @@
|
|||
"name": "counter",
|
||||
"version": "0.1.0",
|
||||
"scripts": {
|
||||
"build": "rimraf dist/js && rollup --config"
|
||||
"build": "rimraf dist/js && rollup --config",
|
||||
"start": "rimraf dist/js && rollup --config --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@wasm-tool/rollup-plugin-rust": "^1.0.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "^1.31.0"
|
||||
"rollup": "^1.31.0",
|
||||
"rollup-plugin-livereload": "^1.2.0",
|
||||
"rollup-plugin-serve": "^1.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
import rust from "@wasm-tool/rollup-plugin-rust";
|
||||
import serve from "rollup-plugin-serve";
|
||||
import livereload from "rollup-plugin-livereload";
|
||||
|
||||
const is_watch = !!process.env.ROLLUP_WATCH;
|
||||
|
||||
export default {
|
||||
input: {
|
||||
|
@ -12,6 +16,14 @@ export default {
|
|||
plugins: [
|
||||
rust({
|
||||
serverPath: "js/",
|
||||
debug: false,
|
||||
}),
|
||||
|
||||
is_watch && serve({
|
||||
contentBase: "dist",
|
||||
open: true,
|
||||
}),
|
||||
|
||||
is_watch && livereload("dist"),
|
||||
],
|
||||
};
|
||||
|
|
|
@ -6,6 +6,14 @@ yarn install
|
|||
|
||||
## How to build
|
||||
|
||||
```sh
|
||||
# Builds the project and opens it in your browser.
|
||||
# It will auto-reload when you make any changes.
|
||||
yarn start
|
||||
```
|
||||
|
||||
## How to build for production
|
||||
|
||||
```sh
|
||||
# Builds the project and places it into the `dist` folder.
|
||||
yarn run build
|
||||
|
|
|
@ -4,11 +4,14 @@
|
|||
"name": "todomvc",
|
||||
"version": "0.1.0",
|
||||
"scripts": {
|
||||
"build": "rimraf dist/js && rollup --config"
|
||||
"build": "rimraf dist/js && rollup --config",
|
||||
"start": "rimraf dist/js && rollup --config --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@wasm-tool/rollup-plugin-rust": "^1.0.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "^1.31.0"
|
||||
"rollup": "^1.31.0",
|
||||
"rollup-plugin-livereload": "^1.2.0",
|
||||
"rollup-plugin-serve": "^1.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
import rust from "@wasm-tool/rollup-plugin-rust";
|
||||
import serve from "rollup-plugin-serve";
|
||||
import livereload from "rollup-plugin-livereload";
|
||||
|
||||
const is_watch = !!process.env.ROLLUP_WATCH;
|
||||
|
||||
export default {
|
||||
input: {
|
||||
|
@ -12,6 +16,14 @@ export default {
|
|||
plugins: [
|
||||
rust({
|
||||
serverPath: "js/",
|
||||
debug: false,
|
||||
}),
|
||||
|
||||
is_watch && serve({
|
||||
contentBase: "dist",
|
||||
open: true,
|
||||
}),
|
||||
|
||||
is_watch && livereload("dist"),
|
||||
],
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue