Skip to content

Commit

Permalink
Merge pull request #1114 from kaliber5/docs-scripts
Browse files Browse the repository at this point in the history
Add `docs:build` and `docs:serve` scripts, remove publishing of docs from gulpfile
  • Loading branch information
simonihmig committed Jun 14, 2020
2 parents 0add112 + c642969 commit 1211338
Show file tree
Hide file tree
Showing 8 changed files with 100 additions and 58 deletions.
1 change: 1 addition & 0 deletions .npmignore
Expand Up @@ -43,3 +43,4 @@ gulpfile.js
/DEBUG
*.pid
*.log
/docs
1 change: 1 addition & 0 deletions docs/.gitignore
Expand Up @@ -27,3 +27,4 @@
# custom stuff
/api/
/yuidoc-theme/
/build
4 changes: 2 additions & 2 deletions docs/README.md
Expand Up @@ -23,8 +23,8 @@ You will need the following things properly installed on your computer.
## Running / Development

* `ember serve`
* Visit your app at [http://localhost:4201](http://localhost:4200).
* Visit your tests at [http://localhost:4201/tests](http://localhost:4200/tests).
* Visit your app at [http://localhost:4201](http://localhost:4201).
* Visit your tests at [http://localhost:4201/tests](http://localhost:4201/tests).

### Code Generators

Expand Down
1 change: 0 additions & 1 deletion docs/public/CNAME

This file was deleted.

14 changes: 10 additions & 4 deletions gulpfile.js
@@ -1,10 +1,10 @@
/* eslint-env node */
const gulp = require('gulp');
const ghPages = require('gulp-gh-pages');
const execa = require('execa');
const merge = require('merge-stream');
const striptags = require('striptags');
const transform = require('gulp-transform');
const connect = require('gulp-connect');

gulp.task('docs:api', function () {
return execa('ember', ['ember-cli-yuidoc']);
Expand All @@ -17,14 +17,20 @@ gulp.task('docs:app', function () {
});

gulp.task(
'docs:publish',
'docs:build',
gulp.series(gulp.parallel('docs:api', 'docs:app'), function () {
return merge(
gulp.src('docs/api/**/*', { base: 'docs' }),
gulp.src('docs/dist/**/*'),
gulp.src('CHANGELOG.md').pipe(transform(striptags, { encoding: 'utf8' }))
).pipe(ghPages());
).pipe(gulp.dest('docs/build'));
})
);

gulp.task('docs', gulp.series('docs:publish'));
gulp.task('connect', function () {
connect.server({
root: 'docs/build',
});
});

gulp.task('docs:serve', gulp.series('docs:build', 'connect'));
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -23,7 +23,8 @@
"scripts": {
"build": "ember build --environment=production",
"changelog": "lerna-changelog",
"docs": "gulp docs",
"docs:build": "gulp docs:build",
"docs:serve": "gulp docs:serve",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
"lint:hbs": "ember-template-lint .",
"lint:js": "eslint .",
Expand Down Expand Up @@ -113,7 +114,7 @@
"execa": "^2.0.0",
"glob": "^7.1.1",
"gulp": "^4.0.0",
"gulp-gh-pages": "^0.6.0-6",
"gulp-connect": "^5.7.0",
"gulp-insert": "^0.5.0",
"gulp-rename": "^2.0.0",
"gulp-transform": "^3.0.5",
Expand All @@ -124,9 +125,9 @@
"mocha": "^7.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.5",
"qunit-dom": "^1.1.0",
"release-it": "^13.5.1",
"release-it-lerna-changelog": "^2.3.0",
"qunit-dom": "^1.1.0",
"striptags": "^3.0.0"
},
"engines": {
Expand Down
128 changes: 81 additions & 47 deletions yarn.lock
Expand Up @@ -1876,6 +1876,11 @@ ansi-colors@^1.0.1:
dependencies:
ansi-wrap "^0.1.0"

ansi-colors@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-2.0.5.tgz#5da37825fef3e75f3bda47f760d64bfd10e15e10"
integrity sha512-yAdfUZ+c2wetVNIFsNRn44THW+Lty6S5TwMpUfLA/UaGhiXbBv/F8E60/1hMLd0cnF/CDoWH8vzVaI5bAcHCjw==

ansi-escapes@^3.0.0, ansi-escapes@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b"
Expand Down Expand Up @@ -3000,6 +3005,11 @@ basic-auth@~2.0.0:
dependencies:
safe-buffer "5.1.2"

batch@0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16"
integrity sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=

bcrypt-pbkdf@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e"
Expand Down Expand Up @@ -4665,6 +4675,11 @@ configstore@^5.0.1:
write-file-atomic "^3.0.0"
xdg-basedir "^4.0.0"

connect-livereload@^0.6.0:
version "0.6.1"
resolved "https://registry.yarnpkg.com/connect-livereload/-/connect-livereload-0.6.1.tgz#1ac0c8bb9d9cfd5b28b629987a56a9239db9baaa"
integrity sha512-3R0kMOdL7CjJpU66fzAkCe6HNtd3AavCS4m+uW4KtJjrdGPT0SQEZieAYd+cm+lJoBznNQ4lqipYWkhBMgk00g==

connect@^3.6.6:
version "3.7.0"
resolved "https://registry.yarnpkg.com/connect/-/connect-3.7.0.tgz#5d49348910caa5e07a01800b030d0c35f20484f8"
Expand Down Expand Up @@ -7197,11 +7212,6 @@ flatted@^2.0.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.1.tgz#69e57caa8f0eacbc281d2e2cb458d46fdb449e08"
integrity sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==

flex-exec@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/flex-exec/-/flex-exec-1.0.0.tgz#06974b68532839d2a12c32debcdb12378200fdf0"
integrity sha1-BpdLaFMoOdKhLDLevNsSN4IA/fA=

flush-write-stream@^1.0.0, flush-write-stream@^1.0.2:
version "1.1.1"
resolved "https://registry.yarnpkg.com/flush-write-stream/-/flush-write-stream-1.1.1.tgz#8dd7d873a1babc207d94ead0c2e0e44276ebf2e8"
Expand Down Expand Up @@ -7595,14 +7605,6 @@ getpass@^0.1.1:
dependencies:
assert-plus "^1.0.0"

gift@^0.10.2:
version "0.10.2"
resolved "https://registry.yarnpkg.com/gift/-/gift-0.10.2.tgz#4600efe8f284b51fcb01c3527b321e22b494e156"
integrity sha512-wC9aKnQpjfOTWX+JG4DPJkS89ux6sl8EN4hXhv/2vBoXCDTEz1JiTeGTSeuKYlCqIgUFM1JwPVym34Sys3hvzw==
dependencies:
flex-exec "^1.0.0"
underscore "^1.8.3"

git-fetch-pack@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/git-fetch-pack/-/git-fetch-pack-0.1.1.tgz#7703a32cf0db80f060d2766a34ac00d02cebcdf5"
Expand Down Expand Up @@ -7952,18 +7954,20 @@ gulp-cli@^2.2.0:
v8flags "^3.0.1"
yargs "^7.1.0"

gulp-gh-pages@^0.6.0-6:
version "0.6.0-6"
resolved "https://registry.yarnpkg.com/gulp-gh-pages/-/gulp-gh-pages-0.6.0-6.tgz#e61eec05beb7f6151ce576a1c2cadfceffa45ae5"
integrity sha512-9G3Z4THBrYaONcmy/3Z1t7Y0grzjcXH5YiZh/E+s4DREpfLBHy5qZyGLcc3R9hjDS/QJf+z3KfzWu8mhG6E0CA==
gulp-connect@^5.7.0:
version "5.7.0"
resolved "https://registry.yarnpkg.com/gulp-connect/-/gulp-connect-5.7.0.tgz#7e925f5e4c34ebfedf9f318576966e8fe8840d5a"
integrity sha512-8tRcC6wgXMLakpPw9M7GRJIhxkYdgZsXwn7n56BA2bQYGLR9NOPhMzx7js+qYDy6vhNkbApGKURjAw1FjY4pNA==
dependencies:
ansi-colors "^2.0.5"
connect "^3.6.6"
connect-livereload "^0.6.0"
fancy-log "^1.3.2"
gift "^0.10.2"
inspect-with-kind "^1.0.4"
plugin-error "^1.0.1"
rimraf "^2.6.2"
vinyl "^2.2.0"
vinyl-fs "^3.0.3"
map-stream "^0.0.7"
send "^0.16.2"
serve-index "^1.9.1"
serve-static "^1.13.2"
tiny-lr "^1.1.1"

gulp-insert@^0.5.0:
version "0.5.0"
Expand Down Expand Up @@ -8593,13 +8597,6 @@ inquirer@^6:
strip-ansi "^5.1.0"
through "^2.3.6"

inspect-with-kind@^1.0.4:
version "1.0.5"
resolved "https://registry.yarnpkg.com/inspect-with-kind/-/inspect-with-kind-1.0.5.tgz#fce151d4ce89722c82ca8e9860bb96f9167c316c"
integrity sha512-MAQUJuIo7Xqk8EVNP+6d3CKq9c80hi4tjIbIAT6lmGW9W6WzlHiu9PS8uSuUYU+Do+j1baiFp3H25XEVxDIG2g==
dependencies:
kind-of "^6.0.2"

interpret@^1.0.0, interpret@^1.1.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.2.0.tgz#d5061a6224be58e8083985f5014d844359576296"
Expand Down Expand Up @@ -9956,6 +9953,11 @@ map-cache@^0.2.0, map-cache@^0.2.2:
resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf"
integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=

map-stream@^0.0.7:
version "0.0.7"
resolved "https://registry.yarnpkg.com/map-stream/-/map-stream-0.0.7.tgz#8a1f07896d82b10926bd3744a2420009f88974a8"
integrity sha1-ih8HiW2CsQkmvTdEokIACfiJdKg=

map-stream@~0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/map-stream/-/map-stream-0.1.0.tgz#e56aa94c4c8055a16404a0674b78f215f7c8e194"
Expand Down Expand Up @@ -10188,7 +10190,7 @@ mime-db@1.44.0, "mime-db@>= 1.43.0 < 2":
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.44.0.tgz#fa11c5eb0aca1334b4233cb4d52f10c5a6272f92"
integrity sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==

mime-types@2.1.27, mime-types@^2.1.12, mime-types@^2.1.18, mime-types@^2.1.26, mime-types@~2.1.19, mime-types@~2.1.24:
mime-types@2.1.27, mime-types@^2.1.12, mime-types@^2.1.18, mime-types@^2.1.26, mime-types@~2.1.17, mime-types@~2.1.19, mime-types@~2.1.24:
version "2.1.27"
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.27.tgz#47949f98e279ea53119f5722e0f34e529bec009f"
integrity sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==
Expand All @@ -10200,6 +10202,11 @@ mime-types@~1.0.1:
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-1.0.2.tgz#995ae1392ab8affcbfcb2641dd054e943c0d5dce"
integrity sha1-mVrhOSq4r/y/yyZB3QVOlDwNXc4=

mime@1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6"
integrity sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==

mime@1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
Expand Down Expand Up @@ -11249,7 +11256,7 @@ parseuri@0.0.5:
dependencies:
better-assert "~1.0.0"

parseurl@~1.3.3:
parseurl@~1.3.2, parseurl@~1.3.3:
version "1.3.3"
resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4"
integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==
Expand Down Expand Up @@ -11456,16 +11463,6 @@ please-upgrade-node@^3.2.0:
dependencies:
semver-compare "^1.0.0"

plugin-error@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/plugin-error/-/plugin-error-1.0.1.tgz#77016bd8919d0ac377fdcdd0322328953ca5781c"
integrity sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==
dependencies:
ansi-colors "^1.0.1"
arr-diff "^4.0.0"
arr-union "^3.1.0"
extend-shallow "^3.0.2"

pn@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb"
Expand Down Expand Up @@ -11778,7 +11775,7 @@ randomfill@^1.0.3:
randombytes "^2.0.5"
safe-buffer "^5.1.0"

range-parser@~1.2.1:
range-parser@~1.2.0, range-parser@~1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031"
integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==
Expand Down Expand Up @@ -12616,12 +12613,44 @@ send@0.17.1:
range-parser "~1.2.1"
statuses "~1.5.0"

send@^0.16.2:
version "0.16.2"
resolved "https://registry.yarnpkg.com/send/-/send-0.16.2.tgz#6ecca1e0f8c156d141597559848df64730a6bbc1"
integrity sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==
dependencies:
debug "2.6.9"
depd "~1.1.2"
destroy "~1.0.4"
encodeurl "~1.0.2"
escape-html "~1.0.3"
etag "~1.8.1"
fresh "0.5.2"
http-errors "~1.6.2"
mime "1.4.1"
ms "2.0.0"
on-finished "~2.3.0"
range-parser "~1.2.0"
statuses "~1.4.0"

serialize-javascript@^2.1.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-2.1.2.tgz#ecec53b0e0317bdc95ef76ab7074b7384785fa61"
integrity sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ==

serve-static@1.14.1:
serve-index@^1.9.1:
version "1.9.1"
resolved "https://registry.yarnpkg.com/serve-index/-/serve-index-1.9.1.tgz#d3768d69b1e7d82e5ce050fff5b453bea12a9239"
integrity sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=
dependencies:
accepts "~1.3.4"
batch "0.6.1"
debug "2.6.9"
escape-html "~1.0.3"
http-errors "~1.6.2"
mime-types "~2.1.17"
parseurl "~1.3.2"

serve-static@1.14.1, serve-static@^1.13.2:
version "1.14.1"
resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.14.1.tgz#666e636dc4f010f7ef29970a88a674320898b2f9"
integrity sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==
Expand Down Expand Up @@ -13117,6 +13146,11 @@ static-extend@^0.1.1:
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=

statuses@~1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087"
integrity sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==

stealthy-require@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b"
Expand Down Expand Up @@ -13949,7 +13983,7 @@ underscore.string@^3.2.2, underscore.string@~3.3.4:
sprintf-js "^1.0.3"
util-deprecate "^1.0.2"

underscore@>=1.8.3, underscore@^1.8.3:
underscore@>=1.8.3:
version "1.9.2"
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.9.2.tgz#0c8d6f536d6f378a5af264a72f7bec50feb7cf2f"
integrity sha512-D39qtimx0c1fI3ya1Lnhk3E9nONswSKhnffBI0gME9C99fYOkNi04xs8K6pePLhvl1frbDemkaBQ5ikWllR2HQ==
Expand Down Expand Up @@ -14251,7 +14285,7 @@ verror@1.10.0:
core-util-is "1.0.2"
extsprintf "^1.2.0"

vinyl-fs@^3.0.0, vinyl-fs@^3.0.3:
vinyl-fs@^3.0.0:
version "3.0.3"
resolved "https://registry.yarnpkg.com/vinyl-fs/-/vinyl-fs-3.0.3.tgz#c85849405f67428feabbbd5c5dbdd64f47d31bc7"
integrity sha512-vIu34EkyNyJxmP0jscNzWBSygh7VWhqun6RmqVfXePrOwi9lhvRs//dOaGOTRUQr4tx7/zd26Tk5WeSVZitgng==
Expand Down Expand Up @@ -14296,7 +14330,7 @@ vinyl@^0.5.0:
clone-stats "^0.0.1"
replace-ext "0.0.1"

vinyl@^2.0.0, vinyl@^2.2.0:
vinyl@^2.0.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-2.2.0.tgz#d85b07da96e458d25b2ffe19fece9f2caa13ed86"
integrity sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==
Expand Down
2 changes: 1 addition & 1 deletion yuidoc.json
Expand Up @@ -4,7 +4,7 @@
"version": "3.1.3",
"options": {
"paths": [
"addon/components/base",
"addon/components",
"addon/mixins"
],
"exclude": "vendor",
Expand Down

0 comments on commit 1211338

Please sign in to comment.