pangea-lib 1.17.4 → 1.17.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +23 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -8,10 +8,10 @@ Install the following packages in your project with npm or yarn:
8
8
  1. yarn add pangea-lib
9
9
  2. yarn add pinia
10
10
  3. yarn add pinia-plugin-persistedstate
11
- 3. yarn add pinia-plugin-persistedstate
11
+ 4. yarn add animate.css (optional)
12
12
  ```
13
13
 
14
- In the main file:
14
+ In the `main` file:
15
15
 
16
16
  ```javascript
17
17
  import { createApp } from 'vue';
@@ -21,6 +21,9 @@ import { createPinia } from 'pinia';
21
21
  import { createPersistedState } from 'pinia-plugin-persistedstate';
22
22
  // pangea
23
23
  import pangea from 'pangea-lib';
24
+ // styles
25
+ import 'animate.css'; // (optional)
26
+ import 'pangea-lib/style.css';
24
27
 
25
28
  // create app
26
29
  const app = createApp(App);
@@ -33,3 +36,21 @@ app.use(pangea);
33
36
  // mount
34
37
  app.mount('#app');
35
38
  ```
39
+
40
+ If you want to use Stylus helpers, in `vite.config`:
41
+
42
+ ```javascript
43
+ import { defineConfig } from 'vite';
44
+
45
+ export default defineConfig({
46
+ css: {
47
+ preprocessorOptions: {
48
+ stylus: {
49
+ additionalData: `
50
+ @import "pangea-lib/src/styles/index.styl";
51
+ `,
52
+ },
53
+ },
54
+ },
55
+ });
56
+ ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "1.17.4",
4
+ "version": "1.17.5",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",