diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ddb4f05 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +*.00 +*.01 +*.lock +*.log +*~ +.* +core +data +electron-lite +example.js +external +node_modules +tmp +utility2 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..923cbaf --- /dev/null +++ b/.travis.yml @@ -0,0 +1,32 @@ +before_install: + # init xvfb + # http://docs.travis-ci.com/user/gui-and-headless-browsers/ + - "export DISPLAY=:99.0 && sh -e /etc/init.d/xvfb start" +branches: + only: + - alpha + - beta + - cron + - docker.base + - docker.latest + - master + - publish + - task +env: + global: + # this value is auto-created by shTravisCryptoAesEncryptYml + - secure: hpTh6JfSLD2zFoG9a9J3GC2LsAwUHSXw0EnpDUYzeo9w7M1+nMWcOzEQYN4AIEZh4bSP7ORZz5RtDX+0quQ4nAckBLrpd87/8bNwZcyNO9h3s+FmYyEGYpMmlqGZdF4O6Rm6jRgP6QoZw4bx/eiOWbfFWUfynYFudc9u4Rgo/2iPVmPfPB7ppNtGOwH0xM9+c64fe1pAysDgpexAvM7RRCZJnzO9kT4wg2j4ldhPTjpd9L1MerdEVCr6bcfpMPKS0b2t33ZjM3ZVjC3Q8uxel8IkumppaoJfJqMz23zg/fzdCYYZzmxHNjThE+5bgmjeSINNkMCaXE9VcaWBP0P/YQj+F5eRwZupW329Vyc/9zvnhAtRb7/VcgEoJ44W+r3VrNFoaNe4tnhYFVLeEi7wmaY+OnqZJ3hZ6tXBmEozqDyOyxGMCunF8+8CiE+LyDpVUVjFBq6DgiGIEipRwCH2s0UXxL6c5zov/1uv7ih7HVwIhAWX9XDo/VWyZtmVduPIGD4+Cs1bbV8lSJR+rrPkX9hJHUFjxLRK8kagDMh57vXrjc/QRjddhVWbseCfRlG++OQEV92VZrGnMmBin+Xbnn0GZusZTLh7le1b9aSBrDj4lGb2QT4Hs1Ni2NJgfIGI+6YUPyYe8+fDa6lSW2Q26aYEBxKEjOr3oEWq4CWNKHw= # CRYPTO_AES_KEY + # this value is auto-created by shTravisCryptoAesEncryptYml + +language: + - node_js +node_js: + - 6 + # - node +script: + - npm run build-ci +services: + - docker +# http://docs.travis-ci.com/user/workers/container-based-infrastructure +sudo: + false diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..34c088d --- /dev/null +++ b/LICENSE @@ -0,0 +1,9 @@ +MIT License (https://opensource.org/licenses/MIT) + +Copyright 2014 Kai Zhu (kaizhu256@gmail.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index e69de29..0060222 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,161 @@ +# npmdoc-generator-angular-fullstack + +#### basic api documentation for [generator-angular-fullstack (v4.2.0)](https://github.com/angular-fullstack/generator-angular-fullstack) [![npm package](https://img.shields.io/npm/v/npmdoc-generator-angular-fullstack.svg?style=flat-square)](https://www.npmjs.org/package/npmdoc-generator-angular-fullstack) [![travis-ci.org build-status](https://api.travis-ci.org/npmdoc/node-npmdoc-generator-angular-fullstack.svg)](https://travis-ci.org/npmdoc/node-npmdoc-generator-angular-fullstack) + +#### Yeoman generator for creating MEAN stack applications, using MongoDB, Express, AngularJS, and Node + +[![NPM](https://nodei.co/npm/generator-angular-fullstack.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/generator-angular-fullstack) + +- [https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build/apidoc.html](https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build/apidoc.html) + +[![apidoc](https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build/screenCapture.buildCi.browser.%252Ftmp%252Fbuild%252Fapidoc.html.png)](https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build/apidoc.html) + +![npmPackageListing](https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build/screenCapture.npmPackageListing.svg) + +![npmPackageDependencyTree](https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build/screenCapture.npmPackageDependencyTree.svg) + + + +# package.json + +```json + +{ + "author": { + "name": "Andrew Koroluk", + "url": "http://andrewk.me/" + }, + "bugs": { + "url": "https://github.com/angular-fullstack/generator-angular-fullstack/issues" + }, + "contributors": [ + { + "name": "Tyler Henkel", + "url": "http://tylerhenkel.com/" + }, + { + "name": "Cody Mize", + "url": "http://codymize.com/" + }, + { + "name": "Brian Ford", + "url": "http://briantford.com/" + }, + { + "name": "Pascal Hartig", + "url": "http://passy.me/" + }, + { + "name": "Eddie Monge", + "url": "http://eddiemonge.com" + }, + { + "name": "Sindre Sorhus", + "url": "https://twitter.com/sindresorhus" + } + ], + "dependencies": { + "babel-core": "^6.20.0", + "babel-eslint": "^7.1.0", + "babel-plugin-syntax-class-properties": "^6.13.0", + "babel-plugin-syntax-flow": "^6.18.0", + "babel-plugin-transform-flow-strip-types": "^6.18.0", + "babel-register": "^6.22.0", + "bluebird": "^3.4.5", + "chalk": "^1.1.0", + "generator-ng-component": "~1.0.5", + "glob": "^7.0.5", + "gulp-babel": "^6.1.2", + "gulp-beautify": "^2.0.0", + "gulp-eslint": "^3.0.1", + "gulp-filter": "^5.0.0", + "gulp-tap": "^0.1.3", + "insight": "~0.8.3", + "lodash": "^4.17.4", + "semver": "^5.1.0", + "underscore.string": "^3.1.1", + "yeoman-generator": "~0.24.1", + "yeoman-welcome": "^1.0.1" + }, + "description": "Yeoman generator for creating MEAN stack applications, using MongoDB, Express, AngularJS, and Node", + "devDependencies": { + "babel-plugin-transform-class-properties": "^6.19.0", + "babel-preset-es2015": "^6.18.0", + "chai": "^3.5.0", + "del": "^2.2.0", + "grunt": "^1.0.1", + "grunt-build-control": "^0.7.0", + "grunt-david": "~0.7.0", + "grunt-release": "^0.14.0", + "gulp": "^3.9.1", + "gulp-conventional-changelog": "^1.1.0", + "gulp-gh-pages": "^0.5.4", + "gulp-if": "^2.0.1", + "gulp-mocha": "^3.0.0", + "gulp-plumber": "^1.1.0", + "gulp-util": "^3.0.7", + "jit-grunt": "~0.10.0", + "lazypipe": "^1.0.1", + "merge-stream": "^1.0.0", + "minimatch": "^3.0.2", + "mocha": "^3.1.2", + "q": "^1.0.1", + "recursive-readdir": "^2.0.0", + "run-sequence": "^1.2.1", + "shelljs": "^0.7.5", + "should": "^11.1.0", + "yeoman-assert": "^3.0.0", + "yeoman-test": "~1.6.0" + }, + "directories": {}, + "dist": { + "shasum": "9e0cc7a9cfca2971a613d6cedaea7df68a7262ee", + "tarball": "https://registry.npmjs.org/generator-angular-fullstack/-/generator-angular-fullstack-4.2.0.tgz" + }, + "engines": { + "node": "^6.2.2", + "npm": "^3.9.5" + }, + "gitHead": "bc0ce9a73ac859264508839f44cca24773b5c14a", + "homepage": "https://github.com/angular-fullstack/generator-angular-fullstack", + "keywords": [ + "yeoman-generator", + "mean", + "mongodb", + "angularjs", + "express", + "scaffold", + "fullstack", + "framework", + "component", + "front-end", + "app" + ], + "license": "BSD-2-Clause", + "maintainers": [ + { + "name": "daftmonk" + }, + { + "name": "awk34" + } + ], + "name": "generator-angular-fullstack", + "optionalDependencies": {}, + "repository": { + "type": "git", + "url": "git://github.com/angular-fullstack/generator-angular-fullstack.git" + }, + "scripts": { + "prepublish": "gulp build", + "test": "gulp updateFixtures:test && gulp installFixtures && gulp build && gulp test" + }, + "version": "4.2.0", + "bin": {} +} +``` + + + +# misc +- this document was created with [utility2](https://github.com/kaizhu256/node-utility2) diff --git a/assets.npmdoc_generator_angular_fullstack.rollup.js b/assets.npmdoc_generator_angular_fullstack.rollup.js new file mode 100644 index 0000000..f44567e --- /dev/null +++ b/assets.npmdoc_generator_angular_fullstack.rollup.js @@ -0,0 +1,53 @@ +/* istanbul instrument in package npmdoc_generator_angular_fullstack */ +/*jslint + bitwise: true, + browser: true, + maxerr: 8, + maxlen: 96, + node: true, + nomen: true, + regexp: true, + stupid: true +*/ +(function () { + 'use strict'; + var local; + + + + // run shared js-env code - init-before + (function () { + // init local + local = {}; + // init modeJs + local.modeJs = (function () { + try { + return typeof navigator.userAgent === 'string' && + typeof document.querySelector('body') === 'object' && + typeof XMLHttpRequest.prototype.open === 'function' && + 'browser'; + } catch (errorCaughtBrowser) { + return module.exports && + typeof process.versions.node === 'string' && + typeof require('http').createServer === 'function' && + 'node'; + } + }()); + // init global + local.global = local.modeJs === 'browser' + ? window + : global; + // init utility2_rollup + local = local.global.utility2_rollup || local; + // init lib + local.local = local.npmdoc_generator_angular_fullstack = local; + // init exports + if (local.modeJs === 'browser') { + local.global.utility2_npmdoc_generator_angular_fullstack = local; + } else { + module.exports = local; + module.exports.__dirname = __dirname; + module.exports.module = module; + } + }()); +}()); diff --git a/lib.npmdoc_generator_angular_fullstack.js b/lib.npmdoc_generator_angular_fullstack.js new file mode 100644 index 0000000..f44567e --- /dev/null +++ b/lib.npmdoc_generator_angular_fullstack.js @@ -0,0 +1,53 @@ +/* istanbul instrument in package npmdoc_generator_angular_fullstack */ +/*jslint + bitwise: true, + browser: true, + maxerr: 8, + maxlen: 96, + node: true, + nomen: true, + regexp: true, + stupid: true +*/ +(function () { + 'use strict'; + var local; + + + + // run shared js-env code - init-before + (function () { + // init local + local = {}; + // init modeJs + local.modeJs = (function () { + try { + return typeof navigator.userAgent === 'string' && + typeof document.querySelector('body') === 'object' && + typeof XMLHttpRequest.prototype.open === 'function' && + 'browser'; + } catch (errorCaughtBrowser) { + return module.exports && + typeof process.versions.node === 'string' && + typeof require('http').createServer === 'function' && + 'node'; + } + }()); + // init global + local.global = local.modeJs === 'browser' + ? window + : global; + // init utility2_rollup + local = local.global.utility2_rollup || local; + // init lib + local.local = local.npmdoc_generator_angular_fullstack = local; + // init exports + if (local.modeJs === 'browser') { + local.global.utility2_npmdoc_generator_angular_fullstack = local; + } else { + module.exports = local; + module.exports.__dirname = __dirname; + module.exports.module = module; + } + }()); +}()); diff --git a/package.json b/package.json new file mode 100644 index 0000000..3f727b6 --- /dev/null +++ b/package.json @@ -0,0 +1,40 @@ +{ + "author": "kai zhu ", + "buildNpmdoc": "generator-angular-fullstack", + "description": "#### basic api documentation for [generator-angular-fullstack (v4.2.0)](https://github.com/angular-fullstack/generator-angular-fullstack) [![npm package](https://img.shields.io/npm/v/npmdoc-generator-angular-fullstack.svg?style=flat-square)](https://www.npmjs.org/package/npmdoc-generator-angular-fullstack) [![travis-ci.org build-status](https://api.travis-ci.org/npmdoc/node-npmdoc-generator-angular-fullstack.svg)](https://travis-ci.org/npmdoc/node-npmdoc-generator-angular-fullstack)", + "devDependencies": { + "electron-lite": "kaizhu256/node-electron-lite#alpha", + "generator-angular-fullstack": "*", + "utility2": "kaizhu256/node-utility2#alpha" + }, + "engines": { + "node": ">=4.0" + }, + "homepage": "https://github.com/npmdoc/node-npmdoc-generator-angular-fullstack", + "keywords": [ + "documentation", + "generator-angular-fullstack" + ], + "license": "MIT", + "main": "lib.npmdoc_generator_angular_fullstack.js", + "name": "npmdoc-generator-angular-fullstack", + "nameAlias": "npmdoc_generator_angular_fullstack", + "nameOriginal": "npmdoc-generator-angular-fullstack", + "os": [ + "darwin", + "linux" + ], + "repository": { + "type": "git", + "url": "https://github.com/npmdoc/node-npmdoc-generator-angular-fullstack.git" + }, + "scripts": { + "build-ci": "utility2 shReadmeTest build_ci.sh", + "env": "env", + "heroku-postbuild": "(set -e; npm install \"kaizhu256/node-utility2#alpha\"; utility2 shDeployHeroku)", + "postinstall": "if [ -f npm_scripts.sh ]; then ./npm_scripts.sh postinstall; fi", + "start": "(set -e; export PORT=${PORT:-8080}; utility2 start test.js)", + "test": "(set -e; export PORT=$(utility2 shServerPortRandom); utility2 test test.js)" + }, + "version": "2017.4.25" +} diff --git a/test.js b/test.js new file mode 100644 index 0000000..23d36be --- /dev/null +++ b/test.js @@ -0,0 +1,195 @@ +/* istanbul instrument in package npmdoc_generator_angular_fullstack */ +/*jslint + bitwise: true, + browser: true, + maxerr: 8, + maxlen: 96, + node: true, + nomen: true, + regexp: true, + stupid: true +*/ +(function () { + 'use strict'; + var local; + + + + // run shared js-env code - init-before + (function () { + // init local + local = {}; + // init modeJs + local.modeJs = (function () { + try { + return typeof navigator.userAgent === 'string' && + typeof document.querySelector('body') === 'object' && + typeof XMLHttpRequest.prototype.open === 'function' && + 'browser'; + } catch (errorCaughtBrowser) { + return module.exports && + typeof process.versions.node === 'string' && + typeof require('http').createServer === 'function' && + 'node'; + } + }()); + // init global + local.global = local.modeJs === 'browser' + ? window + : global; + switch (local.modeJs) { + // re-init local from window.local + case 'browser': + local = local.global.utility2.objectSetDefault( + local.global.utility2_rollup || local.global.local, + local.global.utility2 + ); + break; + // re-init local from example.js + case 'node': + local = (local.global.utility2_rollup || require('utility2')) + .requireReadme(); + break; + } + // export local + local.global.local = local; + }()); + + + + // run shared js-env code - function + (function () { + return; + }()); + switch (local.modeJs) { + + + + // run browser js-env code - function + case 'browser': + break; + + + + // run node js-env code - function + case 'node': + break; + } + + + + // run shared js-env code - init-after + (function () { + return; + }()); + switch (local.modeJs) { + + + + // run browser js-env code - init-after + case 'browser': + local.testCase_browser_nullCase = local.testCase_browser_nullCase || function ( + options, + onError + ) { + /* + * this function will test browsers's null-case handling-behavior-behavior + */ + onError(null, options); + }; + + // run tests + local.nop(local.modeTest && + document.querySelector('#testRunButton1') && + document.querySelector('#testRunButton1').click()); + break; + + + + // run node js-env code - init-after + /* istanbul ignore next */ + case 'node': + local.testCase_buildApidoc_default = local.testCase_buildApidoc_default || function ( + options, + onError + ) { + /* + * this function will test buildApidoc's default handling-behavior-behavior + */ + options = { modulePathList: module.paths }; + local.buildApidoc(options, onError); + }; + + local.testCase_buildApp_default = local.testCase_buildApp_default || function ( + options, + onError + ) { + /* + * this function will test buildApp's default handling-behavior-behavior + */ + local.testCase_buildReadme_default(options, local.onErrorThrow); + local.testCase_buildLib_default(options, local.onErrorThrow); + local.testCase_buildTest_default(options, local.onErrorThrow); + local.testCase_buildCustomOrg_default(options, local.onErrorThrow); + options = []; + local.buildApp(options, onError); + }; + + local.testCase_buildCustomOrg_default = local.testCase_buildCustomOrg_default || + function (options, onError) { + /* + * this function will test buildCustomOrg's default handling-behavior + */ + options = {}; + local.buildCustomOrg(options, onError); + }; + + local.testCase_buildLib_default = local.testCase_buildLib_default || function ( + options, + onError + ) { + /* + * this function will test buildLib's default handling-behavior + */ + options = {}; + local.buildLib(options, onError); + }; + + local.testCase_buildReadme_default = local.testCase_buildReadme_default || function ( + options, + onError + ) { + /* + * this function will test buildReadme's default handling-behavior-behavior + */ + options = {}; + local.buildReadme(options, onError); + }; + + local.testCase_buildTest_default = local.testCase_buildTest_default || function ( + options, + onError + ) { + /* + * this function will test buildTest's default handling-behavior + */ + options = {}; + local.buildTest(options, onError); + }; + + local.testCase_webpage_default = local.testCase_webpage_default || function ( + options, + onError + ) { + /* + * this function will test webpage's default handling-behavior + */ + options = { modeCoverageMerge: true, url: local.serverLocalHost + '?modeTest=1' }; + local.browserTest(options, onError); + }; + + // run test-server + local.testRunServer(local); + break; + } +}()); diff --git a/touch.txt b/touch.txt new file mode 100644 index 0000000..eaed126 --- /dev/null +++ b/touch.txt @@ -0,0 +1 @@ +2017-04-25T11:02:44.072Z