From 40d82c89a74a46786110d02301a683f28280f2d3 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Sun, 2 Apr 2017 17:30:09 +0000 Subject: [PATCH 1/6] [npm publishAfterCommitAfterBuild] --- .gitignore | 14 ++++++++++++++ .travis.yml | 32 ++++++++++++++++++++++++++++++++ LICENSE | 9 +++++++++ package.json | 17 +++++++++++++++++ 4 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 LICENSE create mode 100644 package.json 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/package.json b/package.json new file mode 100644 index 0000000..a6d25d0 --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "buildNpmdoc":"generator-angular-fullstack", + "devDependencies": { + "generator-angular-fullstack": "*", + "electron-lite": "kaizhu256/node-electron-lite#alpha", + "utility2": "kaizhu256/node-utility2#alpha" + }, + "name":"npmdoc-generator-angular-fullstack", + "repository": { + "type": "git", + "url": "https://github.com/npmdoc/node-npmdoc-generator-angular-fullstack.git" + }, + "scripts": { + "build-ci": "utility2 shReadmeTest build_ci.sh" + }, + "version": "0.0.1" +} From 3b73be26d84ff074eca5ff32b7d85d1328ba1dec Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Sun, 2 Apr 2017 17:39:18 +0000 Subject: [PATCH 2/6] [npm publishAfterCommit] --- README.md | 476 ++++++++++++++++++ ...mdoc_generator_angular_fullstack.rollup.js | 53 ++ lib.npmdoc_generator_angular_fullstack.js | 53 ++ package.json | 31 +- test.js | 183 +++++++ touch.txt | 1 + 6 files changed, 793 insertions(+), 4 deletions(-) create mode 100644 assets.npmdoc_generator_angular_fullstack.rollup.js create mode 100644 lib.npmdoc_generator_angular_fullstack.js create mode 100644 test.js create mode 100644 touch.txt diff --git a/README.md b/README.md index e69de29..fb50525 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,476 @@ +# api documentation for [generator-angular-fullstack (v4.1.4)](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)](https://www.npmjs.com/package/generator-angular-fullstack) + +[![apidoc](https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build/screen-capture.buildNpmdoc.browser._2Fhome_2Ftravis_2Fbuild_2Fnpmdoc_2Fnode-npmdoc-generator-angular-fullstack_2Ftmp_2Fbuild_2Fapidoc.html.png)](https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build..beta..travis-ci.org/apidoc.html) + +![package-listing](https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build/screen-capture.npmPackageListing.svg) + + + +# package.json + +```json + +{ + "author": { + "name": "Andrew Koroluk", + "email": "koroluka@gmail.com", + "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", + "email": "me@codymize.com", + "url": "http://codymize.com/" + }, + { + "name": "Brian Ford", + "email": "btford@umich.edu", + "url": "http://briantford.com/" + }, + { + "name": "Pascal Hartig", + "email": "passy@twitter.com", + "url": "http://passy.me/" + }, + { + "name": "Eddie Monge", + "url": "http://eddiemonge.com" + }, + { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "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": "ca2dc23f9abee9803714d34a3cb12835f5ffce8f", + "tarball": "https://registry.npmjs.org/generator-angular-fullstack/-/generator-angular-fullstack-4.1.4.tgz" + }, + "engines": { + "node": "^6.2.2", + "npm": "^3.9.5" + }, + "gitHead": "431c4563713cfc8299166f59937a935fca5ad030", + "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", + "email": "tylerhenkel@hotmail.com" + }, + { + "name": "awk34", + "email": "koroluka@gmail.com" + } + ], + "name": "generator-angular-fullstack", + "optionalDependencies": {}, + "readme": "ERROR: No README data found!", + "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.1.4" +} +``` + + + +# [table of contents](#apidoc.tableOfContents) + +#### [module generator-angular-fullstack](#apidoc.module.generator-angular-fullstack) +1. object generator-angular-fullstack.generator_base +1. object generator-angular-fullstack.util + +#### [module generator-angular-fullstack.generator_base](#apidoc.module.generator-angular-fullstack.generator_base) +1. [function generator-angular-fullstack.generator_base.genBase (self)](#apidoc.element.generator-angular-fullstack.generator_base.genBase) +1. [function generator-angular-fullstack.generator_base.genNamedBase (self)](#apidoc.element.generator-angular-fullstack.generator_base.genNamedBase) + +#### [module generator-angular-fullstack.util](#apidoc.module.generator-angular-fullstack.util) +1. [function generator-angular-fullstack.util.appSuffix (self)](#apidoc.element.generator-angular-fullstack.util.appSuffix) +1. [function generator-angular-fullstack.util.processDirectory (source, destination)](#apidoc.element.generator-angular-fullstack.util.processDirectory) +1. [function generator-angular-fullstack.util.relativeRequire (to, fr)](#apidoc.element.generator-angular-fullstack.util.relativeRequire) +1. [function generator-angular-fullstack.util.rewrite (args)](#apidoc.element.generator-angular-fullstack.util.rewrite) +1. [function generator-angular-fullstack.util.rewriteFile (args)](#apidoc.element.generator-angular-fullstack.util.rewriteFile) +1. [function generator-angular-fullstack.util.runCmd (cmd)](#apidoc.element.generator-angular-fullstack.util.runCmd) + + + +# [module generator-angular-fullstack](#apidoc.module.generator-angular-fullstack) + + + +# [module generator-angular-fullstack.generator_base](#apidoc.module.generator-angular-fullstack.generator_base) + +#### [function generator-angular-fullstack.generator_base.genBase (self)](#apidoc.element.generator-angular-fullstack.generator_base.genBase) +- description and source-code +```javascript +function genBase(self) { + self = self || this; + + var yoCheckPromise = void 0; + if (!process.env.CI) { + yoCheckPromise = genUtils.runCmd('yo --version').then(function (stdout) { + if (!_semver2.default.satisfies(_semver2.default.clean(stdout), '>= 1.7.1')) { + throw new Error('ERROR: You need to update yo to at least 1.7.1 (npm i -g yo)\n\'yo --version\' output: ' + stdout); + } + }); + } else { + // CI won't have yo installed + yoCheckPromise = Promise.resolve(); + } + + self.lodash = _lodash2.default; + self.yoWelcome = _yeomanWelcome2.default; + + var baseDetermineAppname = self.determineAppname.bind(self); + self.determineAppname = function () { + if (self['name']) { + return self['name']; + } else { + return baseDetermineAppname(); + } + }; + + self.appname = _lodash2.default.camelize(_lodash2.default.slugify(_lodash2.default.humanize(self.determineAppname()))); + self.scriptAppName = self.appname + genUtils.appSuffix(self); + + self.filters = self.filters || self.config.get('filters'); + + // dynamic assertion statements + self.expect = function () { + return self.filters.expect ? 'expect(' : ''; + }; + self.to = function () { + return self.filters.expect ? ').to' : '.should'; + }; + + // dynamic relative require path + self.relativeRequire = genUtils.relativeRequire.bind(self); + // process template directory + self.processDirectory = genUtils.processDirectory.bind(self); + // rewrite a file in place + self.rewriteFile = genUtils.rewriteFile; + + return yoCheckPromise; +} +``` +- example usage +```shell +n/a +``` + +#### [function generator-angular-fullstack.generator_base.genNamedBase (self)](#apidoc.element.generator-angular-fullstack.generator_base.genNamedBase) +- description and source-code +```javascript +function genNamedBase(self) { + self = self || this; + + // extend genBase + return genBase(self).then(function () { + var name = self.name.replace(/\//g, '-'); + + self.cameledName = _lodash2.default.camelize(name); + self.classedName = _lodash2.default.classify(name); + + self.basename = _path2.default.basename(self.name); + self.dirname = self.name.indexOf('/') >= 0 ? _path2.default.dirname(self.name) : self.name; + }); +} +``` +- example usage +```shell +n/a +``` + + + +# [module generator-angular-fullstack.util](#apidoc.module.generator-angular-fullstack.util) + +#### [function generator-angular-fullstack.util.appSuffix (self)](#apidoc.element.generator-angular-fullstack.util.appSuffix) +- description and source-code +```javascript +function appSuffix(self) { + var suffix = self.options['app-suffix']; + return typeof suffix === 'string' ? self.lodash.classify(suffix) : ''; +} +``` +- example usage +```shell +... + return self['name']; + } else { + return baseDetermineAppname(); + } +}; + +self.appname = _lodash2.default.camelize(_lodash2.default.slugify(_lodash2.default.humanize(self.determineAppname()))); +self.scriptAppName = self.appname + genUtils.appSuffix(self); + +self.filters = self.filters || self.config.get('filters'); + +// dynamic assertion statements +self.expect = function () { + return self.filters.expect ? 'expect(' : ''; +}; +... +``` + +#### [function generator-angular-fullstack.util.processDirectory (source, destination)](#apidoc.element.generator-angular-fullstack.util.processDirectory) +- description and source-code +```javascript +function processDirectory(source, destination) { + var self = this; + var root = _path2.default.isAbsolute(source) ? source : _path2.default.join(self.sourceRoot(), source); + var files = expandFiles('**', { dot: true, cwd: root }); + var dest, src; + + files.forEach(function (f) { + var filteredFile = filterFile(f); + if (self.basename) { + filteredFile.name = filteredFile.name.replace('basename', self.basename); + } + if (self.name) { + filteredFile.name = filteredFile.name.replace('name', self.name); + } + var name = filteredFile.name; + var copy = false, + stripped; + + src = _path2.default.join(root, f); + dest = _path2.default.join(destination, name); + + if (self.filters.ts && dest.indexOf('client') > -1 && dest.indexOf('.json') === -1) { + dest = dest.replace('.js', '.ts'); + } + + if (_path2.default.basename(dest).indexOf('_') === 0) { + stripped = _path2.default.basename(dest).replace(/^_/, ''); + dest = _path2.default.join(_path2.default.dirname(dest), stripped); + } + + if (_path2.default.basename(dest).indexOf('!') === 0) { + stripped = _path2.default.basename(dest).replace(/^!/, ''); + dest = _path2.default.join(_path2.default.dirname(dest), stripped); + copy = true; + } + + if (templateIsUsable(self, filteredFile)) { + if (copy) { + self.fs.copy(src, dest); + } else { + self.filePath = dest; + self.fs.copyTpl(src, dest, self); + delete self.filePath; + } + } + }); +} +``` +- example usage +```shell +n/a +``` + +#### [function generator-angular-fullstack.util.relativeRequire (to, fr)](#apidoc.element.generator-angular-fullstack.util.relativeRequire) +- description and source-code +```javascript +function relativeRequire(to, fr) { + fr = this.destinationPath(fr || this.filePath); + to = this.destinationPath(to); + return _path2.default.relative(_path2.default.dirname(fr), to).replace(/\\/g, '/') // convert win32 separator to posix + .replace(/^(?!\.\.)(.*)/, './$1') // prefix non parent path with ./ + .replace(/[\/\\]index\.js$/, ''); // strip index.js suffix from path +} +``` +- example usage +```shell +n/a +``` + +#### [function generator-angular-fullstack.util.rewrite (args)](#apidoc.element.generator-angular-fullstack.util.rewrite) +- description and source-code +```javascript +function rewrite(args) { + // check if splicable is already in the body text + var re = new RegExp(args.splicable.map(function (line) { + return '\s*' + escapeRegExp(line); + }).join('\n')); + + if (re.test(args.haystack)) { + return args.haystack; + } + + var lines = args.haystack.split('\n'); + + var otherwiseLineIndex = -1; + lines.forEach(function (line, i) { + if (line.indexOf(args.needle) !== -1) { + otherwiseLineIndex = i; + } + }); + if (otherwiseLineIndex === -1) return lines.join('\n'); + + var spaces = 0; + while (lines[otherwiseLineIndex].charAt(spaces) === ' ') { + spaces += 1; + } + + var spaceStr = ''; + while ((spaces -= 1) >= 0) { + spaceStr += ' '; + } + + lines.splice(otherwiseLineIndex + 1, 0, args.splicable.map(function (line) { + return spaceStr + line; + }).join('\n')); + + return lines.join('\n'); +} +``` +- example usage +```shell +n/a +``` + +#### [function generator-angular-fullstack.util.rewriteFile (args)](#apidoc.element.generator-angular-fullstack.util.rewriteFile) +- description and source-code +```javascript +function rewriteFile(args) { + args.path = args.path || process.cwd(); + var fullPath = _path2.default.join(args.path, args.file); + + args.haystack = _fs2.default.readFileSync(fullPath, 'utf8'); + var body = rewrite(args); + + _fs2.default.writeFileSync(fullPath, body); +} +``` +- example usage +```shell +n/a +``` + +#### [function generator-angular-fullstack.util.runCmd (cmd)](#apidoc.element.generator-angular-fullstack.util.runCmd) +- description and source-code +```javascript +function runCmd(cmd) { + return new _bluebird2.default(function (resolve, reject) { + (0, _child_process.exec)(cmd, {}, function (err, stdout, stderr) { + if (err) { + console.error(stdout); + return reject(err); + } else { + if (DEBUG) console.log(cmd + ' stdout: ' + stdout); + return resolve(stdout); + } + }); + }); +} +``` +- example usage +```shell +... +_lodash2.default.mixin(_underscore2.default.exports()); + +function genBase(self) { +self = self || this; + +var yoCheckPromise = void 0; +if (!process.env.CI) { + yoCheckPromise = genUtils.runCmd('yo --version').then(function (stdout) { + if (!_semver2.default.satisfies(_semver2.default.clean(stdout), '>= 1.7.1')) { + throw new Error('ERROR: You need to update yo to at least 1.7.1 (npm i -g yo)\n\'yo --version\' output: ' + stdout); + } + }); +} else { + // CI won't have yo installed + yoCheckPromise = Promise.resolve(); +... +``` + + + +# 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..f13a1e9 --- /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 - pre-init + (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..f13a1e9 --- /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 - pre-init + (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 index a6d25d0..753c8e9 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,40 @@ { - "buildNpmdoc":"generator-angular-fullstack", + "author": "kai zhu ", + "buildNpmdoc": "generator-angular-fullstack", + "description": "api documentation for [generator-angular-fullstack (v4.1.4)](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": { - "generator-angular-fullstack": "*", "electron-lite": "kaizhu256/node-electron-lite#alpha", + "generator-angular-fullstack": "*", "utility2": "kaizhu256/node-utility2#alpha" }, - "name":"npmdoc-generator-angular-fullstack", + "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" + "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": "0.0.1" } diff --git a/test.js b/test.js new file mode 100644 index 0000000..971828d --- /dev/null +++ b/test.js @@ -0,0 +1,183 @@ +/* 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 - pre-init + (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')) + .requireExampleJsFromReadme(); + 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 - post-init + (function () { + return; + }()); + switch (local.modeJs) { + + + + // run browser js-env code - post-init + case 'browser': + // run tests + local.nop(local.modeTest && + document.querySelector('#testRunButton1') && + document.querySelector('#testRunButton1').click()); + break; + + + + // run node js-env code - post-init + /* 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 }; + if (local.env.npm_package_buildNpmdoc) { + local.buildNpmdoc(options, onError); + return; + } + 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); + options = []; + local.buildApp(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 + */ + if (local.env.npm_package_buildNpmdoc) { + onError(); + return; + } + 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..686e170 --- /dev/null +++ b/touch.txt @@ -0,0 +1 @@ +2017-04-02T17:39:18Z From df441abdaa3167f72ffb7d5ccce1a2224f76c4c5 Mon Sep 17 00:00:00 2001 From: npmdoc Date: Sun, 16 Apr 2017 05:22:04 +0800 Subject: [PATCH 3/6] [npm publishAfterCommitAfterBuild] From 4c96ccfe4156f79cc0493c66e65a70a6fc94b99d Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Sat, 15 Apr 2017 22:02:15 +0000 Subject: [PATCH 4/6] [ci skip] npm published --- README.md | 325 ++------------------------------------------------- package.json | 2 +- test.js | 18 +-- touch.txt | 2 +- 4 files changed, 19 insertions(+), 328 deletions(-) diff --git a/README.md b/README.md index fb50525..d00271f 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,13 @@ # api documentation for [generator-angular-fullstack (v4.1.4)](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)](https://www.npmjs.com/package/generator-angular-fullstack) +[![NPM](https://nodei.co/npm/generator-angular-fullstack.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/generator-angular-fullstack) -[![apidoc](https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build/screen-capture.buildNpmdoc.browser._2Fhome_2Ftravis_2Fbuild_2Fnpmdoc_2Fnode-npmdoc-generator-angular-fullstack_2Ftmp_2Fbuild_2Fapidoc.html.png)](https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build..beta..travis-ci.org/apidoc.html) +[![apidoc](https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build/screenCapture.buildCi.browser.apidoc.html.png)](https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build/apidoc.html) -![package-listing](https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build/screen-capture.npmPackageListing.svg) +![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) @@ -16,7 +18,6 @@ { "author": { "name": "Andrew Koroluk", - "email": "koroluka@gmail.com", "url": "http://andrewk.me/" }, "bugs": { @@ -29,17 +30,14 @@ }, { "name": "Cody Mize", - "email": "me@codymize.com", "url": "http://codymize.com/" }, { "name": "Brian Ford", - "email": "btford@umich.edu", "url": "http://briantford.com/" }, { "name": "Pascal Hartig", - "email": "passy@twitter.com", "url": "http://passy.me/" }, { @@ -48,7 +46,6 @@ }, { "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", "url": "https://twitter.com/sindresorhus" } ], @@ -132,17 +129,14 @@ "license": "BSD-2-Clause", "maintainers": [ { - "name": "daftmonk", - "email": "tylerhenkel@hotmail.com" + "name": "daftmonk" }, { - "name": "awk34", - "email": "koroluka@gmail.com" + "name": "awk34" } ], "name": "generator-angular-fullstack", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", "repository": { "type": "git", "url": "git://github.com/angular-fullstack/generator-angular-fullstack.git" @@ -160,20 +154,6 @@ # [table of contents](#apidoc.tableOfContents) #### [module generator-angular-fullstack](#apidoc.module.generator-angular-fullstack) -1. object generator-angular-fullstack.generator_base -1. object generator-angular-fullstack.util - -#### [module generator-angular-fullstack.generator_base](#apidoc.module.generator-angular-fullstack.generator_base) -1. [function generator-angular-fullstack.generator_base.genBase (self)](#apidoc.element.generator-angular-fullstack.generator_base.genBase) -1. [function generator-angular-fullstack.generator_base.genNamedBase (self)](#apidoc.element.generator-angular-fullstack.generator_base.genNamedBase) - -#### [module generator-angular-fullstack.util](#apidoc.module.generator-angular-fullstack.util) -1. [function generator-angular-fullstack.util.appSuffix (self)](#apidoc.element.generator-angular-fullstack.util.appSuffix) -1. [function generator-angular-fullstack.util.processDirectory (source, destination)](#apidoc.element.generator-angular-fullstack.util.processDirectory) -1. [function generator-angular-fullstack.util.relativeRequire (to, fr)](#apidoc.element.generator-angular-fullstack.util.relativeRequire) -1. [function generator-angular-fullstack.util.rewrite (args)](#apidoc.element.generator-angular-fullstack.util.rewrite) -1. [function generator-angular-fullstack.util.rewriteFile (args)](#apidoc.element.generator-angular-fullstack.util.rewriteFile) -1. [function generator-angular-fullstack.util.runCmd (cmd)](#apidoc.element.generator-angular-fullstack.util.runCmd) @@ -181,296 +161,5 @@ -# [module generator-angular-fullstack.generator_base](#apidoc.module.generator-angular-fullstack.generator_base) - -#### [function generator-angular-fullstack.generator_base.genBase (self)](#apidoc.element.generator-angular-fullstack.generator_base.genBase) -- description and source-code -```javascript -function genBase(self) { - self = self || this; - - var yoCheckPromise = void 0; - if (!process.env.CI) { - yoCheckPromise = genUtils.runCmd('yo --version').then(function (stdout) { - if (!_semver2.default.satisfies(_semver2.default.clean(stdout), '>= 1.7.1')) { - throw new Error('ERROR: You need to update yo to at least 1.7.1 (npm i -g yo)\n\'yo --version\' output: ' + stdout); - } - }); - } else { - // CI won't have yo installed - yoCheckPromise = Promise.resolve(); - } - - self.lodash = _lodash2.default; - self.yoWelcome = _yeomanWelcome2.default; - - var baseDetermineAppname = self.determineAppname.bind(self); - self.determineAppname = function () { - if (self['name']) { - return self['name']; - } else { - return baseDetermineAppname(); - } - }; - - self.appname = _lodash2.default.camelize(_lodash2.default.slugify(_lodash2.default.humanize(self.determineAppname()))); - self.scriptAppName = self.appname + genUtils.appSuffix(self); - - self.filters = self.filters || self.config.get('filters'); - - // dynamic assertion statements - self.expect = function () { - return self.filters.expect ? 'expect(' : ''; - }; - self.to = function () { - return self.filters.expect ? ').to' : '.should'; - }; - - // dynamic relative require path - self.relativeRequire = genUtils.relativeRequire.bind(self); - // process template directory - self.processDirectory = genUtils.processDirectory.bind(self); - // rewrite a file in place - self.rewriteFile = genUtils.rewriteFile; - - return yoCheckPromise; -} -``` -- example usage -```shell -n/a -``` - -#### [function generator-angular-fullstack.generator_base.genNamedBase (self)](#apidoc.element.generator-angular-fullstack.generator_base.genNamedBase) -- description and source-code -```javascript -function genNamedBase(self) { - self = self || this; - - // extend genBase - return genBase(self).then(function () { - var name = self.name.replace(/\//g, '-'); - - self.cameledName = _lodash2.default.camelize(name); - self.classedName = _lodash2.default.classify(name); - - self.basename = _path2.default.basename(self.name); - self.dirname = self.name.indexOf('/') >= 0 ? _path2.default.dirname(self.name) : self.name; - }); -} -``` -- example usage -```shell -n/a -``` - - - -# [module generator-angular-fullstack.util](#apidoc.module.generator-angular-fullstack.util) - -#### [function generator-angular-fullstack.util.appSuffix (self)](#apidoc.element.generator-angular-fullstack.util.appSuffix) -- description and source-code -```javascript -function appSuffix(self) { - var suffix = self.options['app-suffix']; - return typeof suffix === 'string' ? self.lodash.classify(suffix) : ''; -} -``` -- example usage -```shell -... - return self['name']; - } else { - return baseDetermineAppname(); - } -}; - -self.appname = _lodash2.default.camelize(_lodash2.default.slugify(_lodash2.default.humanize(self.determineAppname()))); -self.scriptAppName = self.appname + genUtils.appSuffix(self); - -self.filters = self.filters || self.config.get('filters'); - -// dynamic assertion statements -self.expect = function () { - return self.filters.expect ? 'expect(' : ''; -}; -... -``` - -#### [function generator-angular-fullstack.util.processDirectory (source, destination)](#apidoc.element.generator-angular-fullstack.util.processDirectory) -- description and source-code -```javascript -function processDirectory(source, destination) { - var self = this; - var root = _path2.default.isAbsolute(source) ? source : _path2.default.join(self.sourceRoot(), source); - var files = expandFiles('**', { dot: true, cwd: root }); - var dest, src; - - files.forEach(function (f) { - var filteredFile = filterFile(f); - if (self.basename) { - filteredFile.name = filteredFile.name.replace('basename', self.basename); - } - if (self.name) { - filteredFile.name = filteredFile.name.replace('name', self.name); - } - var name = filteredFile.name; - var copy = false, - stripped; - - src = _path2.default.join(root, f); - dest = _path2.default.join(destination, name); - - if (self.filters.ts && dest.indexOf('client') > -1 && dest.indexOf('.json') === -1) { - dest = dest.replace('.js', '.ts'); - } - - if (_path2.default.basename(dest).indexOf('_') === 0) { - stripped = _path2.default.basename(dest).replace(/^_/, ''); - dest = _path2.default.join(_path2.default.dirname(dest), stripped); - } - - if (_path2.default.basename(dest).indexOf('!') === 0) { - stripped = _path2.default.basename(dest).replace(/^!/, ''); - dest = _path2.default.join(_path2.default.dirname(dest), stripped); - copy = true; - } - - if (templateIsUsable(self, filteredFile)) { - if (copy) { - self.fs.copy(src, dest); - } else { - self.filePath = dest; - self.fs.copyTpl(src, dest, self); - delete self.filePath; - } - } - }); -} -``` -- example usage -```shell -n/a -``` - -#### [function generator-angular-fullstack.util.relativeRequire (to, fr)](#apidoc.element.generator-angular-fullstack.util.relativeRequire) -- description and source-code -```javascript -function relativeRequire(to, fr) { - fr = this.destinationPath(fr || this.filePath); - to = this.destinationPath(to); - return _path2.default.relative(_path2.default.dirname(fr), to).replace(/\\/g, '/') // convert win32 separator to posix - .replace(/^(?!\.\.)(.*)/, './$1') // prefix non parent path with ./ - .replace(/[\/\\]index\.js$/, ''); // strip index.js suffix from path -} -``` -- example usage -```shell -n/a -``` - -#### [function generator-angular-fullstack.util.rewrite (args)](#apidoc.element.generator-angular-fullstack.util.rewrite) -- description and source-code -```javascript -function rewrite(args) { - // check if splicable is already in the body text - var re = new RegExp(args.splicable.map(function (line) { - return '\s*' + escapeRegExp(line); - }).join('\n')); - - if (re.test(args.haystack)) { - return args.haystack; - } - - var lines = args.haystack.split('\n'); - - var otherwiseLineIndex = -1; - lines.forEach(function (line, i) { - if (line.indexOf(args.needle) !== -1) { - otherwiseLineIndex = i; - } - }); - if (otherwiseLineIndex === -1) return lines.join('\n'); - - var spaces = 0; - while (lines[otherwiseLineIndex].charAt(spaces) === ' ') { - spaces += 1; - } - - var spaceStr = ''; - while ((spaces -= 1) >= 0) { - spaceStr += ' '; - } - - lines.splice(otherwiseLineIndex + 1, 0, args.splicable.map(function (line) { - return spaceStr + line; - }).join('\n')); - - return lines.join('\n'); -} -``` -- example usage -```shell -n/a -``` - -#### [function generator-angular-fullstack.util.rewriteFile (args)](#apidoc.element.generator-angular-fullstack.util.rewriteFile) -- description and source-code -```javascript -function rewriteFile(args) { - args.path = args.path || process.cwd(); - var fullPath = _path2.default.join(args.path, args.file); - - args.haystack = _fs2.default.readFileSync(fullPath, 'utf8'); - var body = rewrite(args); - - _fs2.default.writeFileSync(fullPath, body); -} -``` -- example usage -```shell -n/a -``` - -#### [function generator-angular-fullstack.util.runCmd (cmd)](#apidoc.element.generator-angular-fullstack.util.runCmd) -- description and source-code -```javascript -function runCmd(cmd) { - return new _bluebird2.default(function (resolve, reject) { - (0, _child_process.exec)(cmd, {}, function (err, stdout, stderr) { - if (err) { - console.error(stdout); - return reject(err); - } else { - if (DEBUG) console.log(cmd + ' stdout: ' + stdout); - return resolve(stdout); - } - }); - }); -} -``` -- example usage -```shell -... -_lodash2.default.mixin(_underscore2.default.exports()); - -function genBase(self) { -self = self || this; - -var yoCheckPromise = void 0; -if (!process.env.CI) { - yoCheckPromise = genUtils.runCmd('yo --version').then(function (stdout) { - if (!_semver2.default.satisfies(_semver2.default.clean(stdout), '>= 1.7.1')) { - throw new Error('ERROR: You need to update yo to at least 1.7.1 (npm i -g yo)\n\'yo --version\' output: ' + stdout); - } - }); -} else { - // CI won't have yo installed - yoCheckPromise = Promise.resolve(); -... -``` - - - # misc - this document was created with [utility2](https://github.com/kaizhu256/node-utility2) diff --git a/package.json b/package.json index 753c8e9..d57b73f 100644 --- a/package.json +++ b/package.json @@ -36,5 +36,5 @@ "start": "(set -e; export PORT=${PORT:-8080}; utility2 start test.js)", "test": "(set -e; export PORT=$(utility2 shServerPortRandom); utility2 test test.js)" }, - "version": "0.0.1" + "version": "0.0.2" } diff --git a/test.js b/test.js index 971828d..a7be725 100644 --- a/test.js +++ b/test.js @@ -107,10 +107,6 @@ * this function will test buildApidoc's default handling-behavior-behavior */ options = { modulePathList: module.paths }; - if (local.env.npm_package_buildNpmdoc) { - local.buildNpmdoc(options, onError); - return; - } local.buildApidoc(options, onError); }; @@ -124,10 +120,20 @@ 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 @@ -146,10 +152,6 @@ /* * this function will test buildReadme's default handling-behavior-behavior */ - if (local.env.npm_package_buildNpmdoc) { - onError(); - return; - } options = {}; local.buildReadme(options, onError); }; diff --git a/touch.txt b/touch.txt index 686e170..061e579 100644 --- a/touch.txt +++ b/touch.txt @@ -1 +1 @@ -2017-04-02T17:39:18Z +2017-04-15T22:00:24Z From d6015c407daf5af93c7defc7f48c68e5476ef62e Mon Sep 17 00:00:00 2001 From: npmdoc Date: Tue, 25 Apr 2017 17:43:52 +0800 Subject: [PATCH 5/6] [npm publishAfterCommitAfterBuild] From e59e1478412a7837332c64a9ed4bffed8440e735 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 25 Apr 2017 11:02:48 +0000 Subject: [PATCH 6/6] [ci skip] npm published --- README.md | 28 ++++++++----------- ...mdoc_generator_angular_fullstack.rollup.js | 2 +- lib.npmdoc_generator_angular_fullstack.js | 2 +- package.json | 4 +-- test.js | 20 +++++++++---- touch.txt | 2 +- 6 files changed, 32 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index d00271f..0060222 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,14 @@ -# api documentation for [generator-angular-fullstack (v4.1.4)](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) +# 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) -[![apidoc](https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build/screenCapture.buildCi.browser.apidoc.html.png)](https://npmdoc.github.io/node-npmdoc-generator-angular-fullstack/build/apidoc.html) +- [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) @@ -104,14 +109,14 @@ }, "directories": {}, "dist": { - "shasum": "ca2dc23f9abee9803714d34a3cb12835f5ffce8f", - "tarball": "https://registry.npmjs.org/generator-angular-fullstack/-/generator-angular-fullstack-4.1.4.tgz" + "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": "431c4563713cfc8299166f59937a935fca5ad030", + "gitHead": "bc0ce9a73ac859264508839f44cca24773b5c14a", "homepage": "https://github.com/angular-fullstack/generator-angular-fullstack", "keywords": [ "yeoman-generator", @@ -145,21 +150,12 @@ "prepublish": "gulp build", "test": "gulp updateFixtures:test && gulp installFixtures && gulp build && gulp test" }, - "version": "4.1.4" + "version": "4.2.0", + "bin": {} } ``` -# [table of contents](#apidoc.tableOfContents) - -#### [module generator-angular-fullstack](#apidoc.module.generator-angular-fullstack) - - - -# [module generator-angular-fullstack](#apidoc.module.generator-angular-fullstack) - - - # 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 index f13a1e9..f44567e 100644 --- a/assets.npmdoc_generator_angular_fullstack.rollup.js +++ b/assets.npmdoc_generator_angular_fullstack.rollup.js @@ -15,7 +15,7 @@ - // run shared js-env code - pre-init + // run shared js-env code - init-before (function () { // init local local = {}; diff --git a/lib.npmdoc_generator_angular_fullstack.js b/lib.npmdoc_generator_angular_fullstack.js index f13a1e9..f44567e 100644 --- a/lib.npmdoc_generator_angular_fullstack.js +++ b/lib.npmdoc_generator_angular_fullstack.js @@ -15,7 +15,7 @@ - // run shared js-env code - pre-init + // run shared js-env code - init-before (function () { // init local local = {}; diff --git a/package.json b/package.json index d57b73f..3f727b6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "author": "kai zhu ", "buildNpmdoc": "generator-angular-fullstack", - "description": "api documentation for [generator-angular-fullstack (v4.1.4)](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)", + "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": "*", @@ -36,5 +36,5 @@ "start": "(set -e; export PORT=${PORT:-8080}; utility2 start test.js)", "test": "(set -e; export PORT=$(utility2 shServerPortRandom); utility2 test test.js)" }, - "version": "0.0.2" + "version": "2017.4.25" } diff --git a/test.js b/test.js index a7be725..23d36be 100644 --- a/test.js +++ b/test.js @@ -15,7 +15,7 @@ - // run shared js-env code - pre-init + // run shared js-env code - init-before (function () { // init local local = {}; @@ -48,7 +48,7 @@ // re-init local from example.js case 'node': local = (local.global.utility2_rollup || require('utility2')) - .requireExampleJsFromReadme(); + .requireReadme(); break; } // export local @@ -78,7 +78,7 @@ - // run shared js-env code - post-init + // run shared js-env code - init-after (function () { return; }()); @@ -86,8 +86,18 @@ - // run browser js-env code - post-init + // 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') && @@ -96,7 +106,7 @@ - // run node js-env code - post-init + // run node js-env code - init-after /* istanbul ignore next */ case 'node': local.testCase_buildApidoc_default = local.testCase_buildApidoc_default || function ( diff --git a/touch.txt b/touch.txt index 061e579..eaed126 100644 --- a/touch.txt +++ b/touch.txt @@ -1 +1 @@ -2017-04-15T22:00:24Z +2017-04-25T11:02:44.072Z