Giter Site home page Giter Site logo

awibox / angular2-app-starter-kit Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 7.73 MB

BEM-builder Angular2 App - a module bundler for project with Angular2: BEM + Webpack + Angular2 + TypeScript + SASS

Shell 5.97% HTML 9.33% JavaScript 16.04% CSS 17.44% TypeScript 51.21%

angular2-app-starter-kit's Introduction

Запуск проекта

Необходимо

NodeJS версии v4.1.x+ и NPM 2.14.x+

 brew install node

Установить глобально пакеты webpack, ts-node и typescript

 npm install --global webpack
 npm install --global ts-node
 npm install --global typescript

Старт

Клонируем репозиторий в нужную директорию (ProjectName)

git clone https://github.com/awibox/bem-builder-angular.git ProjectName

Переходим в директорию проекта

cd ProjectName

Устанавливаем окружение из package.json

npm install

Запускаем проект

npm start

Открыть http://0.0.0.0:3000 или http://localhost:3000 в браузере

###Добавление страниц и модулей Для коректной работы необходимо установить gsed

brew install gnu-sed

Добавление страницы

./add page [Page Name]

Добавление модуля

./add module [Module Name]

Если скрипт не работает:

source add
chmod 777 add

Структура проекта

bem-builder-angular/
 ├──public/ 
 |   └──index.html                            * индексный html-файл
 ├──source/                                   * папка с исходниками         
 |   ├──app
 │   │   ├──pages                             * страницы 
 │   │   │   ├──home
 │   │   │   │   ├──home.ts                   * компонент сраницы
 │   │   │   │   ├──home.html                 * шаблон страницы
 │   │   │   │   └──home.scss                 * стили страницы
 │   │   │   └──...
 │   │   └──app.ts                            * основной файл приложения
 │   │
 |   ├──build                                 * папка с настойками сборки
 │   │   ├──sass  
 │   │   │   ├──build.scss                    * настройка сборки sass
 │   │   │   └──retina.scss                   * стили для ретина-экранов
 │   │   ├──main.ts                           * настройка сборки main.js
 │   │   └──vendor.ts                         * настройка сборки vendor.js
 │   │
 |   └──modules                               * папка с модулями
 │       ├──player
 │       │   ├──pipes                         * pipes для модуля
 │       │   ├──player.ts                     * описание моудля в typescript
 │       │   ├──player.html                   * шаблон модуля
 │       │   └──player.scss                   * стили модуля
 │       └──...
 │
 ├──add                                       * cкрипт для добавления модулей и страниц
 │
 ├──test/                                     * тесты
 │
 ├──tsconfig.json                             * настройки typescript
 ├──typings.json                              * описание typings
 ├──package.json                              * описание окружения для npm i
 │
 ├──webpack.config.js                         * конфигурация сборки webpack
 └──webpack.test.config.js                    * конфигурация webpack для тестов

angular2-app-starter-kit's People

Watchers

 avatar  avatar  avatar

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.