Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

fix(misc): allow --js flag to be passed to @nrwl/web:lib schematic#3230

Merged
jaysoo merged 2 commits intonrwl:masterfrom
BigAB:web-lib-js-flag
Aug 19, 2020
Merged

fix(misc): allow --js flag to be passed to @nrwl/web:lib schematic#3230
jaysoo merged 2 commits intonrwl:masterfrom
BigAB:web-lib-js-flag

Conversation

@BigAB
Copy link
Contributor

@BigAB BigAB commented Jun 24, 2020

Current Behavior

Running nx g @nrwl/web:lib myLib --js produces an error Could not match option 'js' to the @nrwl/web:library schema.

Expected Behavior

That running nx g @nrwl/web:lib myLib --js would be able to run and generate a web library in js instead of ts.

Related Issue(s)

Fixes #2985

@BigAB BigAB requested a review from jaysoo June 24, 2020 23:24
@BigAB BigAB self-assigned this Jun 24, 2020
@juristr
Copy link
Member

juristr commented Jun 25, 2020

LGTM, but we should add some tests though 🙂

@ghost
Copy link

ghost commented Jun 25, 2020

@BigAB what is the effort on node app to enable --js flag?

@jaysoo
Copy link
Member

jaysoo commented Aug 19, 2020

@shreyansh-zazz We need to consider node separately. We're currently addressing the concern in the React community where some developers want to use plain JS rather than TS.

You could enable plain JS for node manually by adding allowJs: true to the tsconfig.json file.

@jaysoo jaysoo merged commit afd99b2 into nrwl:master Aug 19, 2020
@BigAB BigAB deleted the web-lib-js-flag branch August 19, 2020 04:45
Doginal pushed a commit to Doginal/nx that referenced this pull request Nov 25, 2020
…rwl#3230)

* fix(misc): allow --js flag to be passed to @nrwl/web:lib schematic

creates js files instead of ts files
s
ISSUES CLOSED: nrwl#2985

* fix(misc): add tests for --js flag in workspace
@github-actions
Copy link
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create @nrwl/web:lib with --js flag?

3 participants