ngxs / cli Goto Github PK
View Code? Open in Web Editor NEW⚡ CLI for @ngxs/store
⚡ CLI for @ngxs/store
Firstly, thanks to all involved on your wonderful work on NGXS!
The generated code (from this CLI) contains a class
for the state model, which seems to go against the NGXS style guide / recommendations (ref: https://www.ngxs.io/recipes/style-guide#avoid-saving-class-based-instances-in-your-state) which suggest that interfaces (and thus plain JS objects) should be used.
Just wondering if this is intentional, or just something that needs tweaking in the CLI? Let me know and I'd be happy to submit a PR to make the change.
Hi,
when I launch
npm i @ngxs/cli -g
I receive
npm ERR! code E404
npm ERR! 404 Not Found: @ngxs/cli@latest
@ngxs/cli
No, this issue has been ever since I started using ngxs cli version
The code generated by ngxs-cli includes non-breaking space characters (nbsp), and the spec utilizes deprecated code.
I'm writing an intellij/webstorm plugin for ngxs. It would be nice to have the ngxs cli working correctly.
Follow the steps here -> https://www.ngxs.io/plugins/cli to install @ngxs/cli
.
Generate a store using ngxs cli command
ngxs --name mystore --spec true --folder-name mystore
my-store.state.ts:
The injectable import contains NBSP
in it.
my-store.state.spec.ts
Uses deprecated code. I would additionally modify the boilerplate test case to simply verify the truthiness of the state. The default test case isn't particularly helpful.
Libs:
Browser: N/A
For Tooling issues:
v16.17.0
9.3.1
MacOS Apple M1 Pro - Ventura
@splincode We would be very grateful if you could publish the latest changes to npm, since we cannot use the client currently due to a high risk warning re the glob-parent
version used by node-plop.
Thanks in advance. 💐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.