All Projects → unbug → Generator Webappstarter

unbug / Generator Webappstarter

Licence: mit
Quick start a web app for mobile.Automatically adjusts according to a device’s screen size without any extra work.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Generator Webappstarter

Gulp Scss Starter
Frontend development with pleasure. SCSS version
Stars: ✭ 339 (+13.76%)
Mutual labels:  webpack, gulp, babel
Frontie Webpack
Front-end Boilerplate | Gulp 4 + Webpack 4 + Babel + ITCSS Architecture + BEM Methodology + Twig.js
Stars: ✭ 102 (-65.77%)
Mutual labels:  webpack, gulp, babel
Wordpress Starter
📦 A starter template for WordPress websites
Stars: ✭ 26 (-91.28%)
Mutual labels:  webpack, gulp, babel
Generator Phaser Plus
[🛑 DISCONTINUED] It has been a long journey but development of `generator-phaser-plus` is now over. I recommend you have a look and fork `yandeu/phaser-project-template` instead.
Stars: ✭ 148 (-50.34%)
Mutual labels:  webpack, gulp, babel
Nodefony Starter
Nodefony Starter Node.js Framework
Stars: ✭ 95 (-68.12%)
Mutual labels:  webpack, babel, mvc-framework
Gulp Pug Starter
Frontend development with pleasure. Pug + SCSS version
Stars: ✭ 228 (-23.49%)
Mutual labels:  webpack, gulp, babel
gulp-webpack-boilerplate
A good foundation for your next frontend project.
Stars: ✭ 56 (-81.21%)
Mutual labels:  gulp, babel
sample-ui-react
Material-UI+ React.js + Redux [ Pug / Scss / Babel ]
Stars: ✭ 15 (-94.97%)
Mutual labels:  gulp, babel
react-flux-gulp-starter
A universal boilerplate for building React/Flux apps using Gulp and ES6.
Stars: ✭ 46 (-84.56%)
Mutual labels:  gulp, babel
generator-yeomify-landing
Yeoman generator for landing project powered by Gulp
Stars: ✭ 29 (-90.27%)
Mutual labels:  gulp, yeoman
generator-vars-jekyll
Generator for raw web app with CircleCI, Jekyll, Webpack, Express + more.
Stars: ✭ 18 (-93.96%)
Mutual labels:  gulp, yeoman
generator-angular-pro
AngularJS project generator for scalable, enterprise-grade web and mobile applications
Stars: ✭ 43 (-85.57%)
Mutual labels:  gulp, yeoman
generator-phaser-browserify
A generator for Phaser using Gulp and Browserify
Stars: ✭ 36 (-87.92%)
Mutual labels:  gulp, yeoman
2life-server
💌 双生:遇见另一半的美好:)(服务端)
Stars: ✭ 66 (-77.85%)
Mutual labels:  gulp, babel
webpack-gulp-wordpress-starter-theme
A WordPress theme with Webpack & Gulp
Stars: ✭ 110 (-63.09%)
Mutual labels:  gulp, babel
Blog
Front-end tech thoughts and share-ppt
Stars: ✭ 288 (-3.36%)
Mutual labels:  webpack, babel
generator-veams
Scaffold modern frontend web apps or web pages with a static site generator (Assemble or Mangony), Grunt and/or Gulp, Sass and Bower. Use modern frameworks like Bourbon, Bootstrap or Foundation and structure your JavaScript with ES Harmony support.
Stars: ✭ 45 (-84.9%)
Mutual labels:  gulp, yeoman
generator-vintage-frontend
Modern front-end workflow
Stars: ✭ 15 (-94.97%)
Mutual labels:  gulp, yeoman
Threejs Webpack Es6 Boilerplate
A basic boilerplate for a Three.js project compiled with Webpack and transpiled via Babel to enable using ES6 syntax.
Stars: ✭ 267 (-10.4%)
Mutual labels:  webpack, babel
Vue.js Starter Template
A starter template for Vue.js projects
Stars: ✭ 267 (-10.4%)
Mutual labels:  webpack, babel

NPM

Note: This generator is supporting a very early stage app,things gonna change very frequently,so please do not fork it or do any pull request.

Readme

webappstarter generator will give you a Simple Mobile Web App Boilerplate and Structure!

The App will automatically adjusts according to a device’s screen size without any extra work.

Install

npm install -g generator-webappstarter

Prereqs and installation requirements

1.install node and Python.

2.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 commands

1.generate a new project,run

mkdir myProject
cd myProject
yo webappstarter

or run with --skip-install option to skip install dependencies

mkdir myProject
cd myProject
yo webappstarter --skip-install

install dependencies manually with npm install or just copy node_modules folder from another project which was generated by webappstarter.

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

Warning: When you are asked before an overwrite can occur,please be careful.Default "Y" is overwrite,"n" is skip.

More configurations,please take a look at "project" property of "package.json" file after the generator is done. Run gulp to re-build project is required after change the "package.json" file.

Project commands

run 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 resources/images/ path,then generate scss/_sprites.csss and resources/images/sprites.png for sourceSprites in package.json.

gulp copy

5.run this command to start jshint.

gulp jshint

6.run this command to start browserSync,Change browserSync options in package.json.

gulp serve

7.run this command to start pagespeed,Change pagespeed options in package.json.

gulp pagespeed

Structure

The structure is modular design,follow the DOOR-KEY rule you only take minutes to understand it:

  • The DOOR for javascript is in /src/app/App.js,and the KEY is require,see webpack and commonjs
  • The DOOR for stylesheets is in /scss/styles.scss,and the KEY is @import,see SASS
  • The DOOR for HTML is in /html/debug/index.html,and the KEY is @@include,see gulp-file-include

Git

Random git commit message

 git commit -m"`curl -s http://whatthecommit.com/index.txt`"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].