@zipify/wysiwyg 1.0.0-dev.39 → 1.0.0-dev.41

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/.editorconfig CHANGED
@@ -10,7 +10,7 @@ charset = utf-8
10
10
  trim_trailing_whitespace = true
11
11
  insert_final_newline = true
12
12
 
13
- [*.{js,html,vue,scss,css,svg}]
13
+ [*.{js,html,vue,css,svg}]
14
14
  indent_size = 4
15
15
  tab_width = 4
16
16
 
package/.eslintrc.js CHANGED
@@ -12,7 +12,7 @@ module.exports = {
12
12
  settings: {
13
13
  'import/resolver': {
14
14
  node: {
15
- extensions: ['.js', '.scss', '.css', '.vue', '.html']
15
+ extensions: ['.js', '.css', '.vue', '.html']
16
16
  }
17
17
  }
18
18
  },
@@ -113,7 +113,7 @@ module.exports = {
113
113
  'import/extensions': [
114
114
  'error',
115
115
  'never',
116
- { scss: 'always', html: 'always' }
116
+ { html: 'always' }
117
117
  ],
118
118
  'import/order': [
119
119
  'error',
package/.lintstagedrc CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "*.{vue,scss}": [
2
+ "*.{vue,css}": [
3
3
  "stylelint --config .stylelintrc"
4
4
  ],
5
5
  "*.{vue,js}": [
package/.stylelintrc CHANGED
@@ -98,10 +98,6 @@
98
98
  "keyframe-block-no-duplicate-selectors": true
99
99
  },
100
100
  "overrides": [
101
- {
102
- "files": ["**/*.scss"],
103
- "customSyntax": "postcss-scss"
104
- },
105
101
  {
106
102
  "files": ["**/*.vue"],
107
103
  "customSyntax": "postcss-html"
@@ -0,0 +1,31 @@
1
+ import { defineConfig } from 'vite';
2
+ import { createVuePlugin } from 'vite-plugin-vue2';
3
+ import { resolvePath } from './settings';
4
+
5
+ export default defineConfig({
6
+ build: {
7
+ lib: {
8
+ entry: resolvePath('./lib/index.js'),
9
+ fileName: 'wysiwyg',
10
+ formats: ['es']
11
+ },
12
+
13
+ rollupOptions: {
14
+ external: [
15
+ 'vue',
16
+ 'zipify-colorpicker'
17
+ ],
18
+ output: {
19
+ assetFileNames: (asset) => {
20
+ return asset.name === 'style.css' ? 'wysiwyg.css' : asset.name;
21
+ }
22
+ }
23
+ }
24
+ },
25
+
26
+ resolve: {
27
+ extensions: ['*', '.js', '.vue', '.json']
28
+ },
29
+
30
+ plugins: [createVuePlugin()]
31
+ });
@@ -0,0 +1,9 @@
1
+ const path = require('path');
2
+
3
+ const root = path.resolve(__dirname, '../..');
4
+
5
+ module.exports = {
6
+ root,
7
+ resolvePath: (...parts) => path.resolve(root, ...parts),
8
+ isDevelopment: process.env.NODE_ENV === 'development'
9
+ };