Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
Getting builds working again
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Gil committed Jan 16, 2019
1 parent 40ef29d commit dcad475
Show file tree
Hide file tree
Showing 26 changed files with 6,075 additions and 11,951 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

Vuetensils is a collection of Vue components desined to be light weight, accessible, and extensible. It is not a full blown UI library. Instead, it is designed to jump start a project with some of the most common UI solutions, but does not bring with it any opinionated styles. Bring your own styles, and let Vuetensils handle things like a modal popup that is accessible, traps user tab focus, and closes when the escape key is pressed. View on [GitHub](https://github.com/Stegosource/vuetensils) or [NPM](https://www.npmjs.com/package/vuetensils).

Comparison of bundle sizes from other popular libraries:

- None: 94.3kb
- Vuetify: 791kb
- BootstrapVue: 460kb
- Vuetensils: TODO

### Getting Started

#### Install:
Expand All @@ -16,6 +23,7 @@ Vuetensils is a collection of Vue components desined to be light weight, accessi
// main.js
import Vue from 'vue'
import vuetensils from 'vuetensils'
import 'vuetensils/dist/vuetensils.min.css'
Vue.use(vuetensils)
```
Expand Down
10 changes: 0 additions & 10 deletions bili.config.js

This file was deleted.

38 changes: 38 additions & 0 deletions build/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// rollup.config.js
import vue from "rollup-plugin-vue"
import buble from "rollup-plugin-buble"
import replace from "rollup-plugin-replace"
import uglify from "rollup-plugin-uglify-es"
import minimist from "minimist"
import filesize from "rollup-plugin-filesize"

const argv = minimist(process.argv.slice(2))

const config = {
input: "src/entry.js",
output: {
name: "Vuetensils",
exports: "named"
},
plugins: [
replace({
"process.env.NODE_ENV": JSON.stringify("production")
}),
vue({
css: true,
compileTemplate: true,
template: {
isProduction: true
}
}),
buble(),
filesize()
]
}

// Only minify browser (iife) version
if (argv.format === "iife") {
config.plugins.push(uglify())
}

export default config
Loading

0 comments on commit dcad475

Please sign in to comment.