From aba5731c28d356f141ac4b3431478e5836ae0ab0 Mon Sep 17 00:00:00 2001 From: Thomas Allmer Date: Mon, 5 Oct 2020 21:40:18 +0200 Subject: [PATCH] fix(search): add theme to npm artifact --- .changeset/bright-cars-love.md | 5 +++++ .gitignore | 2 +- README.md | 29 ++++++++++++++++++++++++++++- packages/search/package.json | 3 ++- packages/search/tsconfig.json | 4 ++-- rocket.config.js | 2 +- 6 files changed, 39 insertions(+), 6 deletions(-) create mode 100644 .changeset/bright-cars-love.md diff --git a/.changeset/bright-cars-love.md b/.changeset/bright-cars-love.md new file mode 100644 index 00000000..427fa9d9 --- /dev/null +++ b/.changeset/bright-cars-love.md @@ -0,0 +1,5 @@ +--- +'@d4kmor/search': patch +--- + +Add theme files to the npm package diff --git a/.gitignore b/.gitignore index afeaab73..56d7b731 100644 --- a/.gitignore +++ b/.gitignore @@ -29,7 +29,7 @@ stats.html *.tsbuildinfo -## Rocket ignore files (need to be the full path to the folders) +## Rocket ignore files (need to be the full relative path to the folders) docs/._merged_data/ docs/._merged_assets/ docs/._merged_includes/ diff --git a/README.md b/README.md index 82931dc0..e37e2440 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -> This is PRE ALPHA... it requires manually patching of @lion/overlays +> This project is in an ALPHA phase # Rocket @@ -8,6 +8,15 @@ npm i @d4kmor/cli @d4kmor/launch ``` +## Add to your .gitignore + +``` +## Rocket ignore files (need to be the full relative path to the folders) +docs/._merged_data/ +docs/._merged_assets/ +docs/._merged_includes/ +``` + ## Usage ```json @@ -16,3 +25,21 @@ npm i @d4kmor/cli @d4kmor/launch "build": "rocket build", } ``` + +## Use the launch theme + +Create `rocket.config.js` as es module (may need `.mdjs`) + +```js +import { rocketLaunch } from '@d4kmor/launch'; + +export default { + themes: [rocketLaunch()], +}; +``` + +## Create Content + +``` +echo "# My First Page" > ./docs/guides/index.md +``` diff --git a/packages/search/package.json b/packages/search/package.json index 88d981ed..aca6f25b 100644 --- a/packages/search/package.json +++ b/packages/search/package.json @@ -15,7 +15,8 @@ "*.js", "dist", "dist-types", - "src" + "src", + "theme" ], "keywords": [ "rocket", diff --git a/packages/search/tsconfig.json b/packages/search/tsconfig.json index 9838afe5..7b844e8e 100644 --- a/packages/search/tsconfig.json +++ b/packages/search/tsconfig.json @@ -5,12 +5,12 @@ "compilerOptions": { "module": "commonjs", "outDir": "./dist", - "rootDir": "./src", + "rootDir": "./", "composite": true, "allowJs": true, "checkJs": true }, "references": [], - "include": ["src", "index.js"], + "include": ["src", "theme", "index.js"], "exclude": ["src/browser", "tests", "dist"] } diff --git a/rocket.config.js b/rocket.config.js index b22dc865..d227fff4 100644 --- a/rocket.config.js +++ b/rocket.config.js @@ -1,5 +1,5 @@ -import { rocketSearch } from '@d4kmor/search'; import { rocketLaunch } from '@d4kmor/launch'; +import { rocketSearch } from '@d4kmor/search'; export default { themes: [rocketLaunch(), rocketSearch()],