GithubHelp home page GithubHelp logo

barbagrigia / angular-starter Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 3.0 323 KB

Шаблон для быстрого старта проекта на Angular

License: MIT License

Makefile 0.82% JavaScript 94.85% HTML 4.34%

angular-starter's Introduction

angular-starter NPM version Build Status

Generator to fast start project with angular, webpack, postcss+sugarss, babel, eslint

Installation

First, install Yeoman and generator-as using npm (You must use Node.js v4+).

npm install -g generator-as yo

Then generate your new project:

yo as project-name

Modern stack

This boilerplate use this technologies:

  • Node.js v4+ (You must use v4+)
  • Webpack
  • PostCSS
  • Angular
  • Babel
  • Eslint

PostCSS

PostCSS is great tool to work with CSS.
There are indert-base SugarSS syntax in this boilerplate.
It is used precss and postcss-cssnext to process CSS.
It is used to lint CSS by stylelint.

Styleguide generator

It is generated styleguide for components from README.md files. See /styleguide page in your application. styleguide screenshot

Yeoman generator

Automate routine with yeoman generator. Just use these commands:

Create project:

yo as [PROJECT]

Add component:

yo as:component [--no-styles] [COMPONENT]

Add directive:

yo as:directive [DIRECTIVE]

Add filter:

yo as:filter [FILTER]

Add page:

yo as:page [--url URL] [STATE]

Add service:

yo as:service [SERVICE]

Separate modules for configs

Important part of the boilerplate all configs are splitted to modules. So they can update automatically by running npm update. For extending webpack config used special wpk-manager syntax.

Best practices

Use components

Avoid using jade mixins, use angular components instead. Angular components more flexible and reusable.

Use local reset

Use local css reset by all: initial in css. It helps share code between projects.

Recommended tools

easy ➞ hard to learn
🌕🌖🌗🌘🌑

License

MIT © Maxim Samoilov

angular-starter's People

Contributors

felixexter avatar nitive avatar

Watchers

 avatar  avatar

Forkers

kolpinsk csscheck

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.