5.3.3 • Published 4 days ago

@treely/strapi-slices v5.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 days ago

Tree.ly Strapi Slices

This package contains all the slices that are used for the Tree.ly website as well as other projects developed by Tree.ly and powered by the Tree.ly Strapi instance.

Find the documentation of the slices here.

Development

Install dependencies:

npm install

Run the app in DEV mode:

npm run dev

Run the linter:

npm run lint

Run the tests:

npm run test

For local testing, you can link the package to your project:

npm run build
npm pack

cd ../path/to/your/project
npm install ../path/to/strapi-slices-package.tgz

Commit message guideline

The project uses the Angular commit message guideline. Find the documentation here.

Build

Build the package:

npm run build

Find the build in the dist folder.

Use the package

Install the package:

npm install @treely/strapi-slices
npm install boemly

Use the slices:

import {
  IStrapiData,
  SliceRenderer,
  StrapiBlogPost,
  StrapiCustomerStory,
} from '@treely/strapi-slices';
import { BoemlyThemeProvider } from 'boemly';

// Get the slices, blog posts, and customer stories from Strapi
// Get the projects from the FPM API
const slices: any[] = [];
const blogPosts: IStrapiData<StrapiBlogPost> = [];
const projects: PortfolioProject[] = [];
const customerStories: IStrapiData<StrapiCustomerStory> = [];

const App = (): JSX.Element => (
  <BoemlyThemeProvider>
    <SliceRenderer
      slices={slices}
      blogPosts={blogPosts}
      projects={projects}
      customerStories={customerStories}
    />
  </BoemlyThemeProvider>
);
5.3.3

4 days ago

5.3.2

16 days ago

5.3.1

17 days ago

5.3.0

18 days ago

5.2.7

19 days ago

5.2.6

22 days ago

5.2.4

25 days ago

5.2.3

25 days ago

5.2.5

25 days ago

5.2.2

26 days ago

5.2.1

1 month ago

5.1.2

1 month ago

5.2.0

1 month ago

5.1.1

1 month ago

5.1.0

1 month ago

5.0.0

1 month ago

4.4.7

1 month ago

4.4.6

1 month ago

4.4.5

2 months ago

4.4.4

2 months ago

4.4.3

2 months ago

4.4.2

2 months ago

4.4.1

2 months ago

4.4.0

2 months ago

4.3.0

2 months ago

4.2.0

3 months ago

4.1.5

3 months ago

4.1.4

3 months ago

4.1.3

3 months ago

4.1.2

3 months ago

4.1.0

3 months ago

4.1.1

3 months ago

4.0.0

4 months ago

3.3.0

4 months ago

3.2.1

4 months ago

3.2.0

4 months ago

3.1.1

4 months ago

3.1.0

4 months ago

3.0.0

4 months ago

2.4.1

4 months ago

2.3.0

5 months ago

2.2.1

5 months ago

2.4.0

5 months ago

2.2.0

5 months ago

2.1.0

5 months ago

2.0.0

5 months ago

1.1.0

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

6 months ago

1.0.0

6 months ago