quasar-ui-danx 0.2.23 → 0.2.25

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.
package/README.md CHANGED
@@ -34,8 +34,97 @@
34
34
  # Setup
35
35
 
36
36
  ```bash
37
- $ yarn add -D sass vite-svg-loader quasar quasar-ui-danx
38
- $ yarn
37
+ yarn create vue # Follow instructions for settings up new Vue App
38
+ yarn add quasar-ui-danx quasar
39
+ yarn add -D sass vite-svg-loader tailwindcss eslint eslint-plugin-import autoprefixer
40
+ ```
41
+
42
+ ### Setup PHPStorm
43
+
44
+ * Disable Typescript language service
45
+ * Setup node_modules directory as a library
46
+ * Configure `tsconfig.json`
47
+
48
+ ```json
49
+ {
50
+ "include": [
51
+ "node_modules/quasar-ui-danx/**/*"
52
+ ]
53
+ }
54
+ ```
55
+
56
+ * Configure `vite.config.ts`
57
+
58
+ ```ts
59
+ export default ({ command }) => {
60
+ // For development w/ HMR, load the danx library + styles directly from the directory
61
+ // NOTE: These are the paths relative to the mounted quasar-ui-danx directory inside the mva docker container
62
+ const danx = (command === "serve" ? {
63
+ "quasar-ui-danx": resolve(__dirname, "../quasar-ui-danx/ui/src"),
64
+ "quasar-ui-danx-styles": resolve(__dirname, "../quasar-ui-danx/src/styles/index.scss")
65
+ } : {
66
+ // Import from quasar-ui-danx module for production
67
+ "quasar-ui-danx-styles": "quasar-ui-danx/dist/style.css"
68
+ });
69
+
70
+ return defineConfig({
71
+ resolve: {
72
+ alias: {
73
+ ...danx
74
+ }
75
+ },
76
+ });
77
+ }
78
+ ```
79
+
80
+ * Add node_modules as a library in PHPStorm
81
+ * Settings -> Directories -> Add
82
+ * Create a new directory w/ name node_modules and set the directory to the node_modules directory in your project
83
+ * Symlink Danx UI library
84
+ * copy/paste and run `./danx-local.sh`
85
+ * (or manually symlink node_modules/quasar-ui-danx to ../../quasar-ui-danx/ui/src)
86
+ * Directory structure of your project relative to quasar-ui-danx:
87
+
88
+ ```
89
+ - parent-directory
90
+ - your-app
91
+ - tsconfig.json
92
+ - vite.config.ts
93
+ - src
94
+ - node_modules
95
+ - quasar-ui-danx -> (symlink) ../../quasar-ui-danx/ui/src
96
+ - quasar-ui-danx
97
+ - ui
98
+ - src
99
+ - tests
100
+ ```
101
+
102
+ ### Setup Tailwind
103
+
104
+ Initialize config files for tailwind
105
+ NOTE: vite will automatically pick up the postcss.config.js file, no need to manually configure anything
106
+
107
+ ```
108
+ npx tailwindcss init -p
109
+ ```
110
+
111
+ * Rename tailwind.config.js to tailwind.config.ts
112
+ * Setup your tailwind.config.ts:
113
+ * Make any changes to the colors object
114
+
115
+ ```ts
116
+ /** @type {import('tailwindcss').Config} */
117
+ export const colors = {}
118
+
119
+ export default {
120
+ content: [],
121
+ theme: {
122
+ extend: {
123
+ colors
124
+ }
125
+ },
126
+ plugins: []
127
+ }
39
128
  ```
40
129
 
41
130
  # Developing