Skip to content

Commit

Permalink
change name to "vfg" instead of "vue-form-generator" for the exported…
Browse files Browse the repository at this point in the history
… files.

Temporary fix for the ENV variable being undefined
  • Loading branch information
Lionel Bijaoui committed Feb 15, 2017
1 parent ba4be42 commit 11303d4
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 23 deletions.
2 changes: 1 addition & 1 deletion dist/vue-form-generator.css → dist/vfg-core.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/vue-form-generator-core.js → dist/vfg-core.js

Large diffs are not rendered by default.

File renamed without changes.
9 changes: 9 additions & 0 deletions dist/vfg.js

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions dist/vue-form-generator.js

This file was deleted.

15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"version": "2.0.0-beta4",
"description": "A schema-based form generator component for Vue.js",
"homepage": "https://github.com/icebob/vue-form-generator",
"main": "dist/vue-form-generator.js",
"main": "dist/vfg.js",
"scripts": {
"prebuild": "npm run test",
"build:core": "webpack --progress --config webpack.build.config.js --define process.env.FULL_BUNDLE=false --output-filename=vue-form-generator-core.js",
"build:full": "webpack --progress --config webpack.build.config.js --define process.env.FULL_BUNDLE=true",
"build:core": "webpack --progress --config webpack.build.config.js --define process.env.FULL_BUNDLE=false --output-filename=vfg-core.js",
"build:full": "cross-env FULL_BUNDLE=true webpack --progress --config webpack.build.config.js --define process.env.FULL_BUNDLE=true",
"build": "npm run build:core && npm run build:full",
"dev": "webpack-dev-server --config webpack.dev.config.js --inline --hot --content-base dev/",
"lint": "eslint --ext=.js,.vue src test/unit/specs",
Expand All @@ -34,10 +34,10 @@
"url": "https://github.com/icebob/vue-form-generator.git"
},
"files": [
"dist/vue-form-generator.js",
"dist/vue-form-generator.css",
"dist/vue-form-generator-core.js",
"dist/vue-form-generator-core.css",
"dist/vfg.js",
"dist/vfg.css",
"dist/vfg-core.js",
"dist/vfg-core.css",
"src"
],
"author": "Icebob",
Expand All @@ -52,6 +52,7 @@
"chai": "3.5.0",
"conventional-changelog-cli": "1.2.0",
"coveralls": "2.11.16",
"cross-env": "^3.1.4",
"css-loader": "0.26.1",
"eslint": "3.15.0",
"eslint-friendly-formatter": "2.0.7",
Expand Down
11 changes: 7 additions & 4 deletions webpack.build.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,20 @@ var loaders = [
"loader": "vue"
}
];
var cssFileName = "vue-form-generator.css";
if (!process.env.FULL_BUNDLE) {
var cssFileName = "vue-form-generator-core.css";
var cssFileName;
console.warn(process.env.FULL_BUNDLE)
if (process.env.FULL_BUNDLE) {
cssFileName = "vfg.css";
} else {
cssFileName = "vfg-core.css";
}

module.exports = [
{
entry: "./src/index.js",
output: {
path: "./dist",
filename: "vue-form-generator.js",
filename: "vfg.js",
library: "VueFormGenerator",
libraryTarget: "umd"
},
Expand Down

0 comments on commit 11303d4

Please sign in to comment.