@inriver/inri 1.17.0 → 1.19.0

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.
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@inriver/inri": minor
3
+ ---
4
+
5
+ Update documentation
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
3
- "changelog": ["@changesets/changelog-github", {"repo": "inriver/inri-monorepo"}],
3
+ "changelog": "@changesets/cli/changelog",
4
4
  "commit": false,
5
5
  "fixed": [],
6
6
  "linked": [],
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@inriver/inri": minor
3
+ ---
4
+
5
+ Updating README and exporting tailwing config
package/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # @inriver/inri
2
+
3
+ ## 1.19.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Update documentation
8
+ - Updating README and exporting tailwing config
9
+
10
+ ## 1.18.0
11
+
12
+ ### Minor Changes
13
+
14
+ - Updating README and exporting tailwing config
package/README.md ADDED
@@ -0,0 +1,106 @@
1
+ # Inri framework
2
+
3
+ In order to use the *inri* package properly, you need to have certain peer dependencies installed in your project. These peer dependencies are not automatically installed when you install inri, so you have to install them separately.
4
+
5
+ ## Peer dependencies
6
+
7
+ Before installing and using *inri*, please make sure you have the following peer dependencies installed in your project:
8
+
9
+ * quasar version 2.12.1 or compatible
10
+ * vue version 3.x.x or any compatible version starting with 3
11
+ * vue-i18n version 9.1.7 or any compatible version starting with 9.1
12
+ * vue-router version 4.0.12 or any compatible version starting with 4
13
+ * WindiCSS - Follow this guide how to set it up https://windicss.org/guide/installation.html
14
+
15
+ ## Installation
16
+
17
+ * Create a `.npmrc` file and add the following line `//registry.npmjs.org/:_authToken=${NPM_TOKEN}`
18
+
19
+ * Create `.env` file that is `.gitignored` (important!)
20
+
21
+ * Get the token from the `inri-access-group` variable group located in the pipelines
22
+
23
+
24
+ ```
25
+ pnpm install @inriver/inri
26
+ pnpm install quasar@2.12.1 vue@^3.3.4 vue-i18n@^9.1.7 vue-router@^4.0.12
27
+ ```
28
+
29
+ ## Deploying your app with the inri framework
30
+
31
+
32
+ The build stage must also have access to the `inri-access-group`
33
+ Add it to your stage for example
34
+ ```
35
+ stages:
36
+ - stage: Build
37
+ dependsOn:
38
+ variables:
39
+ - template: 'someTemplate.yml'
40
+ - group: inri-access-token
41
+ jobs:
42
+ ...
43
+ ```
44
+ Your build pipeline must have access to the .npmrc file so add this script
45
+ to the build stage of your pipeline.
46
+
47
+ ```
48
+ - bash: |
49
+ echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
50
+ env:
51
+ NPM_TOKEN: $(NPM_TOKEN)
52
+ displayName: Init .npmrc file
53
+ ```
54
+
55
+ ## Initializing the framework
56
+
57
+ main.ts (entry file)
58
+ It's importing that you import the `virtual:windi.css` after the App import
59
+ ```
60
+ import { createApp } from 'vue';
61
+ import App from './App.vue';
62
+ import 'virtual:windi.css';
63
+
64
+ import { initInriFramework } from '@inriver/inri';
65
+ const app = createApp(App);
66
+ app.use(initInriFramework);
67
+
68
+ app.mount('#app');
69
+ ```
70
+
71
+ App.vue
72
+
73
+ ```
74
+ import { useInriApp } from '@inriver/inri';
75
+ ....
76
+ useInriApp()
77
+ ```
78
+ CSS
79
+
80
+ Create a tailwind.config.js file and copy this
81
+
82
+ ```
83
+ import { baseTailwindConfig } from './node_modules/@inriver/inri/configs/base-tailwind-config'
84
+
85
+ export default {
86
+ ...baseTailwindConfig,
87
+ extract: {
88
+ include: [
89
+ './node_modules/@inriver/inri/src/**/*.{vue,html,jsx,tsx}',
90
+ 'src/**/*.{vue,html,jsx,tsx}',
91
+ ],
92
+ },
93
+ }
94
+
95
+
96
+ ```
97
+ ### Using changesets
98
+
99
+ When it's time to publish a PR follow these steps using changesets CLI
100
+
101
+ ```
102
+ 1. Run pnpm changeset and follow the prompt
103
+ 2. When all is well and one and it's time to release run
104
+ pnpm changeset version which will automatically bump the package.json
105
+ 3. Publish command is handled in the release pipeline when merged to main
106
+ ```
@@ -1,4 +1,4 @@
1
- module.exports = {
1
+ export const baseTailwindConfig = {
2
2
  preflight: false,
3
3
  darkMode: false,
4
4
  theme: {
package/index.ts CHANGED
@@ -10,7 +10,7 @@ import { useDoubleClickListener } from './src/composables/useDoubleClickListener
10
10
  import { useDirtyCheck } from './src/composables/useDirtyCheck'
11
11
  import { useTruncateChips } from './src/composables/useTruncateChips'
12
12
  import { initInriIcons } from './src/plugins/inriIcons'
13
- import baseTailwindConfig from './configs/base-tailwind-config'
13
+ import { baseTailwindConfig } from './configs/base-tailwind-config'
14
14
 
15
15
  export {
16
16
  useInriStore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inriver/inri",
3
- "version": "1.17.0",
3
+ "version": "1.19.0",
4
4
  "peerDependencies": {
5
5
  "quasar": "2.12.1",
6
6
  "vue": "^3.3.4",
@@ -30,7 +30,8 @@
30
30
  "stylelint": "^13.13.1",
31
31
  "stylelint-config-standard": "^22.0.0",
32
32
  "stylelint-webpack-plugin": "^3.0.1",
33
- "typescript": "~4.1.5"
33
+ "typescript": "~4.1.5",
34
+ "@changesets/cli": "^2.26.2"
34
35
  },
35
36
  "gitHooks": {
36
37
  "pre-commit": "lint-staged"
@@ -45,12 +46,10 @@
45
46
  "git add"
46
47
  ]
47
48
  },
48
- "dependencies": {
49
- "@changesets/cli": "^2.26.2"
50
- },
51
49
  "scripts": {
52
50
  "lint": "vue-cli-service lint",
53
51
  "changeset": "changeset",
52
+ "version": "changeset version",
54
53
  "release": "changeset publish"
55
54
  }
56
55
  }
@@ -1,6 +1,4 @@
1
1
  import '../styles/main.scss'
2
- // import 'windi.css'
3
- // import '../styles/tailwind/index.css'
4
2
  import { App } from 'vue'
5
3
  import { Quasar, Notify, Dialog, Meta } from 'quasar'
6
4
  import { registerComponents } from '../plugins/library'
@@ -1,3 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;