generator-webapp

A gulp.js generator for modern webapps

  • 所有者: yeoman/generator-webapp
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Web app generator Build Status Gitter

Yeoman generator that scaffolds out a front-end web app using gulp for the build process


? There is a pre-release version of this generator, you can install it by running npm install --global generator-webapp@next. Help us make it stable by reporting bugs! ?


Features

Please see our gulpfile for up to date information on what we support.

  • enable ES2015 features using Babel
  • CSS Autoprefixing
  • Built-in preview server with BrowserSync
  • Automagically compile Sass with libsass
  • Automagically lint your scripts
  • Map compiled CSS to source stylesheets with source maps
  • Awesome image optimization

For more information on what this generator can do for you, take a look at the gulp plugins used in our package.json.

libsass

Keep in mind that libsass is feature-wise not fully compatible with Ruby Sass. Check out this curated list of incompatibilities to find out which features are missing.

If your favorite feature is missing and you really need Ruby Sass, you can always switch to gulp-ruby-sass and update the styles task in gulpfile accordingly.

Getting Started

  • Install: npm install --global yo gulp-cli generator-webapp
  • Run yo webapp to scaffold your webapp
  • Run npm start to preview and watch for changes
  • Run npm start -- --port=8080 to preview and watch for changes in port 8080
  • Run npm install --save <package> to install dependencies, frontend included
  • Run npm run serve:test to run the tests in the browser
  • Run npm run serve:test -- --port=8085 to run the tests in the browser in port 8085
  • Run npm run build to build your webapp for production
  • Run npm run serve:dist to preview the production build
  • Run npm run serve:dist -- --port=5000 to preview the production build in port 5000

Docs

Options

  • --skip-welcome-message
    Skips Yeoman's greeting before displaying options.
  • --skip-install-message
    Skips the the message displayed after scaffolding has finished and before the dependencies are being installed.
  • --skip-install
    Doesn't automatically install dependencies after scaffolding has finished.
  • --test-framework=<framework>
    Either mocha or jasmine. Defaults to mocha.

Contribute

See the contributing docs.

Sponsors

Love Yeoman work and community? Help us keep it alive by donating funds to cover project expenses!
[Become a sponsor]

License

BSD license

主要指標

概覽
名稱與所有者yeoman/generator-webapp
主編程語言JavaScript
編程語言CSS (語言數: 4)
平台
許可證
所有者活动
創建於2014-02-02 17:08:27
推送於2024-01-30 08:49:40
最后一次提交
發布數68
最新版本名稱v4.0.0-9 (發布於 2024-01-30 09:49:22)
第一版名稱v0.1.1 (發布於 2013-02-14 21:52:31)
用户参与
星數3.8k
關注者數142
派生數708
提交數712
已啟用問題?
問題數494
打開的問題數15
拉請求數219
打開的拉請求數1
關閉的拉請求數74
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?