#this is a cli fast to create .vue file and import in router auto
# install
npm install -g l-cli
# run
switch terminal work path same with the path of package.json of project.
# check version
l-cli -version
# get help
l-cli -help
#get verison
l-cli -version
# src/components、src/components、src/router/index.js must be exists first
#create test.vue file in src/components/,the final path is src/components/test/test.vue
#and import in router auto like this : import Test from '@/components/test/test'
l-cli -c test
#create test.vue file in src/views/,the final path is src/views/test/test.vue
#and import in router auto like this : import Test from '@/views/test/test'
l-cli -v test
#create test.vue file in src/pages/,the final path is src/pages/test/test.vue
#and import in router auto like this : import Test from '@/pages/test/test'
l-cli -p test
-
Notifications
You must be signed in to change notification settings - Fork 0
luoxuzhi/l-cli
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published