Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Apr 27, 2016
0 parents commit 15f3df5
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules
/test/specs.js
.DS_Store
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build
docs
bower.json
36 changes: 36 additions & 0 deletions build/webpack.build.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
var webpack = require("webpack");
var version = require("../package.json").version;
var banner = "/**\n" + " * vue-form-generator v" + version + "\n" + " * https://github.com/icebob/vue-form-generator\n" + " * Released under the MIT License.\n" + " */\n";

module.exports = [

{
entry: "./src/index",
output: {
path: "./dist",
filename: "vue-form-generator.js",
library: "VueFormGenerator",
libraryTarget: "umd"
},
plugins: [
new webpack.BannerPlugin(banner, {
raw: true
})]
},

{
entry: "./src/index",
output: {
path: "./dist",
filename: "vue-form-generator.js",
library: "VueFormGenerator",
libraryTarget: "umd"
},
plugins: [
new webpack.optimize.UglifyJsPlugin,
new webpack.BannerPlugin(banner, {
raw: true
})]
}

];
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "vue-form-generator",
"version": "0.1.0",
"description": "A schema-based form generator component for Vue.js",
"main": "src/index.js",
"scripts": {
"build": "webpack --config build/webpack.build.config.js",
"test": "webpack --config test/webpack.config.js"
},
"keywords": [
"vue",
"vuejs",
"form",
"generator",
"schema",
"json"
],
"author": "Icebob",
"license": "MIT",
"devDependencies": {
"vue": "^1.0.21",
"webpack": "1.13.0"
}
}

0 comments on commit 15f3df5

Please sign in to comment.