Wasm-pack: Allow skipping `.gitignore` generation

Created on 21 Oct 2019  路  3Comments  路  Source: rustwasm/wasm-pack

馃挕 Feature description

Since implementing self-.gitignore generation in https://github.com/rustwasm/wasm-pack/issues/473, I've come across few codebases that prefer not to publish npm artifacts elsewhere nor integrate Rust build into their build process, but keep any artifacts in the Git repo.

I suggest adding --no-gitignore option for such usecases.

Alternative

Since in such cases module is not intended to be published anywhere, another alternative could be to implement this (omit .gitignore) as part of --no-pack implementation proposed here https://github.com/rustwasm/wasm-pack/issues/691.

cc @ashleygwilliams

Most helpful comment

Same, I'd like to generate only the wasm and js and skip all the extra stuff since I'm not using npm

All 3 comments

Actually... I realised that this is easily worked around by using one-off git add --force pkg/... and it's even better because you can selectively include only files you need in the repo (e.g. omit package.json or .d.ts).

I still think this would be nice to have.

Same, I'd like to generate only the wasm and js and skip all the extra stuff since I'm not using npm

Was this page helpful?
0 / 5 - 0 ratings

Related issues

netgusto picture netgusto  路  4Comments

Bernd-L picture Bernd-L  路  3Comments

mgattozzi picture mgattozzi  路  4Comments

turboladen picture turboladen  路  4Comments

pablosichert picture pablosichert  路  4Comments