Skip to content

Commit

Permalink
Fix the docs app after converting to a monorepo
Browse files Browse the repository at this point in the history
This commit covers part 2 of the Embroider V2 addon conversion guide
See: https://github.com/embroider-build/embroider/blob/main/docs/porting-addons-to-v2.md
  • Loading branch information
SanderKnauff committed Dec 23, 2023
1 parent 68edf98 commit 19e2e45
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 133 deletions.
1 change: 0 additions & 1 deletion addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"ember-render-helpers": "^0.2.0",
"ember-style-modifier": "^0.8.0 || ^1.0.0 || ^2.0.0 || ^3.0.0",
"findup-sync": "^5.0.0",
"fs-extra": "^11.0.0",
"resolve": "^1.18.1",
"silent-error": "^1.0.1",
"tracked-toolbox": "^1.2.3 || ^2.0.0"
Expand Down
4 changes: 1 addition & 3 deletions test-app/gulpfile.js → docs/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ gulp.task('docs:api', function () {
});

gulp.task('docs:app', function () {
return execa('ember', ['build', '--prod'], {
cwd: 'docs',
}).catch((e) => {
return execa('ember', ['build', '--prod']).catch((e) => {
console.error(e);
throw e;
});
Expand Down
15 changes: 13 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-bootstrap-docs",
"version": "0.0.0",
"version": "6.1.0",
"private": true,
"description": "ember-bootstrap docs",
"repository": "https://github.com/kaliber5/ember-bootstrap",
Expand All @@ -11,6 +11,8 @@
"test": "tests"
},
"scripts": {
"docs:build": "gulp docs:build",
"docs:serve": "gulp docs:serve",
"build": "ember build --environment=production",
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
"lint:css": "stylelint \"**/*.scss\"",
Expand Down Expand Up @@ -49,6 +51,7 @@
"ember-cli-showdown": "7.0.0",
"ember-cli-sri": "2.1.1",
"ember-cli-terser": "4.0.2",
"ember-cli-yuidoc": "0.9.1",
"ember-code-snippet": "3.0.0",
"ember-cp-validations": "6.0.0",
"ember-fetch": "8.1.2",
Expand All @@ -69,13 +72,21 @@
"eslint-plugin-n": "16.5.0",
"eslint-plugin-prettier": "5.1.1",
"eslint-plugin-qunit": "8.0.1",
"execa": "5.1.1",
"gulp": "4.0.2",
"gulp-connect": "5.7.0",
"gulp-insert": "0.5.0",
"gulp-rename": "2.0.0",
"gulp-transform": "3.0.5",
"loader.js": "4.7.0",
"merge-stream": "2.0.0",
"prember": "2.0.0",
"prettier": "3.0.3",
"qunit": "2.20.0",
"qunit-dom": "3.0.0",
"sass": "1.69.5",
"sinon": "17.0.1",
"striptags": "3.2.0",
"stylelint": "16.0.2",
"stylelint-config-standard-scss": "12.0.0",
"stylelint-prettier": "5.0.0",
Expand All @@ -90,7 +101,7 @@
},
"ember-addon": {
"paths": [
".."
"../addon"
]
},
"volta": {
Expand Down
10 changes: 5 additions & 5 deletions test-app/yuidoc.json → docs/yuidoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"version": "3.1.3",
"options": {
"paths": [
"addon/components",
"addon/mixins"
"../addon/addon/components",
"../addon/addon/mixins"
],
"exclude": "vendor",
"outdir": "docs/api",
"themedir": "docs/yuidoc-theme",
"outdir": "api",
"themedir": "yuidoc-theme",
"helpers": [
"docs/yuidoc-theme/helpers/index.js"
"yuidoc-theme/helpers/index.js"
]
}
}
137 changes: 28 additions & 109 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
Loading

0 comments on commit 19e2e45

Please sign in to comment.