<commit_before>---
layout: post
title: Angular with gulp and browserify
description: "Build Angularjs app with gulp and browserify"
modified: 2016-02-18
tags: [Angular, Angularjs, gulp, browserify]
---

### Background
一直在关注`Angular`, `gulp`, `browserify`,正好公司项目更新,就用这些新的东西来做更新我们的项目.项目地址：[https://github.com/sheguloves/monitor](https://github.com/sheguloves/monitor)
下面是在构建项目的过程中遇到的一些问题,记录下来,以免忘掉.

<!--more-->

### ng-route | angular-route
the folder structure like:
<commit_msg>update post<commit_after>---
layout: post
title: Angular with gulp and browserify
description: "Build Angularjs app with gulp and browserify"
modified: 2016-02-18
tags: [Angular, Angularjs, gulp, browserify]
---

### Background
一直在关注`Angular`, `gulp`, `browserify`,正好公司项目更新,就用这些新的东西来做更新我们的项目.项目地址：[https://github.com/sheguloves/monitor](https://github.com/sheguloves/monitor)
下面是在构建项目的过程中遇到的一些问题,记录下来,以免忘掉.

<!--more-->

### ng-route | angular-route
the folder structure like:

{% raw %}
example
    public
    src
        app
            controller
                login.js
                dashboard.js
                index.js
            partials
                login.html
                dashboard.html
            service
                index.js
                service.js
            main.js
        assets
            fonts
                Arial.ttf
            images
                1.png
                2.png
            styles
                styles.css
        data
            model.js
        env
            prod.js
            dev.js
    index.html
{% endraw %}
{'fraction_non_alphanumeric': 0.10647851186658114, 'fraction_numerical': 0.011545862732520847, 'mean_word_length': 1.9378531073446328, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3428422', 'n_tokens_mistral': 562, 'n_tokens_neox': 563, 'n_words': 104}