UNPKG

25.8 kBYAMLView Raw
1name: Autocode
2version: 1.3.1
3description: spec-driven code generator
4repository: https://github.com/ctate/autocode
5author:
6 name: Chris Tate
7 email: chris@autocode.run
8 url: 'https://autocode.run'
9company: Autocode
10license: Apache-2.0
11copyright: Copyright © 2015-2016 Autocode. All Rights Reserved.
12imports:
13 ctate/authors: ~0.3.7
14 ctate/bower: ~0.5.2
15 ctate/git: ~0.2.3
16 ctate/grunt: ~0.3.2
17 ctate/handlebars: ~0.4.4
18 ctate/license: ~0.5.2
19 ctate/npm: ~0.4.3
20 ctate/readme: ~0.5.4
21 ctate/travis: ~0.4.1
22exports:
23 ConfigSchema:
24 schema:
25 type: object
26 properties:
27 author:
28 type: object
29 properties:
30 name:
31 title: Name
32 type: string
33 email:
34 title: Email
35 type: string
36 url:
37 title: URL
38 type: string
39 copyright:
40 title: Copyright
41 type: string
42 description:
43 description: This project's description.
44 title: Description
45 type: string
46 exports:
47 type: object
48 additionalProperties:
49 type: object
50 properties:
51 description:
52 type: string
53 engine:
54 type: string
55 example:
56 type: string
57 helper:
58 type:
59 - string
60 - object
61 additionalProperties:
62 type: string
63 processor:
64 type: string
65 generator:
66 type: string
67 schema:
68 type:
69 - object
70 - string
71 spec:
72 type:
73 - array
74 - object
75 - string
76 type:
77 required: true
78 type: string
79 imports:
80 type: object
81 additionalProperties:
82 type:
83 - string
84 - object
85 properties:
86 aliases:
87 type: object
88 additionalProperties:
89 type: string
90 version:
91 type: string
92 name:
93 description: This project's name.
94 title: Name
95 type: string
96 version:
97 description: This project's version.
98 title: Version
99 type:
100 - number
101 - string
102 type: schema
103 VersionGenerator:
104 engine: handlebars.HandlebarsEngine
105 filename: version.txt
106 schema:
107 type: object
108 properties:
109 version:
110 required: true
111 type: string
112 template: version.hbs
113 type: generator
114outputs:
115 - generator: bower.ConfigGenerator
116 spec:
117 directory: app/lib/components
118
119 - generator: bower.PackageGenerator
120 spec:
121 name: autocode
122 description: $description
123 main: lib/autocode.js
124 dependencies:
125 CodeMirror: 5.7.0
126 dragula: 3.5.4
127 formulator: 0.10.1
128 google-diff-match-patch-js: 1.0.0
129 jquery: 2.1.4
130 jquery-cookie: 1.4.1
131 jquery-ui: 1.11.4
132 jstree: 3.2.1
133 js-yaml: 3.4.2
134 marked: 0.3.5
135 zeroclipboard: 2.2.0
136
137 - generator: git.GitignoreGenerator
138 spec:
139 items:
140 - .DS_Store
141 - app/lib/components/
142 - app/lib/scripts
143 - node_modules/
144
145 - generator: grunt.GruntfileGenerator
146 spec:
147 loadNpmTasks:
148 - grunt-contrib-concat
149 - grunt-contrib-watch
150 registerTask:
151 default:
152 - concat
153 config:
154 pkg: package.json
155 concat:
156 options:
157 separator: ;
158 dist:
159 src:
160 - app/src/scripts/autocode.js
161 - app/src/scripts/autocode/*.js
162 - app/src/scripts/*/**
163 dest: app/lib/scripts/autocode.js
164 watch:
165 files:
166 - app/src/scripts/autocode.js
167 - app/src/scripts/*/**
168 tasks:
169 - concat
170
171 - generator: license.LicenseGenerator
172 spec:
173 copyright: $copyright
174 license: $license
175
176 - generator: npm.PackageGenerator
177 spec: npm.yml
178
179 - generator: readme.ReadmeGenerator
180 spec:
181 name: $name
182 description: $description
183 badges:
184 - type: travis
185 subject: ctate/autocode
186 - type: gitter
187 subject: ctate/autocode
188 #logo:
189 # image: https://rawgit.com/crystal/autocode/master/.autocode/image.svg
190 # text: $name
191 # url: https://autocode.run
192 showTableOfContents: true
193 sections:
194 - name: install
195 title: Install
196 content: |
197 Use `npm` to install Autocode:
198
199 ```sh
200 npm install autocode -g
201 ```
202 - name: projects
203 title: Generators
204 content: |
205 <table width="100%">
206 <tr>
207 <td>
208 <a href="https://github.com/ctate/angular">
209 <img width="50" src="https://rawgit.com/ctate/angular/master/.autocode/icon.svg" />
210 </a>
211 </td>
212 <td>
213 <div><b><a href="https://github.com/ctate/angular">ctate/angular</a></b></div>
214 Generates an Angular app
215 </div>
216 </tr>
217 <tr>
218 <td>
219 <a href="https://github.com/ctate/asciinema">
220 <img width="50" src="https://rawgit.com/ctate/asciinema/master/.autocode/icon.svg" />
221 </a>
222 </td>
223 <td>
224 <div><b><a href="https://github.com/ctate/asciinema">ctate/asciinema</a></b></div>
225 Generates an Asciicast
226 </div>
227 </tr>
228 <tr>
229 <td>
230 <a href="https://github.com/ctate/backbone">
231 <img width="50" src="https://rawgit.com/ctate/backbone/master/.autocode/icon.svg" />
232 </a>
233 </td>
234 <td>
235 <div><b><a href="https://github.com/ctate/backbone">ctate/backbone</a></b></div>
236 Generates a Backbone app
237 </div>
238 </tr>
239 <tr>
240 <td>
241 <a href="https://github.com/ctate/bower">
242 <img width="50" src="https://rawgit.com/ctate/bower/master/.autocode/icon.svg" />
243 </a>
244 </td>
245 <td>
246 <div><b><a href="https://github.com/ctate/bower">ctate/bower</a></b></div>
247 Generates Bower config and package files
248 </div>
249 </tr>
250 <tr>
251 <td>
252 <a href="https://github.com/ctate/cocoapods">
253 <img width="50" src="https://rawgit.com/ctate/cocoapods/master/.autocode/icon.svg" />
254 </a>
255 </td>
256 <td>
257 <div><b><a href="https://github.com/ctate/cocoapods">ctate/cocoapods</a></b></div>
258 Generates a Podfile
259 </div>
260 </tr>
261 <tr>
262 <td>
263 <a href="https://github.com/ctate/coffeescript">
264 <img width="50" src="https://rawgit.com/ctate/coffeescript/master/.autocode/icon.svg" />
265 </a>
266 </td>
267 <td>
268 <div><b><a href="https://github.com/ctate/coffeescript">ctate/coffeescript</a></b></div>
269 Transforms CoffeeScript into JavaScript
270 </div>
271 </tr>
272 <tr>
273 <td>
274 <a href="https://github.com/ctate/composer">
275 <img width="50" src="https://rawgit.com/ctate/composer/master/.autocode/icon.svg" />
276 </a>
277 </td>
278 <td>
279 <div><b><a href="https://github.com/ctate/composer">ctate/composer</a></b></div>
280 Generates a Composer package file
281 </div>
282 </tr>
283 <tr>
284 <td>
285 <a href="https://github.com/ctate/cordova">
286 <img width="50" src="https://rawgit.com/ctate/cordova/master/.autocode/icon.svg" />
287 </a>
288 </td>
289 <td>
290 <div><b><a href="https://github.com/ctate/cordova">ctate/cordova</a></b></div>
291 Generates a Cordova app
292 </div>
293 </tr>
294 <tr>
295 <td>
296 <a href="https://github.com/ctate/django">
297 <img width="50" src="https://rawgit.com/ctate/django/master/.autocode/icon.svg" />
298 </a>
299 </td>
300 <td>
301 <div><b><a href="https://github.com/ctate/django">ctate/django</a></b></div>
302 Generates a Django app
303 </div>
304 </tr>
305 <tr>
306 <td>
307 <a href="https://github.com/ctate/docker">
308 <img width="50" src="https://rawgit.com/ctate/docker/master/.autocode/icon.svg" />
309 </a>
310 </td>
311 <td>
312 <div><b><a href="https://github.com/ctate/docker">ctate/docker</a></b></div>
313 Generates a Dockerfile
314 </div>
315 </tr>
316 <tr>
317 <td>
318 <a href="https://github.com/ctate/editorconfig">
319 <img width="50" src="https://rawgit.com/ctate/editorconfig/master/.autocode/icon.svg" />
320 </a>
321 </td>
322 <td>
323 <div><b><a href="https://github.com/ctate/editorconfig">ctate/editorconfig</a></b></div>
324 Generates an .editorconfig file
325 </div>
326 </tr>
327 <tr>
328 <td>
329 <a href="https://github.com/ctate/electron">
330 <img width="50" src="https://rawgit.com/ctate/electron/master/.autocode/icon.svg" />
331 </a>
332 </td>
333 <td>
334 <div><b><a href="https://github.com/ctate/electron">ctate/electron</a></b></div>
335 Generates an Electron app
336 </div>
337 </tr>
338 <tr>
339 <td>
340 <a href="https://github.com/ctate/eslint">
341 <img width="50" src="https://rawgit.com/ctate/eslint/master/.autocode/icon.svg" />
342 </a>
343 </td>
344 <td>
345 <div><b><a href="https://github.com/ctate/eslint">ctate/eslint</a></b></div>
346 Generates an .eslintrc file
347 </div>
348 </tr>
349 <tr>
350 <td>
351 <a href="https://github.com/ctate/express">
352 <img width="50" src="https://rawgit.com/ctate/express/master/.autocode/icon.svg" />
353 </a>
354 </td>
355 <td>
356 <div><b><a href="https://github.com/ctate/express">ctate/express</a></b></div>
357 Generates an Express app
358 </div>
359 </tr>
360 <tr>
361 <td>
362 <a href="https://github.com/ctate/feathers">
363 <img width="50" src="https://rawgit.com/ctate/feathers/master/.autocode/icon.svg" />
364 </a>
365 </td>
366 <td>
367 <div><b><a href="https://github.com/ctate/feathers">ctate/feathers</a></b></div>
368 Generates a Feathers app
369 </div>
370 </tr>
371 <tr>
372 <td>
373 <a href="https://github.com/ctate/git">
374 <img width="50" src="https://rawgit.com/ctate/git/master/.autocode/icon.svg" />
375 </a>
376 </td>
377 <td>
378 <div><b><a href="https://github.com/ctate/git">ctate/git</a></b></div>
379 Generates `.gitignore` and `.gitkeep` files
380 </div>
381 </tr>
382 <tr>
383 <td>
384 <a href="https://github.com/ctate/google-analytics">
385 <img width="50" src="https://rawgit.com/ctate/google-analytics/master/.autocode/icon.svg" />
386 </a>
387 </td>
388 <td>
389 <div><b><a href="https://github.com/ctate/google-analytics">ctate/google-analytics</a></b></div>
390 Generates tracking code for Google Analytics
391 </div>
392 </tr>
393 <tr>
394 <td>
395 <a href="https://github.com/ctate/grunt">
396 <img width="50" src="https://rawgit.com/ctate/grunt/master/.autocode/icon.svg" />
397 </a>
398 </td>
399 <td>
400 <div><b><a href="https://github.com/ctate/grunt">ctate/grunt</a></b></div>
401 Generates a Gruntfile
402 </div>
403 </tr>
404 <tr>
405 <td>
406 <a href="https://github.com/ctate/handlebars">
407 <img width="50" src="https://rawgit.com/ctate/handlebars/master/.autocode/icon.svg" />
408 </a>
409 </td>
410 <td>
411 <div><b><a href="https://github.com/ctate/handlebars">ctate/handlebars</a></b></div>
412 Renders Handlebars templates for generators
413 </div>
414 </tr>
415 <tr>
416 <td>
417 <a href="https://github.com/ctate/hosts">
418 <img width="50" src="https://rawgit.com/ctate/hosts/master/.autocode/icon.svg" />
419 </a>
420 </td>
421 <td>
422 <div><b><a href="https://github.com/ctate/hosts">ctate/hosts</a></b></div>
423 Generates a HOSTS file
424 </div>
425 </tr>
426 <tr>
427 <td>
428 <a href="https://github.com/ctate/httpd">
429 <img width="50" src="https://rawgit.com/ctate/httpd/master/.autocode/icon.svg" />
430 </a>
431 </td>
432 <td>
433 <div><b><a href="https://github.com/ctate/httpd">ctate/httpd</a></b></div>
434 Generates a `apache.conf` file
435 </div>
436 </tr>
437 <tr>
438 <td>
439 <a href="https://github.com/ctate/ini">
440 <img width="50" src="https://rawgit.com/ctate/ini/master/.autocode/icon.svg" />
441 </a>
442 </td>
443 <td>
444 <div><b><a href="https://github.com/ctate/ini">ctate/ini</a></b></div>
445 Renders INI files for generators
446 </div>
447 </tr>
448 <tr>
449 <td>
450 <a href="https://github.com/ctate/jade">
451 <img width="50" src="https://rawgit.com/ctate/jade/master/.autocode/icon.svg" />
452 </a>
453 </td>
454 <td>
455 <div><b><a href="https://github.com/ctate/jade">ctate/jade</a></b></div>
456 Renders Jade templates for generators
457 </div>
458 </tr>
459 <tr>
460 <td>
461 <a href="https://github.com/ctate/javascript">
462 <img width="50" src="https://rawgit.com/ctate/javascript/master/.autocode/icon.svg" />
463 <a/>
464 </td>
465 <td>
466 <div><b><a href="https://github.com/ctate/javascript">ctate/javascript</a></b></div>
467 Transforms JavaScript into beautiful JavaScript
468 </div>
469 </tr>
470 <tr>
471 <td>
472 <a href="https://github.com/ctate/jshint">
473 <img width="50" src="https://rawgit.com/ctate/jshint/master/.autocode/icon.svg" />
474 </a>
475 </td>
476 <td>
477 <div><b><a href="https://github.com/ctate/jshint">ctate/jshint</a></b></div>
478 Generates a `.jshintrc` file
479 </div>
480 </tr>
481 <tr>
482 <td>
483 <a href="https://github.com/ctate/json">
484 <img width="50" src="https://rawgit.com/ctate/json/master/.autocode/icon.svg" />
485 </a>
486 </td>
487 <td>
488 <div><b><a href="https://github.com/ctate/json">ctate/json</a></b></div>
489 Renders JSON files for generators
490 </div>
491 </tr>
492 <tr>
493 <td>
494 <a href="https://github.com/ctate/laravel">
495 <img width="50" src="https://rawgit.com/ctate/laravel/master/.autocode/icon.svg" />
496 </a>
497 </td>
498 <td>
499 <div><b><a href="https://github.com/ctate/laravel">ctate/laravel</a></b></div>
500 Generates a Laravel app
501 </div>
502 </tr>
503 <tr>
504 <td>
505 <a href="https://github.com/ctate/license">
506 <img width="50" src="https://rawgit.com/ctate/license/master/.autocode/icon.svg" />
507 </a>
508 </td>
509 <td>
510 <div><b><a href="https://github.com/ctate/license">ctate/license</a></b></div>
511 Generates a LICENSE file
512 </div>
513 </tr>
514 <tr>
515 <td>
516 <a href="https://github.com/ctate/martini">
517 <img width="50" src="https://rawgit.com/ctate/martini/master/.autocode/icon.svg" />
518 </a>
519 </td>
520 <td>
521 <div><b><a href="https://github.com/ctate/martini">ctate/martini</a></b></div>
522 Generates a Martini app
523 </div>
524 </tr>
525 <tr>
526 <td>
527 <a href="https://github.com/ctate/model">
528 <img width="50" src="https://rawgit.com/ctate/model/master/.autocode/icon.svg" />
529 </a>
530 </td>
531 <td>
532 <div><b><a href="https://github.com/ctate/model">ctate/model</a></b></div>
533 Model Schema
534 </div>
535 </tr>
536 <tr>
537 <td>
538 <a href="https://github.com/ctate/npm">
539 <img width="50" src="https://rawgit.com/ctate/npm/master/.autocode/icon.svg" />
540 </a>
541 </td>
542 <td>
543 <div><b><a href="https://github.com/ctate/npm">ctate/npm</a></b></div>
544 Generates `package.json` and `.npmignore` files
545 </div>
546 </tr>
547 <tr>
548 <td>
549 <a href="https://github.com/ctate/php">
550 <img width="50" src="https://rawgit.com/ctate/php/master/.autocode/icon.svg" />
551 </a>
552 </td>
553 <td>
554 <div><b><a href="https://github.com/ctate/php">ctate/php</a></b></div>
555 Generates `php.ini` files
556 </div>
557 </tr>
558 <tr>
559 <td>
560 <a href="https://github.com/ctate/pip">
561 <img width="50" src="https://rawgit.com/ctate/pip/master/.autocode/icon.svg" />
562 </a>
563 </td>
564 <td>
565 <div><b><a href="https://github.com/ctate/pip">ctate/pip</a></b></div>
566 Generates `requirements.txt` files
567 </div>
568 </tr>
569 <tr>
570 <td>
571 <a href="https://github.com/ctate/rails">
572 <img width="50" src="https://rawgit.com/ctate/rails/master/.autocode/icon.svg" />
573 </a>
574 </td>
575 <td>
576 <div><b><a href="https://github.com/ctate/rails">ctate/rails</a></b></div>
577 Generates a Rails app
578 </div>
579 </tr>
580 <tr>
581 <td>
582 <a href="https://github.com/ctate/raml">
583 <img width="50" src="https://rawgit.com/ctate/raml/master/.autocode/icon.svg" />
584 </a>
585 </td>
586 <td>
587 <div><b><a href="https://github.com/ctate/raml">ctate/raml</a></b></div>
588 Schemas for RAML
589 </div>
590 </tr>
591 <tr>
592 <td>
593 <a href="https://github.com/ctate/redis">
594 <img width="50" src="https://rawgit.com/ctate/redis/master/.autocode/icon.svg" />
595 </a>
596 </td>
597 <td>
598 <div><b><a href="https://github.com/ctate/redis">ctate/redis</a></b></div>
599 Generates a `redis.conf` file
600 </div>
601 </tr>
602 <tr>
603 <td>
604 <a href="https://github.com/ctate/rubygems">
605 <img width="50" src="https://rawgit.com/ctate/rubygems/master/.autocode/icon.svg" />
606 </a>
607 </td>
608 <td>
609 <div><b><a href="https://github.com/ctate/rubygems">ctate/rubygems</a></b></div>
610 Generates a `Gemfile`
611 </div>
612 </tr>
613 <tr>
614 <td>
615 <a href="https://github.com/ctate/sequelize">
616 <img width="50" src="https://rawgit.com/ctate/sequelize/master/.autocode/icon.svg" />
617 </a>
618 </td>
619 <td>
620 <div><b><a href="https://github.com/ctate/sequelize">ctate/sequelize</a></b></div>
621 Generates models for Sequelize
622 </div>
623 </tr>
624 <tr>
625 <td>
626 <a href="https://github.com/ctate/swagger">
627 <img width="50" src="https://rawgit.com/ctate/swagger/master/.autocode/icon.svg" />
628 </a>
629 </td>
630 <td>
631 <div><b><a href="https://github.com/ctate/swagger">ctate/swagger</a></b></div>
632 Schemas for Swagger
633 </div>
634 </tr>
635 <tr>
636 <td>
637 <a href="https://github.com/ctate/travis">
638 <img width="50" src="https://rawgit.com/ctate/travis/master/.autocode/icon.svg" />
639 </a>
640 </td>
641 <td>
642 <div><b><a href="https://github.com/ctate/travis">ctate/travis</a></b></div>
643 Generates a `.travis.yml` file
644 </div>
645 </tr>
646 <tr>
647 <td>
648 <a href="https://github.com/ctate/vagrant">
649 <img width="50" src="https://rawgit.com/ctate/vagrant/master/.autocode/icon.svg" />
650 </a>
651 </td>
652 <td>
653 <div><b><a href="https://github.com/ctate/vagrant">ctate/vagrant</a></b></div>
654 Generates a `Vagrantfile`
655 </div>
656 </tr>
657 <tr>
658 <td>
659 <a href="https://github.com/ctate/watchman">
660 <img width="50" src="https://rawgit.com/ctate/watchman/master/.autocode/icon.svg" />
661 </a>
662 </td>
663 <td>
664 <div><b><a href="https://github.com/ctate/watchman">ctate/watchman</a></b></div>
665 Generates a `.watchmanconfig` file
666 </div>
667 </tr>
668 </table>
669 - name: docs
670 title: Documentation
671 content: |
672 View Autocode's Official Documentation here:
673
674 [https://autocode.readme.io](https://autocode.readme.io)
675 - generator: travis.ConfigGenerator
676 spec:
677 language: node_js
678 node_js:
679 - '0.12'
680 - generator: VersionGenerator
681 path: cli
682 spec:
683 version: $version
684scripts:
685 build:
686 - description: Install Node.js via nvm.
687 command: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
688 - description: Install Bower via npm.
689 command: npm install bower -g
690 - description: Install CoffeeScript via npm.
691 command: npm install coffee-script -g
692 - description: Install Forever via npm.
693 command: npm install forever -g
694 - description: Install Grunt CLI via npm.
695 command: npm install grunt-cli -g
696 - description: Install npm Modules.
697 command: npm install
698 - description: Install bower Modules.
699 command: bower install
700 - description: Compile Library.
701 command: coffee --compile --output lib/ src/
702 - description: Compile CLI Library.
703 command: coffee --compile --output cli/lib/ cli/src/
704 - description: Run Grunt.
705 command: grunt
706 run:
707 - description: Run web server for Autocode app.
708 command: forever start -a --uid autocode-app app/app.js
709 stop:
710 - description: Stop web server for Autocode app.
711 command: forever stop autocode-app
712 test:
713 - description: Test Autocode.
714 command: npm test