forked from andrelmlins/vue-grid-responsive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6734575
commit e2bde88
Showing
12 changed files
with
370 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
dist | ||
dist | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "singleQuote": true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 N.A.D.A. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template> | ||
<row :gutter="12" :columns="24"> | ||
<column :xs="12" :sm="6" :lg="4"> | ||
<p>teste</p> | ||
</column> | ||
<column :xs="12" :sm="6" :lg="4"> | ||
<p>teste</p> | ||
</column> | ||
<column :xs="12" :sm="6" :lg="4"> | ||
<p>teste</p> | ||
</column> | ||
<column :xs="12" :sm="6" :lg="4"> | ||
<p>teste</p> | ||
</column> | ||
<column :xs="12" :sm="6" :lg="4"> | ||
<p>teste</p> | ||
</column> | ||
<column :xs="12" :sm="6" :lg="4"> | ||
<p>teste</p> | ||
</column> | ||
</row> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Vue from 'vue'; | ||
import { Row, Column } from '../src'; | ||
import App from './App.vue'; | ||
|
||
Vue.component('row', Row); | ||
Vue.component('column', Column); | ||
|
||
new Vue({ | ||
el: '#app', | ||
render: h => h(App) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width,initial-scale=1" /> | ||
|
||
<title>Vue Grid Responsive</title> | ||
|
||
<link rel="icon" type="image/png" href="/favicon.png" /> | ||
<script defer src="/build/bundle.js"></script> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,108 @@ | ||
import babel from "rollup-plugin-babel"; | ||
import resolve from "rollup-plugin-node-resolve"; | ||
import commonjs from "rollup-plugin-commonjs"; | ||
import vue from "rollup-plugin-vue"; | ||
import pkg from "./package.json"; | ||
import babel from 'rollup-plugin-babel'; | ||
import resolve from 'rollup-plugin-node-resolve'; | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
import livereload from 'rollup-plugin-livereload'; | ||
import { terser } from 'rollup-plugin-terser'; | ||
import vue from 'rollup-plugin-vue'; | ||
import replace from 'rollup-plugin-replace'; | ||
import pkg from './package.json'; | ||
|
||
export default [ | ||
const app = { | ||
input: 'docs/main.js', | ||
output: { | ||
sourcemap: true, | ||
format: 'iife', | ||
name: 'app', | ||
file: 'public/build/bundle.js' | ||
}, | ||
plugins: [ | ||
vue(), | ||
babel({ exclude: 'node_modules/**' }), | ||
resolve({ mainFields: ['module', 'jsnext', 'main', 'browser'] }), | ||
commonjs(), | ||
serve(), | ||
livereload('public'), | ||
terser(), | ||
replace({ | ||
'process.env.NODE_ENV': JSON.stringify('development'), | ||
'process.env.VUE_ENV': JSON.stringify('browser') | ||
}) | ||
], | ||
watch: { | ||
clearScreen: false | ||
} | ||
}; | ||
|
||
const library = [ | ||
{ | ||
input: "src/index.js", | ||
input: 'src/index.js', | ||
plugins: [ | ||
vue(), | ||
babel({ exclude: "node_modules/**" }), | ||
resolve({ mainFields: ["module", "jsnext", "main", "browser"] }), | ||
babel({ exclude: 'node_modules/**' }), | ||
resolve({ mainFields: ['module', 'jsnext', 'main', 'browser'] }), | ||
commonjs() | ||
], | ||
output: { | ||
exports: "named", | ||
name: "VueGridResponsive", | ||
exports: 'named', | ||
name: 'VueGridResponsive', | ||
file: pkg.unpkg, | ||
format: "iife", | ||
format: 'iife', | ||
sourcemap: true | ||
}, | ||
watch: { | ||
include: "src/**" | ||
include: 'src/**' | ||
} | ||
}, | ||
{ | ||
input: "./src/index.js", | ||
input: './src/index.js', | ||
plugins: [ | ||
vue(), | ||
babel({ exclude: "node_modules/**" }), | ||
resolve({ mainFields: ["module", "jsnext", "main", "browser"] }), | ||
babel({ exclude: 'node_modules/**' }), | ||
resolve({ mainFields: ['module', 'jsnext', 'main', 'browser'] }), | ||
commonjs() | ||
], | ||
output: { | ||
name: "VueGridResponsive", | ||
name: 'VueGridResponsive', | ||
file: pkg.module, | ||
format: "es", | ||
format: 'es', | ||
sourcemap: true | ||
} | ||
}, | ||
{ | ||
input: "./src/index.js", | ||
input: './src/index.js', | ||
plugins: [ | ||
vue(), | ||
babel({ exclude: "node_modules/**" }), | ||
resolve({ mainFields: ["module", "jsnext", "main", "browser"] }), | ||
babel({ exclude: 'node_modules/**' }), | ||
resolve({ mainFields: ['module', 'jsnext', 'main', 'browser'] }), | ||
commonjs() | ||
], | ||
output: { | ||
exports: "named", | ||
name: "VueGridResponsive", | ||
exports: 'named', | ||
name: 'VueGridResponsive', | ||
file: pkg.main, | ||
format: "umd", | ||
format: 'umd', | ||
sourcemap: true | ||
} | ||
} | ||
]; | ||
|
||
function serve() { | ||
let started = false; | ||
|
||
return { | ||
writeBundle() { | ||
if (!started) { | ||
started = true; | ||
|
||
require('child_process').spawn('npm', ['run', 'start', '--', '--dev'], { | ||
stdio: ['ignore', 'inherit', 'inherit'], | ||
shell: true | ||
}); | ||
} | ||
} | ||
}; | ||
} | ||
|
||
const config = process.env.ROLLUP_WATCH ? app : library; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { default as Row } from "./Row.vue"; | ||
export { default as Column } from "./Column.vue"; | ||
export { default as Row } from './Row.vue'; | ||
export { default as Column } from './Column.vue'; |
Oops, something went wrong.