All Projects → Pixel2HTML → pixel2html-generator

Pixel2HTML / pixel2html-generator

Licence: MIT license
PSA: this repo has been moved into Pixel2HTML/Pixel2HTML -->

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to pixel2html-generator

hubot-bearychat
BearyChat Adapter for Hubot
Stars: ✭ 99 (+330.43%)
Mutual labels:  yeoman
generator-lib-java
Yeoman generator for java library
Stars: ✭ 40 (+73.91%)
Mutual labels:  yeoman
generator-omaha
Yeoman generator designed to help you craft sustainable code for the modern web
Stars: ✭ 12 (-47.83%)
Mutual labels:  yeoman
generator-composer
🐘 Yeoman (http://yeoman.io) generator for a PHP Composer project
Stars: ✭ 16 (-30.43%)
Mutual labels:  yeoman
generator-springboot
A Yeoman generator for generating Microservice with SpringBoot
Stars: ✭ 121 (+426.09%)
Mutual labels:  yeoman
generator-react-jest-tests
A React Jest test generator. Generates snapshot tests for React components.
Stars: ✭ 34 (+47.83%)
Mutual labels:  yeoman
generator-deepexi-spring-cloud
deepexi java scaffold(spring cloud) generator
Stars: ✭ 30 (+30.43%)
Mutual labels:  yeoman
generator-node
🔧 Yeoman generator for Node projects.
Stars: ✭ 16 (-30.43%)
Mutual labels:  yeoman
generator-theia-extension
A Yeoman generator for extensions to the Theia IDE
Stars: ✭ 34 (+47.83%)
Mutual labels:  yeoman
generator-node-bahmutov
My personal Node project boilerplate generator
Stars: ✭ 39 (+69.57%)
Mutual labels:  yeoman
kibe
A simple Yeoman Generator to start projects with the most common tasks of my workflow using Gulp.
Stars: ✭ 33 (+43.48%)
Mutual labels:  yeoman
yeoman-php
A sample workaround to use yeoman with php.
Stars: ✭ 30 (+30.43%)
Mutual labels:  yeoman
generator-vars-jekyll
Generator for raw web app with CircleCI, Jekyll, Webpack, Express + more.
Stars: ✭ 18 (-21.74%)
Mutual labels:  yeoman
generator-flynt
A Yeoman generator to create Flynt Components
Stars: ✭ 19 (-17.39%)
Mutual labels:  yeoman
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 (+95.65%)
Mutual labels:  yeoman
generator-express-ts
create an app using express and typescript
Stars: ✭ 27 (+17.39%)
Mutual labels:  yeoman
generator-sf
Yeoman generator that scaffolds out a Symfony PHP app including Browsersync, various CSS preprocessors, jspm, webpack, browserify and Service Worker
Stars: ✭ 14 (-39.13%)
Mutual labels:  yeoman
generator-antd-pro
An easy way to build your ant-design-pro application.
Stars: ✭ 34 (+47.83%)
Mutual labels:  yeoman
generator-taskr
Official Yeoman generator for Taskr
Stars: ✭ 24 (+4.35%)
Mutual labels:  yeoman
generator-stencil
Scaffolding tool 🔨 for Stencil js applications
Stars: ✭ 16 (-30.43%)
Mutual labels:  yeoman

@pixel2html/generator-frontend

Build Status

Cool demo

We aim to generate a boilerplate code for projects when we know the specs. 💕

How to install

Node

You will need node installed in your machine. In case you don't have it (you can check this typing node --version in your terminal) please visit this link.

We also need to install Yeoman, and the Pixel2HTML Generator, so run this command in your terminal. The -g parameter is to install them globally so can use it in every project.

$ npm install -g yo @pixel2html/generator-frontend

Running the generator

To generate the Pixel2HTML Boilerplate go to your project folder and run this command in your shell

$ cd ~/your/project/folder
$ yo @pixel2html/frontend

The Pixel2HTML Boilerplate will ask you questions about this points. Answering with the desired options will generate the code.

  • Project Name?
  • Quantity of screens?
  • Markup Language? Options: HTML / Pug
  • Frontend Framework Options: None / Bootstrap 3.*/ Bootstrap 4 Beta / Foundation
  • jQuery? Options: true / false

There are also two more way to generate your files, you can find the instructions in the Wiki

Installing dependencies & running up

To work, the Pixel2HTML Boilerplate needs to install some dependencies to run the options you select. For this job, run this command in your shell

$ npm run start

Generated file structure

This boilerplate will create a set of files and folders


├──  dist/
├──  gulp/
├──  src/
│    └──  assets/
│    │    ├──  fonts/
│    │    ├──  icons/
│    │    ├──  images/
│    │    ├──  js/
│    │    ├──  styles/
│    │    │    ├──  components/
│    │    │    │    ├──  _buttons.scss
│    │    │    │    ├──  _forms.scss
│    │    │    │    └──  _nav.scss
│    │    │    ├──  screens/
│    │    │    │    ├──  _base.scss
│    │    │    │    └──  screen_*.scss
│    │    │    ├── _mixins.scss
│    │    │    ├── _reset.scss
│    │    │    ├── _variables.scss
│    │    │    ├── main.scss
│    │    │    └── vendor.scss
│    └──  screen_*.[html|pug]
├──  .editorcofig
├──  .gitattributes
├──  .gitignore
├──  .project.conf
├──  gulpfile.js
├──  package.json
└──  README.md

How to work with script files

We are using WebpackJS to bundle our script files. There's also ES6 on-demand transpilation and polyfills.

Learn more about Javascript Modules here Wes Bos Article About Modules

Example

import $ from 'jquery'
import 'bootstrap-sass'

We also included the amazing webpack-bundle-analyzer you can fine tweak you JS bundle size if you wish to. Fire it up running this command:

$ npm run debug

Available script commands.

Start to code.

  • $ npm run code

Build the project

  • $ npm run build

Available Gulp Commands

Helpers

  • $ gulp clean Clean /dist directory

Static Files

  • $ gulp main:static Compile static files (images, icons)
  • $ gulp main:images Move images
  • $ gulp main:icons Move icons

Fonts Files

  • $ gulp main:fonts Move project fonts
  • $ gulp vendor:fonts Move vendors fonts

Scripts

  • $ gulp main:scripts Concat, uglify and move project JS files
  • $ gulp vendor:scripts Concat, uglify and move vendors JS files

Styles

  • $ gulp main:styles Compile, concat, autoprefix and move [SCSS, Less, Stylus] project files
  • $ gulp vendor:styles Compile, concat, autoprefix and move [SCSS, Less, Stylus] vendor files

Delivery

  • $ gulp build Execute all the gulp directives and makes a .zip file with the latest code.
  • $ gulp release Execute all the gulp directives and makes a .zip file with the latest code.
  • $ gulp release --prod Execute all the gulp directives, prepare assets to production and makes a .zip file with the latest code.
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].