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

Move JS build to Parcel #117

Merged
merged 5 commits into from
Dec 18, 2018
Merged

Move JS build to Parcel #117

merged 5 commits into from
Dec 18, 2018

Conversation

jelovirt
Copy link
Member

Move JS build to Parcel and remove Gulp.

Fixes #41

Signed-off-by: Jarno Elovirta jarno@elovirta.com

@jelovirt jelovirt added enhancement Changes to an existing feature javascript Changes to JavaScript code labels Dec 15, 2018
@jelovirt jelovirt requested a review from infotexture December 15, 2018 13:18
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
@jelovirt
Copy link
Member Author

@infotexture This is one of those "nothing should change" changes.

I had to use some workarounds because we're still on Bootstrap 3. Do you think we'd have time and energy to move to Bootstrap 4 soon?

@@ -46,7 +41,7 @@
"whatwg-fetch": "^3.0.0"
},
"dependencies": {
"jquery": "^3.3.1",
"jquery": "^2.2.4",
Copy link
Member Author

Choose a reason for hiding this comment

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

Bootstrap 3 requires jQuery 2.

Copy link
Member

@infotexture infotexture left a comment

Choose a reason for hiding this comment

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

I had to use some workarounds because we're still on Bootstrap 3.
Do you think we'd have time and energy to move to Bootstrap 4 soon?

👍 Sounds like a good topic for the next hackathon.

The current state of this PR builds cleanly for me with only a single warning:

✨  Built in 14.86s.

js/main.map       ⚠️  1.21 MB     116ms
js/main.js         224.94 KB    14.02s
js/plugins.map     179.27 KB      51ms
js/plugins.js       54.37 KB    14.42s
added 1236 packages in 48.437s

I assume the ⚠️ above is related to the size of the compiled source map.

Is that something we could improve by upgrading Bootstrap & JQuery?

These changes would also require documentation changes. So far we've covered the build process & JavaScript updates in the wiki, but I'm thinking we should probably move this info to a ReadMe and update it there to reflect the new Parcel-based process.

infotexture added a commit that referenced this pull request Dec 17, 2018
Based on original instructions from site wiki per #117:
https://github.com/dita-ot/dita-ot.github.io/wiki/Building-site-output

Signed-off-by: Roger Sheen <roger@infotexture.net>
@infotexture
Copy link
Member

These changes would also require documentation changes.

I moved the build instructions to the ReadMe in 445787b.

Feel free to merge that into this PR and update the JavaScript instructions to reflect Parcel's workflow for watching & compiling JS files — or summarize in a comment here and I'll expand after merging.

@jelovirt jelovirt merged commit c735cc0 into master Dec 18, 2018
@jelovirt jelovirt deleted the feature/import branch December 18, 2018 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Changes to an existing feature javascript Changes to JavaScript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants