Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Bower => NPM #972

Merged
merged 5 commits into from
Mar 19, 2018
Merged

Bower => NPM #972

merged 5 commits into from
Mar 19, 2018

Conversation

acburdine
Copy link
Member

@acburdine acburdine commented Mar 18, 2018

Supersedes #847, requires #969

This PR will remove all bower dependencies, swapping out the ones we can for npm dependencies and removing ones that aren't used at all.

Tasks

  • Remove validator & clean up validator usage
  • Remove remainder of bower components
  • clean up node-assets imports
  • After Bump ember-cli-mirage to 0.4.2 #969 is merged, rebase & remove bower dep.

@acburdine
Copy link
Member Author

now that #969 is merged i'll clean this up and get it working completely.

@kevinansfield
Copy link
Member

👍 thanks for looking into this, it's been on the back burner for far too long! 😄

@@ -118,6 +118,7 @@
"simplemde": "https://github.com/kevinansfield/simplemde-markdown-editor.git#ghost",
"testem": "2.0.0",
"top-gh-contribs": "2.0.4",
"validator": "7.2.0",

This comment was marked as abuse.

This comment was marked as abuse.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 71.951% when pulling a09b5b9 on acburdine:bye-bye-bower into 2ea1a35 on TryGhost:master.

@acburdine acburdine changed the title [WIP] Bower => NPM Bower => NPM Mar 19, 2018
- clean up validator imports
- fix validator function imports
- remove unused validator extensions
- remove globals imports in favor of direct module imports where possible
@kevinansfield
Copy link
Member

Pushed a rebase to fix yarn.lock conflicts

@kevinansfield kevinansfield merged commit fd6f255 into TryGhost:master Mar 19, 2018
@acburdine acburdine deleted the bye-bye-bower branch March 19, 2018 19:35
kevinansfield added a commit that referenced this pull request Mar 20, 2018
no issue
- `validator.js` throws an error if it's `length` method is passed a non-string value
- default to passing an empty string if `post.codeInjectionFoot` is falsy (missed in #972)
kevinansfield added a commit to kevinansfield/Ghost-Admin that referenced this pull request Apr 9, 2018
…reen

closes TryGhost/Ghost#9543
- TryGhost#972 moved `keymaster` from Bower to NPM but version 1.6.3 is not published to NPM and it contains fixes for unbinding multiple keys (eg, `'down, j': 'moveDown'`). Switched to fetching directly from github to ensure we have the latest version
- removed the "has registered shortcuts" guard added in TryGhost#976 - it was working around the buggy keymaster version but was also buggy itself because it meant shortcuts could only be registered the first time a route was loaded even though we unregister all of the shortcuts when leaving the route
kevinansfield added a commit that referenced this pull request Apr 9, 2018
…reen (#1002)

closes TryGhost/Ghost#9543
- #972 moved `keymaster` from Bower to NPM but version 1.6.3 is not published to NPM and it contains fixes for unbinding multiple keys (eg, `'down, j': 'moveDown'`). Switched to fetching directly from github to ensure we have the latest version
- removed the "has registered shortcuts" guard added in #976 - it was working around the buggy keymaster version but was also buggy itself because it meant shortcuts could only be registered the first time a route was loaded even though we unregister all of the shortcuts when leaving the route
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants