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

support webpack #37

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

support webpack #37

wants to merge 11 commits into from

Conversation

arborQ
Copy link

@arborQ arborQ commented Apr 20, 2018

No description provided.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 1e40eaf on intive-opensource:LW/webpack into a2ef29b on isc30:master.

Copy link
Owner

@isc30 isc30 left a comment

Choose a reason for hiding this comment

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

looks good, we need to be sure that the result will still work for our umd/commonjs users

src/WebLinq.ts Outdated
@@ -0,0 +1,5 @@
import * as LinqCollection from "./Linq";
Copy link
Owner

Choose a reason for hiding this comment

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

no need for this file.
Webpack has the option to target UMD and it does this automatically

mode,
entry: {
"linq-collection": [
'./src/WebLinq.ts'
Copy link
Owner

Choose a reason for hiding this comment

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

2 versions: node (commonjs) and web (umd)


module.exports = [
getConfig("production", "bundle.min"),
getConfig("development", "bundle")
Copy link
Owner

Choose a reason for hiding this comment

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

not sure if we need 'development'

package.json Outdated
"publish-node": "npm run node-compile",
"publish-web": "browserify ./src/Linq.ts -p [tsify] > ./build/src/linq.web.js",
"prepublish": "npm run node-compile"
"build-web": "webpack-cli",
Copy link
Owner

@isc30 isc30 Apr 22, 2018

Choose a reason for hiding this comment

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

"build-web" -> "build"
this is triggered by continuous integration service

Copy link
Owner

Choose a reason for hiding this comment

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

also, change "typings" and "main" to point dist/linq-collections.js

Copy link
Owner

Choose a reason for hiding this comment

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

we should include the whole "dist" folder to the repo (with the newest compiled version)

package.json Outdated
"exclude": [
"build/test"
"**/*.test.ts",
Copy link
Owner

Choose a reason for hiding this comment

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

line not needed

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