在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):unbug/generator-webappstarter开源软件地址(OpenSource Url):https://github.com/unbug/generator-webappstarter开源编程语言(OpenSource Language):JavaScript 93.3%开源软件介绍(OpenSource Introduction):
Readmewebappstarter generator will give you a Simple Mobile Web App Boilerplate and Structure!
Installnpm install -g generator-webappstarter Prereqs and installation requirements2.install yeoman. npm install -g yo 3.[optional]Clone this git repo to your local,and from the root of the repo,run npm link to developing the generator locally. Generator commands1.generate a new project,run mkdir myProject
cd myProject
yo webappstarter or run with mkdir myProject
cd myProject
yo webappstarter --skip-install install dependencies manually with 2.generate a new module,run //this command will do:
//add "html/include/view-modulename.html" and inlude it to "html/include/views.html"
//add "scss/_view-modulename.scss" and import it to "scss/_view.scss"
//add "src/app/view/ModuleNameView.js"
//add "src/app/controller/ModuleNameController.js" and require it in src/app/App.js
yo webappstarter:module ModuleName 3.generate a new model,run //this command will do:
//add "src/app/model/ModelNameModel.js"
yo webappstarter:model ModelName 4.update your project's boilerplate and structure //this command will update
//"./src/core" directory
//"./src/lib" directory
//"./src/util" directory
//"./src/widget" directory
//some files in "./src/app/" directory
//some files in "./scss/" directory
//some files in "./html/" directory
yo webappstarter:update
More configurations,please take a look at "project" property of "package.json" file after the generator is done.
Run Project commandsrun this command before you get started. npm install -g gulp 1.build project,watch change and start browserSync,run gulp or run with forever forever ./node_modules/.bin/gulp 2.deploy to test server,run gulp deploytest Please update your ftp auth name and password in ".ftppass". View the page on test server http://office.mozat.com:8083/PROJECTNAME/. This command require openssl. For windows,you might needd to add openssl path to classpath. 3.deploy to offical server,run gulp deploy View the page on offical server http://m.deja.me/PROJECTNAME/. This command require rsync. For windows,unzip /tools/rsync.zip to a local path and add the path to classpath. 4.run this command to copy source images to project's gulp copy 5.run this command to start jshint. gulp jshint 6.run this command to start browserSync,Change browserSync options in gulp serve 7.run this command to start pagespeed,Change pagespeed options in gulp pagespeed StructureThe structure is modular design,follow the DOOR-KEY rule you only take minutes to understand it:
GitRandom git commit message git commit -m"`curl -s http://whatthecommit.com/index.txt`" |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论