liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<section>
    <h1 class="blue" data-id="#plugins/tools"><i class="ace-icon fa fa-desktop grey"></i> Tools</h1>
 
    <div class="hr hr-double hr32"></div>
    
    <!-- #section:plugins/tools -->
    <div class="help-content">
        <h3 class="info-title smaller" data-id="#plugins/tools.node-js">Node.js</h3>
        <!-- #section:plugins/tools.node-js -->
        <div class="info-section">
         <ul class="info-list list-unstyled">
            <li>
                For more information and installing Node.js please see its page at
                <a href="http://nodejs.org">nodejs.org</a>
            </li>
            
            <li>
                It's optional and you don't need to use it.
                <br />
                I've used it for compiling LESS files into CSS and
                Mustache templates into static HTML
            </li>
         </ul>
        </div>
        <!-- /section:plugins/tools.node-js -->
        
        
        
        <h3 class="info-title smaller" data-id="#plugins/tools.less-js">Less.js</h3>
        <!-- #section:plugins/tools.less-js -->
        <div class="info-section">
         <ul class="info-list list-unstyled">
            <li>
                Less is a CSS pre-processor which is useful for creating and maintating large amounts of CSS code
            </li>
            
            <li>
                You can find more info about it here <a href="http://lesscss.org/">lesscss.org</a>
            </li>            
            
            <li>
                Almost all Ace CSS files are generated from compiling LESS files
            </li>
            
            <li>
                First you need to install less compiler via npm:
                <code>npm install -g less</code>
                
            </li>
            
            <li>
                To compile LESS files, you can run the following commands:
                <br />
                <code>lessc ace.less path/to/ace.css</code>
                <br />
                <code>lessc skins/skins.less path/to/ace-skins.css</code>
                
                <br />
                For options such as compressing output, etc, you can use its help by using the following command:
                <br />
                <code>lessc --help</code>
            </li>
            
            <li>
                You can also use the <a href="../build/css.html">in-browser CSS builder tool</a> to build a custom CSS.
            </li>
         </ul>
        </div>
        <!-- /section:plugins/tools.less-js -->
        
        
        
        
        <h3 class="info-title smaller" data-id="#plugins/tools.mustache">Mustache Compilers</h3>
        <!-- #section:plugins/tools.mustache -->
        <div class="info-section">
         <ul class="info-list list-unstyled">
            <li>
                Ace's demo pages are mustache templates compiled into HTML
            </li>
            
            <li>
                For more info about Mustache files please see <a href="#files/mustache" class="help-more">Mustache files</a>
            </li>
            
            <li>
                PHP Mustache is used during development.
                <br />
                And Javascript Mustache compiler is used for final demo output                
            </li>
            
            <li>
                For more info please see the following links:
                <br />
                <a href="http://mustache.github.io/">Mustache</a>
                <br />
                <a href="https://github.com/janl/mustache.js/">Mustache.js</a>
                <br />
                <a href="http://twitter.github.io/hogan.js/">Hogan.js</a>
                <br />
                <a href="https://github.com/bobthecow/mustache.php">PHP Mustache</a>
            </li>
         </ul>
        </div>
        <!-- /section:plugins/tools.mustache -->
        
        
                
        <h3 class="info-title smaller" data-id="#plugins/tools.uglifyjs">UglifyJS</h3>
        <!-- #section:plugins/tools.uglifyjs -->
        <div class="info-section">
         <ul class="info-list list-unstyled">
            <li>
                UglifyJS is a popular tool for minifying Javascript files
            </li>
            
            <li>
                It can also be used inside browser like in the <a href="../build/js.html">Javascript builder tool</a>
            </li>
            
            <li>
                For more info please see <a href="http://lisperator.net/uglifyjs/">lisperator.net/uglifyjs/</a>
            </li>
         </ul>
        </div>
        <!-- /section:plugins/tools.uglifyjs -->
 
    
    <!-- /section:plugins/tools -->
</section>