DSRCorporation / angular-boilerplate

DSR Web OSS: AngularJS boilerplate by DSR Corporation
MIT License
4 stars 2 forks source link

DEPRECATED! DO NOT USE IT!

AngularJS boilerplate by DSR Corporation

Table of contents

Prerequisites

Install

yarn

Run

Serves your app with WebPack Dev Server in development mode

yarn start

Build your app for production

yarn build

Architecture

The app is represented with six groups of files:

Components and containers

Components and containers define your view layer. As components are concerned more with how things look, containers are bothered with how they work. There's a great article by Dan Abramov on this topic.

LESS

As there is no major reasons to choose LESS over SASS or otherwise it's been decided to go with LESS. It's recommended to use BEM-like naming for your styles.

LESS styles are spread across the files:

These are app wide styles which create your general CSS framework.

Features

ES6 support

We run babel with env preset, object spread and class properties support under the hood.

Code Validation

StandardJS is hooked up to validate the code. We srongly discourage using ESLint with custom presets as it leads to inconsistent code style across your projects.

Defaults

Release scripts

These scripts automate version increment flow via a separate version-inc branch, helping you bring your latest changes to the master and put a tag on it.

Prerequisites:

Scripts are provided by default:

Run a script with (it's better to run them from Git Bash to avoid entering a password to your ssh key for every command)

npm run version-patch
npm run version-minor
npm run version-major

For Unix-based systems add "-b" (for Bash) postfix:

npm run version-patch-b
npm run version-minor-b
npm run version-major-b

Each of these scripts follows the following flow:

License

The MIT License (MIT)

Copyright (c) 2016 DSR Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.