nfw-cli's Issues
Switch env folder on migration
Generate specific migration folders depending on migration env
migration want to create table twice
Error when launching nfw new tpkpm --yarn
When I launch this.
I receive this error :
`>v Cloning repository ...
Username for 'https://github.com': [email protected]
Password for 'https://[email protected]@github.com':
v Git repository cloned successfully ....
v Renamed directory successfully
v .git folder successfully deleted ...
v Project successfully set up ....
โ Generating app ...x Failed to generate project : Command failed: cd tpkpm && mkdir -p ./dist/logs ./dist/migration/dump ./dist/uploads/documents/xs ./dist/uploads/documents/md ./dist/uploads/documents/xl && yarn add bcrypt && yarn global add typescript && yarn global add typeorm && yarn install && tsc
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
warning mysql > [email protected]: Custom ALPHABET bug fixed in v7.0.2
warning typedoc > @types/[email protected]: This is a stub types definition. handlebars provides its own type definitions, so you do not need this installed.
error An unexpected error occurred: "https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.6.tgz: Request failed "404 Not Found"".Generated successfully, Compiling TypeScript
โ Generating app ...Compiled successfully
v Config file generated successfully
`
Add 's' alias to start command
Add 's' alias to start command
example :
nfw s
ts-morph
We should consider using ts-morph to manipulate typescript files in future release instead of regexes ?
- Edit model command
- Remove relation command
- Model
- Serializer
- Enum
- Add relation command
- Model
- Serializer
- Enum
- Delete command
- Delete files
- Unroute
- Edit from config
Ressource creation problems
WHen I try to create a ressource with the name tasks I have 2 issues :
-
The CLI don't ask anymore the name of my column after the updateDate or even if I go in the all process.
-
At the end of the creation of the ressource I have this problem
? Want to add more column ? No v Model created in :/home/gilles/www/tpkpm/src/api/models/task.model.ts v Validation generated in src/api/validations/task.validation.ts v Test generated in test/task.test.ts v Repository generated in src/api/repositories/task.repository.ts v Controller generated in src/api/controllers/task.controller.ts v Serializer generated in src/api/serializers/task.serializer.ts v Relations generated in src/api/enums/relations/task.relations.ts v Middleware generated in src/api/middlewares/task.middleware.ts v Route generated in src/api/routes/v1/task.route.ts v Proxy router file updated. v Files generating done. v Generating task done v Executed migration successfully i Generated in src/migration x Typedoc failed to generate : Command failed: typedoc --out ./docs --ignoreCompilerErrors /bin/sh: 1: typedoc: not found
Remove command drop table failing when relations
- Use ORM to drop associated table and records
Generate database dump on migration
Generate database data dump on nfw migrate
Switch data on migration
migration errors not commented
When migration has errors , it only comment 1 line
auto migrate after nfw new
Print modified files when running a command
Generate doc after nfw generate
nfw ee error
When i Launch nfw ee and i choose dev I receive this error :
{ Error: ENOENT: no such file or directory, open 'development.ENV' at Object.openSync (fs.js:439:3) at Object.readFileSync (fs.js:344:35) at Object.editENVFiles (/home/gilles/www/nfw-cli/utils/execShellCommands.js:404:39) at process._tickCallback (internal/process/next_tick.js:68:7) errno: -2, syscall: 'open', code: 'ENOENT', path: 'development.ENV' }
Column createdAt and updatedAt missing from serializer
Route generation command
Create a command to generate routes without model
- Ask authorization level for the route (or by parameters)
start database creation
WHen you use nfw start and that the settings are correct for the database, it should verify if it exists. If not then it should create-it automaticly.
Instead of showing an error.
'null' after generating entity
should be null not 'null' on default
sqlAdaptator only selects "development" as current environment
New command
- Ask for container creation on new
- if the user refuses , it checks if the connection to the database is possible and then do the migration
- if the user accepts , create the container (With inquirer questions) and do the migration
auto create database after new
Code naming convention
After reviewing the code , it should be better to change some naming conventions and code style as described here
Also :
- Create a variable when the same function is used multiple times with same arguments
- Don't forget to await when a function is async
- Use the Log module to log and not console log , except for debug.
- Change some file naming to camelCase
Github issues
When i try to do a nfw new it ask me for my credentials but I can't insert them.
It should detect if it works in ssh and if not go in https.
Finaly It should ask for credentials
Change nfw new command and create env command
When you create a new app,
there should be a question asking : Do you nedd a database , Y , N.
After that you should create by default the dev env file based on the actual --env flow.
We should also create a env command to gennerate the good files instaed of changing it by hand
camelCase class names in templates
camelCase class names in templates
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.