Skip to content

Commit

Permalink
fix(search): add theme to npm artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
daKmoR committed Oct 5, 2020
1 parent 3ac8a47 commit aba5731
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-cars-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@d4kmor/search': patch
---

Add theme files to the npm package
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
> This is PRE ALPHA... it requires manually patching of @lion/overlays
> This project is in an ALPHA phase
# Rocket

Expand All @@ -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
Expand All @@ -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
```
3 changes: 2 additions & 1 deletion packages/search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"*.js",
"dist",
"dist-types",
"src"
"src",
"theme"
],
"keywords": [
"rocket",
Expand Down
4 changes: 2 additions & 2 deletions packages/search/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
2 changes: 1 addition & 1 deletion rocket.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { rocketSearch } from '@d4kmor/search';
import { rocketLaunch } from '@d4kmor/launch';
import { rocketSearch } from '@d4kmor/search';

export default {
themes: [rocketLaunch(), rocketSearch()],
Expand Down

0 comments on commit aba5731

Please sign in to comment.