Comments (1)
It looks like the same issue as rustwasm/wasm_game_of_life#34
Try the patch below.
It seems the problem in the .bin
dir. It has to be renamed .bin -> ./bin
and .bin
dir is for the node_modules/.bin
only.
With .bin
dir in the root the command yarn global add create-wasm-app
does NOT only create soft links in the dir $(yarn global bin)
, but yet it deletes other links from that dir.
So, the command yarn create wasm-app
does not work.
Tested with a local git clone of the create-wasm-app
.
The link is created as required, but the yarn create
command still fails.
It seems it implicitly reinstalls the npm package while execiting (why to reinstall?).
So, it is to update the package in the global repository.
ls -l ~/.yarn/bin
ls -l $(yarn global bin)
lrwxrwxrwx ... create-wasm-app -> ../../.config/yarn/global/node_modules/.bin/create-wasm-app
diff --git a/.bin/create-wasm-app.js b/bin/create-wasm-app.js
similarity index 100%
rename from .bin/create-wasm-app.js
rename to bin/create-wasm-app.js
diff --git a/package.json b/package.json
index d21d358..1731e4f 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"description": "create an app to consume rust-generated wasm packages",
"main": "index.js",
"bin": {
- "create-wasm-app": ".bin/create-wasm-app.js"
+ "create-wasm-app": "./bin/create-wasm-app.js"
},
"scripts": {
"build": "webpack --config webpack.config.js",
from create-wasm-app.
Related Issues (20)
- Validate whether if Git is installed in advance
- Need to publish a new release to npm HOT 3
- Minimum Node version HOT 1
- WebAssembly module is included in initial chunk HOT 2
- Tutorial issue section 4.4 HOT 1
- live reload/automatic recompile for wasm lib?
- Support webpack v5 HOT 5
- Prominently describe target use case and link to other templates HOT 1
- Prompt for user's preferred bundler HOT 1
- should this include a wasm pkg as an example?
- This module doesn't work anymore HOT 8
- express with wasm HOT 2
- mkdirp HOT 1
- create demo gif
- [cloning template failed] npm init wasm-app HOT 16
- Bump webpack-dev-server to mute npm audit
- Electron bundle
- Which is better performant for rust-wasm?
- Set up CI for this template
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-wasm-app.