Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate bundle and remove deprecated fields #121

Merged
merged 3 commits into from
Feb 15, 2017

Conversation

lionel-bijaoui
Copy link
Member

@lionel-bijaoui lionel-bijaoui commented Feb 15, 2017

Separation into 2 bundles: "core" and "optionnal" #112
removing deprecated fields #120

@lionel-bijaoui
Copy link
Member Author

I will correct the merge problem beforehand

package.json Outdated
@@ -6,7 +6,8 @@
"main": "dist/vue-form-generator.js",
"scripts": {
"prebuild": "npm run test",
"build": "webpack --progress --config webpack.build.config.js",
"build": "webpack --progress --config webpack.build.config.js --define process.env.FULL_BUNDLE=true",
"buildcore": "webpack --progress --config webpack.build.config.js --define process.env.FULL_BUNDLE=false --output-filename=vue-form-generator-core.js",
"dev": "webpack-dev-server --config webpack.dev.config.js --inline --hot --content-base dev/",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create 3 build script.

"build:core": "...."
"build:full": "...."
"build": "npm run build:core && npm run build:full"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok I will add it

});

if (process.env.FULL_BUNDLE) { // eslint-disable-line
let Fields = require.context("./fields/optional", false, /^\.\/field([\w-_]+)\.vue$/);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe name this optionalFields so it's more clear what it does.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I wasn't sure. I will change it too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't agree with optionalFields, because in the future maybe we will add other stuffs to the full bundle.

@lionel-bijaoui lionel-bijaoui deleted the separate_bundle branch February 15, 2017 10:52
@lionel-bijaoui lionel-bijaoui restored the separate_bundle branch February 15, 2017 10:54
@lionel-bijaoui
Copy link
Member Author

Sorry, a bit of confusion on my part. I was not seeing the latest commit.
I had to skip some test. Switching to fecha and removing deprecated fields

@lionel-bijaoui lionel-bijaoui changed the title Separate bundle Separate bundle and remove deprecated fields Feb 15, 2017
@lionel-bijaoui lionel-bijaoui mentioned this pull request Feb 15, 2017
7 tasks
Copy link
Member

@icebob icebob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR! Thanks! Mergeable 👍

@lionel-bijaoui lionel-bijaoui merged commit 94a0648 into vue-generators:master Feb 15, 2017
@lionel-bijaoui lionel-bijaoui deleted the separate_bundle branch February 15, 2017 11:06
@icebob icebob added this to the v2.0.0 milestone Feb 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants