Commit Graph

132 Commits

Author SHA1 Message Date
Patrice Chalin 67ee007fb0 chore(docs build): add flag to control log output level
closes #1823

Gulp targets like `check-deploy` and `serve-and-sync-devguide` are
quite verbose. This PR allows the `dgeni` logging level to be
controlled using the `--dgeni-log` flag. E.g., use `--dgen-log="error"`
to see only errors.

Also sets log level to "error" when gulp is silent
and log level for createShredMapPackage
2016-07-05 23:14:43 -07:00
Patrice Chalin 1b58a86ced chore(gulp): lint should ignore dart build directories 2016-06-30 11:50:28 -07:00
Filipe Silva 560bf2be6c chore: optimize gulp watchers
Reduce amount of watchers for `gulp serve-and-sync-devguide` by roughly 50% (~4900-ish to ~2500).

This should help with the 100% CPU usage #1082, on my machine it went from ~90% to ~50%.

At the end of the day we're still watching an insane amount of files, so it is a demanding process. Maybe using better watcher libs would also help.
2016-06-20 16:55:21 -07:00
Patrice Chalin 2739fb11a5 chore(gulp): don't symlink node_modules for dart examples
Oups, missed this earlier.
2016-06-15 15:30:48 -07:00
Foxandxss 34447904b9 make the example lintable 2016-06-15 15:14:45 -07:00
Filipe Silva 49a7bc3860 chore: Partition example shredder to do one directory at a time
also exclude /dist/ folder and exclude _examples from jade shredder
closes #1661
2016-06-13 22:20:45 -07:00
Patrice Chalin 5adbfb9502 chore(ignored/boilerplate files): cleanup
closes #1646
2016-06-13 11:33:12 -07:00
Foxandxss 4dcea96b6d chore: better protractor task
closes #1641
2016-06-13 10:39:51 -07:00
Patrice Chalin e6643b0869 chore(gulpfile): don't watch generated dart packages (#1601) 2016-06-08 08:54:43 -07:00
Foxandxss fb49cbe33f docs(cli-quickstart): add cli 5 min quickstart
closes #1606
2016-06-07 18:51:27 -07:00
Foxandxss f3205f5beb chore: first sweep on linting the codebase
closes #1616
2016-06-07 16:45:13 -07:00
Foxandxss 21d74d531a chore: update all packages to latest versions
closes #1607
2016-06-06 12:24:25 -07:00
Foxandxss 90b1e0be8d chore: fix git-changed-examples
closes #1585
2016-06-04 01:19:40 -07:00
Ward Bell 41947cbd1f chore: fix gulp serve-and-sync tasks and many broken example links
The serve-and-sync tasks wait for `_copy-example-boilerplate` to finish
Differentiates app compile, spec compile, and test failures
StyleGuide (for documentators) up-to-date
2016-06-01 16:17:06 -07:00
Ward Bell b2262c2bc9 chore: updated broken-link-checker package and tweaked logging. 2016-06-01 00:12:51 -07:00
Ward Bell 8a5df4cfa9 chore: support e2e-specs written in TypeScript
Update gulpfile and project to add a tsconfig to protractor test folders
Change all sample e2e-spec.js -> e2e-spec.ts
Split typings between e2e-spec & app code
Use same config for all e2e tests
Only 1/3 e2e specs truly converted.
Most don't pass because they fail TS transpile by Protractor due to missing type annotations
2016-05-31 22:03:13 -07:00
Eric Jimenez d12b74d244 fix(gulp): rename angular2 to @angular, fixes api doc examples 2016-05-26 09:22:25 -07:00
Filipe Silva 6c797d752a chore(travis): add Travis CI
closes #1526
2016-05-25 16:47:30 -07:00
Ward Bell e188e472f1 docs(e2e-tests): improve gulp e2e tasks and fix samples that were failing 2016-05-20 20:33:38 -07:00
Patrice Chalin 6751f779d0 test(e2e/dart): add support for Dart e2e testing
closes #1369
Add `--lang` option whose values are any combo of `(ts|js|dart)`
default is `(ts|js)`
`--lang=all` runs all language tests;
2016-05-17 10:31:49 -07:00
Foxandxss 773afc5f17 chore: make protractor report failed suites
closes #1242
2016-05-10 17:08:28 -07:00
Patrice Chalin 55bec4a097 chore(gulpfile): don't watch the dart build folder (#1344) 2016-05-10 13:17:10 +01:00
Ward Bell 3d5302adce chore: update to rc.0 2016-05-02 19:57:28 -07:00
John Papa d5e909bde0 docs(style-guide): add style-guide - v.4 2016-04-28 00:52:20 -07:00
Ward Bell e1862887ae docs(testing): more testing samples and infrastructure setup
added wallaby config; revised karma-test-shim
2016-04-22 13:24:44 -07:00
Ward Bell 7fdb40caa3 chore: replace VSCode-specific settings.json with broadly recommended .editorconfig
closes #1022
2016-04-05 10:15:27 -07:00
Torgeir Helgevold c1f2c397ff docs: add DI cookbook 2016-04-05 10:15:18 -07:00
Filipe Silva 3ec0e7147b fix(e2e): fix race condition 2016-04-02 15:08:48 -07:00
Ward Bell 1a154daa2e chore: add gulp link-checker task
also fix some of the broken links that it found
2016-03-10 23:53:43 -08:00
Ward Bell ad7f172ea5 docs: share 'styles.css' across all samples all langs; fix styles 2016-02-28 12:47:01 -08:00
Ward Bell d401716fc2 chore(gulpfile): ensure NODE_ENV=production before running harp 2016-02-16 17:52:25 -08:00
Ward Bell 8c291ab760 chore: exclude all fragment files from shred watchers
closes #845
Faster authoring process although must kick the browser more frequently with F5 because the refresh timing isn't quite right.
2016-02-16 10:21:43 -08:00
Ward Bell 79d251cfad devtools: fix jade-shredding watch exclusions 2016-02-15 18:40:25 -08:00
Jay Traband 3926d4202f chore: move jade fragments into separate _fragments subdirs.
closes #842
2016-02-15 13:31:08 -08:00
Ward Bell 3d992384c3 chore(devguide/ts): to beta.6 + typings + related doc updates 2016-02-12 00:56:22 -08:00
Jay Traband 59204bfbc8 chore(tooling): Fix for jade shredding thrashing
closes #731
2016-01-21 22:32:01 -08:00
Jay Traband 45ac0ee37d docs(tooling): new mixin for sharing jade files
merges #725
2016-01-19 15:43:47 -08:00
Jay Traband a53bfbc0c1 chore(harp compile): Fix for issue with harp compile not being able to coexist with large node_modules
closes #670
+ added support for making harp compile errors visible when running check-deploy task.
2016-01-08 18:47:46 -08:00
Jay Traband a5067e6bab chore(testing): e2e testing improvements; more devguide sample tests
closes #643
2016-01-04 11:23:48 -08:00
Jay Traband 872064e12e feat(e2e testing): testing framework + initial tests
close #604
2015-12-30 17:58:09 -08:00
Jay Traband cabec9c458 fix gulp check-deploy to run build-docs first 2015-12-14 23:14:30 -08:00
Jay Traband 296b501483 chore(devguide-tooling): add enforce-example-boilerplate gulp task
closes #485 and 479
removal all package.json from _example subdirs and add an example-config.json to each. Update add-example-symlinks to use new fns
updated gitignore, package.json
add tests to QuickStart
2015-12-12 13:57:18 -08:00
Jay Traband acb2dab91e chore(devguide-tooling): node_modules symlinks caused globbing problems for harp
closes #466
2015-12-10 01:16:36 -08:00
Peter Bacon Darwin 9c79be52c0 chore(doc-gen): generate the dart cheatsheet as part of `build-api-docs` 2015-12-09 17:19:29 +00:00
Peter Bacon Darwin 8459a4dd5c chore(doc-gen): allow dart cheatsheet to be generated 2015-12-08 17:31:53 -08:00
Jay Traband 0018e75d01 chore(devguide-tooling): node_modules symlink support for _examples and subdirs
closes #450.  READ COMMENTS IN PR450 FOR INSTRUCTIONS ON USAGE
We'll put these instructions some place better soon.

Also replace globule with globby ( perf issues) and explicitly exclude node_modules where possible.
Updated _examples/package.json for latest 3rd party libs (e.g. alpha.48) and
updated template-syntax/ts/package.json to be a prototypical example
2015-12-08 14:27:39 -08:00
Jay Traband f19e2f44ed chore(gulpfile): add gulp serve-and-sync-devguide task
closes #431
2015-12-01 13:21:17 -08:00
Jay Traband b06f2dcec6 (fix) plunker generation fixes
closes #424
plnkr - change plnkr.config -> plnkr.json and change output paths and names
update jade plunkers to new 'resources/live-examples' path + minor cleanup
update gulpfile to run build-plunkers as part of build-docs.
2015-11-30 21:00:02 -08:00
Jay Traband 4bbd9784ef dev-tooling: add plunker generation from _examples
closes #408, Dev Tooling 15
2015-11-25 12:23:14 -08:00
Peter Bacon Darwin 40d528b9de chore(gulpfile): use `gulp.watch` rather than `gulp-watch`
closes #371

This change makes the exclude (ignore) paths work properly.
Unfortunately this will not pick up "new" files that are added after
the watch has begun. Once gulp 4.0 is released, this will be fixed.
2015-11-14 12:53:44 -08:00
Peter Bacon Darwin 700b8e446a chore(gulpfile): ignore `node_modules` folders in examples
This should speed up watching as it is unusual to update files in these
folders during normal development.

If you do change files in an example `node_modules` folder then you must
restart the gulp task to trigger the shredder and reload.
2015-11-14 12:53:24 -08:00
Peter Bacon Darwin eb7533a6ef chore(gulpfile): ignore `node_modules` folders in examples
This should speed up watching as it is unusual to update files in these
folders during normal development.

If you do change files in an example `node_modules` folder then you must
restart the gulp task to trigger the shredder and reload.
2015-11-14 12:53:22 -08:00
Peter Bacon Darwin aa5767d38c chore(gulpfile): use `gutil.log` rather than `console.log` 2015-11-14 12:53:21 -08:00
Peter Bacon Darwin cd063b9188 chore(gulpfile): add 500ms read delay on all watches 2015-11-14 12:53:19 -08:00
Peter Bacon Darwin eddf5e7cf1 chore(gulpfile): refine the tasks for watching and synching 2015-11-14 12:53:19 -08:00
Peter Bacon Darwin 021c12d58a chore(gulp): re-enable browsersync watching for non-API files 2015-11-13 07:27:53 +00:00
Peter Bacon Darwin ebad24e94b chore(gulpfile): improve serve-and-sync task
Remove the `browserSync` watch as we are manually reloading the browser
when our own watchers complete.
Ensure that the API watcher actually triggers the browserSync reload.
2015-11-12 11:25:18 +00:00
Peter Bacon Darwin b68ef96472 api-builder: add target package 2015-11-07 09:30:55 +00:00
Peter Bacon Darwin 75d4cf86ec gulpfile: remove unused (and invalid) `_build-shred-maps` task 2015-11-06 21:46:44 +00:00
Peter Bacon Darwin 3e7f837f1a refact: complete move of libraries from `public` to `tools` folder 2015-11-04 11:20:47 +00:00
Jay Traband 53323851f8 exclude top level index.jade from being copied when generating api docs. 2015-10-27 20:37:14 -07:00
Jay Traband 9500a123f5 Work on zipping folders based on zipconfig.json files. Also involves refactoring of doc-shredder. 2015-10-27 09:35:37 -07:00
Jay Traband 0815895e8a reduce nodegit dependency to just those tasks that need it. 2015-10-16 18:17:36 -07:00
Jay Traband 680c9740f2 remove gulp 'serve-and-watch' ( never used) and replace it with a more useful 'build-and-serve' 2015-10-16 18:17:36 -07:00
Jay Traband b65d0e530b exclude /packages/ folders from shredding 2015-10-15 12:08:55 -07:00
Jay Traband a2fa48d0b4 check-deploy gulp task now builds all docs before deploying. 2015-10-10 09:04:27 -07:00
Jay Traband bb19588676 insure that the api docs appear under both public/docs/JS/latest and public/docs/TS/latest 2015-10-02 10:08:21 -07:00
Jay Traband 4f77b10a3c check-deploy task now can actually deploy 2015-09-28 11:14:12 -07:00
Jay Traband d0bfed6c98 updated so that all command executions use local npm packages. ( and added live-server). 2015-09-25 02:21:56 -07:00
Jay Traband 22c7b5cd25 added check-deploy gulp task 2015-09-25 01:28:36 -07:00
Jay Traband 6f6e83722e squashed commits for PR 222 from jtraband
- add warning when bad example tag is encountered.
- shredding for api docs + refactoring of gulpfile to clarify task names.
- added top level gulp tasks + error handling cleanup
- added test-api-builder gulp task
- added warning messages during build-shred-map processing
- mixin signature change
- updated styleguide ... continued.
- added @exampleTabs inlinetag support + refactoring shared services between @example and @exampleTabs
- added new inline tag @linkDevGuide + cleanup
- added angular source watch logic for serve-and-sync and source for examples changed from test -> examples + cleanup
- promisify del
- styleguide explanation of @example, @exampleTabs and @linkDevGuide
2015-09-23 14:04:58 -07:00
Jay Traband a30fddadd0 cleanup of shred-map logic to accommodate new api doc build 2015-09-18 13:27:39 -07:00
Jay Traband af3aacde19 remove basePath from docShredder options. Not useful and confusing when examplesDir and fragmentsDir don't share a basePath ( as when used for api shredding) 2015-09-18 13:27:38 -07:00
Jay Traband 44d066f14c cleanup 2015-09-18 13:22:33 -07:00
Jay Traband 3f6a9833dd fix merge conflict 2015-09-18 13:21:38 -07:00
Jay Traband 3d997d2994 Initial pass at moving api doc builder over to angular.io 2015-09-18 13:18:53 -07:00
Jay Traband a9e96389c0 json shredder/extract handling
style guide docs for makeJson
remove dups in git-changed-examples
support for git-changed-examples --after
file pattern exclusion for git-changed-examples
2015-09-18 13:18:50 -07:00
Jay Traband 50e758ba60 improved infrastructure for devguide and revised getting started (TS) 2015-09-10 13:32:57 -07:00
Jay Traband 64ea3b6f9a First pass at build-shred-map complete 2015-08-13 15:39:16 -07:00
Jay Traband 9b61d586bf added browser-sync, modified shred-single-dir in doc-shredder to return a promise, updated readme. 2015-08-13 15:39:13 -07:00
Jay Traband d9089f215c shred and watch build tooling - v2 ( dgeni, gulp, jade) 2015-08-07 14:49:35 -07:00
Jay Traband 7e6ff558e3 shred and watch build tooling ( dgeni, gulp, jade) 2015-08-07 14:49:35 -07:00