This guide will walk you through setting up your project with Never-ending Support (NES) for the AngularJS Moment Picker package.
To ensure a smooth installation, please first review the Minimum Requirements for NPM and Node. Once you’ve validated your environment, the Detailed Instructions section will guide you through the following steps:
1. Updating your package.json
2. Creating or updating your .npmrc
file to add the NES Registry URL and <NES_ACCESS_TOKEN>
3. Installing and running your project
Detailed Instructions
Updating your package.json
file
1. Open your package.json
file.
2. Update the angular-moment-picker
dependency to point to the npm:
protocol.
3. Create an overrides block in your project's package.json
file for angular-moment-picker
by copying and pasting the Sample Code below.
Sample Code (copy and paste this)
Your package.json
should contain the following code:
"dependencies": {
"angular-moment-picker": "npm:@neverendingsupport/angularjs-essentials@0.10.2-angular-moment-picker-0.10.3"
},
"overrides": {
"angular-moment-picker": { ".": "npm:@neverendingsupport/angularjs-essentials@0.10.2-angular-moment-picker-0.10.3" }
}
Explaining the npm protocol, dependencies, and overrides
The changes we made to the dependencies block allow you to override the resolution of the angular-moment-picker
package so you don’t need to alter your project’s source code.
The NPM overrides block tells your project’s direct dependencies and any transitive dependencies to correctly resolve to the NES version of AngularJS Moment Picker when imported. If you have issues with multiple versions of AngularJS Moment Picker installing, this block is may be misconfigured or otherwise not resolving correctly.
Create or update your .npmrc
file
1. Create an .npmrc
file in the root of your project if one doesn’t already exist.
2. Append the following code to your .npmrc
file.
3. Replace the <NES_ACCESS_TOKEN>
with your access token.
@neverendingsupport:registry=https://registry.nes.herodevs.com/npm/pkg/
//registry.nes.herodevs.com/npm/pkg/:_authToken=<NES_ACCESS_TOKEN>
Install and run
The NES Registry should be configured correctly. Now we’ll verify that everything is working correctly. If you have a package-lock.json
file, it will be updated by npm.
1. Run npm install
.
2. Attempt to run your project as you normally would. Use your application to ensure everything is working as expected.
Finishing up
Congratulations! At this point, you should have a working project that uses the NES version of AngularJS Moment Picker. Now you can safely receive ongoing security patches without worrying about functional changes. 🎉
Manual Installation
The latest direct download URL for the NES version of AngularJS Moment Picker is located at: