Skip to content

Commit d833abc

Browse files
Pauansendilkumarn
authored andcommitted
Significant improvements
1 parent 875f158 commit d833abc

19 files changed

+191
-6795
lines changed

.bin/create-rust-webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (process.argv.length >= 3) {
2424
}
2525
}
2626

27-
run("git", ["clone", "https://github.com/rustwasm/rust-webpack-template.git", folderName]);
27+
run("git", ["clone", "--no-tags", "--depth", "0", "https://github.com/rustwasm/rust-webpack-template.git", path.join(folderName, "git-clone")]);
2828

2929
console.log(" 🦀 Rust + 🕸 WebAssembly + Webpack = ❤️ ");
3030

.gitignore

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
dist
21
node_modules
3-
crate/bin
4-
crate/pkg
5-
crate/target
6-
crate/wasm-pack.log
7-
crate/Cargo.lock
2+
/template/package-lock.json
3+
/template/Cargo.lock

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@ install:
77
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
88

99
script:
10+
- pushd template
1011
- npm install
1112
- npm run build
13+
- popd

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ npm init rust-webpack my-app
4545
This template comes pre-configured with all the boilerplate for compiling Rust
4646
to WebAssembly and hooking into a Webpack build pipeline.
4747

48-
* `npm run start` -- Serve the project locally for development at
49-
`http://localhost:8080`.
48+
* `npm start` -- Serve the project locally for development at
49+
`http://localhost:8080`. It auto-reloads when you make any changes.
5050

5151
* `npm run build` -- Bundle the project (in production mode).

crate/Cargo.toml

Lines changed: 0 additions & 40 deletions
This file was deleted.

crate/src/lib.rs

Lines changed: 0 additions & 32 deletions
This file was deleted.

index.html

Lines changed: 0 additions & 10 deletions
This file was deleted.

js/index.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)