diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index d6104e6..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,3 +0,0 @@
-defaults
-not IE 11
-maintained node versions
diff --git a/.dcignore b/.dcignore
deleted file mode 100644
index c9a43dd..0000000
--- a/.dcignore
+++ /dev/null
@@ -1,4 +0,0 @@
-node_modules/
-test/
-public/
-dist/
diff --git a/.editorconfig b/.editorconfig
index ff76f97..8822ba2 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -8,6 +8,3 @@ insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2
-
-[*.cs]
-indent_size = 4
\ No newline at end of file
diff --git a/.eslintrc.js b/.eslintrc.js
index 72debb3..87d4124 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -2,7 +2,7 @@ module.exports = {
root: true,
env: {
browser: true,
- node: true
+ node: false
},
extends: ['plugin:vue/recommended', 'eslint:recommended', 'plugin:import/errors', 'plugin:import/warnings'],
parserOptions: {
@@ -10,8 +10,6 @@ module.exports = {
},
plugins: ['html'],
rules: {
- 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'import/no-unresolved': 'warn'
},
overrides: [
diff --git a/.gitignore b/.gitignore
index 92e7d71..1b22b8e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -196,3 +196,4 @@ yarn-error.log
# End of https://www.toptal.com/developers/gitignore/api/linux,macos,node,dotenv,visualstudiocode,vuejs
.dccache
+build
diff --git a/bili.config.js b/bili.config.js
index 6c19089..711eb2b 100644
--- a/bili.config.js
+++ b/bili.config.js
@@ -1,30 +1,19 @@
-module.exports = {
- jsCompiler: 'babel',
- input: ['src/index.browser.mjs', 'src/index.mjs'],
+const config = {
+ input: 'build/main.js',
bundleNodeModules: true,
+ externals: ['vue'],
output: {
format: ['cjs', 'esm', 'umd'],
minify: true,
moduleName: 'Grid',
- extractCSS: false
+ extractCSS: false,
+ dir: 'dist/'
},
plugins: {
- string: {
- include: 'node_modules/**/*.css'
- },
+ babel: false,
vue: {
target: 'browser'
- },
- babel: {
- presets: ['vue', ['@babel/preset-env', { useBuiltIns: 'usage', corejs: 3 }]],
- plugins: ['@babel/plugin-transform-runtime'],
- babelHelpers: 'runtime',
- configFile: false
- },
- 'node-resolve': true
- },
- resolvePlugins: {
- string: require('rollup-plugin-string').string
- },
- external: 'crypto'
+ }
+ }
}
+export default config
diff --git a/docs/using_with_components.md b/docs/using_with_components.md
index 266e300..e44a9b8 100644
--- a/docs/using_with_components.md
+++ b/docs/using_with_components.md
@@ -10,7 +10,7 @@ directly into a table cell or row.
+
+