Skip to content

Commit 8b71578

Browse files
committed
initial commit
1 parent 4a9eb3b commit 8b71578

15 files changed

+11039
-60
lines changed

.babelrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"presets": [
3+
["env", { "modules": false }],
4+
"stage-3"
5+
]
6+
}

.eslintrc.js

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
},
6+
plugins: ['vue'], // enable vue plugin
7+
extends: ["plugin:vue/recommended", "prettier"], // activate vue related rules
8+
parserOptions: {
9+
"parser": "babel-eslint",
10+
"ecmaVersion": 7,
11+
"sourceType": "module",
12+
"ecmaFeatures": {
13+
"globalReturn": false,
14+
"impliedStrict": false,
15+
"jsx": false,
16+
"experimentalObjectRestSpread": false,
17+
"allowImportExportEverywhere": false
18+
}
19+
},
20+
rules: {
21+
// allow paren-less arrow functions
22+
"arrow-parens": 0,
23+
// allow async-await
24+
"generator-star-spacing": 0,
25+
// allow debugger during development
26+
"no-debugger": process.env.NODE_ENV === 'production' ? 2 : 0,
27+
"semi": [2, "never"],
28+
"quotes": [2, "single"],
29+
"vue/require-default-prop": 0,
30+
"vue/require-prop-types": 0,
31+
"vue/no-v-html": 0
32+
}
33+
};

.gitignore

100644100755
+14-60
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,15 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
8-
# Runtime data
9-
pids
10-
*.pid
11-
*.seed
12-
*.pid.lock
13-
14-
# Directory for instrumented libs generated by jscoverage/JSCover
15-
lib-cov
16-
17-
# Coverage directory used by tools like istanbul
18-
coverage
19-
20-
# nyc test coverage
21-
.nyc_output
22-
23-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24-
.grunt
25-
26-
# Bower dependency directory (https://bower.io/)
27-
bower_components
28-
29-
# node-waf configuration
30-
.lock-wscript
31-
32-
# Compiled binary addons (https://nodejs.org/api/addons.html)
33-
build/Release
34-
35-
# Dependency directories
1+
.DS_Store
362
node_modules/
37-
jspm_packages/
38-
39-
# TypeScript v1 declaration files
40-
typings/
41-
42-
# Optional npm cache directory
43-
.npm
44-
45-
# Optional eslint cache
46-
.eslintcache
47-
48-
# Optional REPL history
49-
.node_repl_history
50-
51-
# Output of 'npm pack'
52-
*.tgz
53-
54-
# Yarn Integrity file
55-
.yarn-integrity
56-
57-
# dotenv environment variables file
58-
.env
59-
60-
# next.js build output
61-
.next
3+
dist/
4+
lib/
5+
npm-debug.log
6+
yarn-error.log
7+
.npmignore
8+
.editorconfig
9+
10+
# Editor directories and files
11+
.idea
12+
*.suo
13+
*.ntvs*
14+
*.njsproj
15+
*.sln

.vuebeautifyrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"node_path": {
3+
"windows": "C:/Program Files/nodejs/node.exe",
4+
"linux": "/usr/bin/nodejs",
5+
"osx": "/usr/local/bin/node"
6+
},
7+
// Automatically format when a file is saved.
8+
"format_on_save": true,
9+
// Only format the selection if there's one available.
10+
"format_selection_only": true,
11+
// Log the settings passed to the prettifier from `.vuebeautifyrc`.
12+
"print_diagnostics": true
13+
}

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# vue-datatable-net
2+
3+
> Vue jQuery DataTable.net component for bootstrap4
4+
5+
## Build Setup
6+
7+
``` bash
8+
# install dependencies
9+
npm install
10+
11+
# serve with hot reload at localhost:8080
12+
npm run dev
13+
14+
# build your demo page for production
15+
npm run build:example
16+
17+
# pack your component/library with bili for publishing to npm
18+
npm run build
19+
20+
# publishing your component/library to npm (Check your version first before publish.)
21+
npm publish
22+
```
23+
24+
For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).

bili.config.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const VuePlugin = require('rollup-plugin-vue').default
2+
3+
module.exports = {
4+
banner: true,
5+
format: ['umd-min'],
6+
css: true,
7+
plugins: [
8+
VuePlugin({ css: true })
9+
],
10+
outDir: 'lib'
11+
}

example/App.vue

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<template>
2+
<div id="app">
3+
<vdtnet-table/>
4+
</div>
5+
</template>
6+
7+
<script>
8+
import { VdtnetTable } from '../src'
9+
10+
export default {
11+
name: 'app',
12+
components: { VdtnetTable }
13+
}
14+
</script>
15+
16+
<style scoped>
17+
</style>

example/main.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import Vue from 'vue'
2+
import App from './App.vue'
3+
4+
new Vue({
5+
el: '#app',
6+
render: h => h(App)
7+
})

index.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>vue-datatable-net</title>
6+
</head>
7+
<body>
8+
<div id="app"></div>
9+
<script src="/dist/build.js"></script>
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)