Skip to content

Commit

Permalink
feat(example): add routing
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeraS committed Dec 27, 2024
1 parent a559f53 commit adacdfb
Show file tree
Hide file tree
Showing 25 changed files with 366 additions and 7,905 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ node_modules

# Artifacts
dist

examples/**/package-lock.json
2 changes: 2 additions & 0 deletions examples/ssr/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
1 change: 1 addition & 0 deletions examples/ssr/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
2 changes: 0 additions & 2 deletions examples/ssr/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
dist
CHANGELOG.md
CONTRIBUTING.md
package-lock.json
32 changes: 32 additions & 0 deletions examples/ssr/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# gravity-ui-app-builder-example

App-builder template with: typescript, sass and Gravity UI.

## ⚗️ Technologies list

- [Gravity UI](https://gravity-ui.com/)
- [TypeScript](https://www.typescriptlang.org/)
- [Sass](https://sass-lang.com/)
- [ESlint](https://eslint.org/) & [Prettier](https://prettier.io/)

## 🚀 Start using it

To use this template for your app you can run:

```sh
npx degit gravity-ui/app-builder/examples/ssr#main my-project
cd my-project

npm install
npm run dev
```

or

```sh
pnpx degit gravity-ui/app-builder/examples/ssr#main my-project
cd my-project

pnpm install
pnpm run dev
```
4 changes: 2 additions & 2 deletions examples/ssr/app-builder.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default defineConfig(() => {
port: true,
},
ssr: {
noExternal: [/@gravity-ui\/.+/, /lodash/],
moduleType: 'esm',
noExternal: [/@gravity-ui\/.+/], // dependencies with ccs imports in sources or not correct esm modules should be bundled.
moduleType: 'esm', // default commonjs
},
},
server: {
Expand Down
Loading

0 comments on commit adacdfb

Please sign in to comment.