Global scripts for USMS ServiceNow instances
Click here for the current project
This is intended to be developed using VS Code. See /.vscode/extensions.json for a list of recommended extensions. Dependencies are mananged using npm.
Run npm install
from the root folder of this repository to install dependencies.
If the language service fails to recognize namespaces from added packages such as Microsoft.EntityFrameworkCore
, you may need to do the following:
- Remove subdirectories
util/src/SnTsTypeGenerator/bin
andutil/src/SnTsTypeGenerator/obj
- Execute the command
dotnet restore util/src
- From the command palette, select
.NET: Restart Language Server
.
This is for pulling down the repository contents from the remote.
These commands assume you are starting out in the root of the respository.
If the submodules were already included when the repository was cloned, you only need to do the third command if the submodule is not on any branch.
git submodule update --init --recursive
cd types/snc
git checkout master
This is for pulling down the latest changes from the remote repository.
These commands assume you are starting out in the root of the respository.
cd types/snc
git pull --rebase
cd ../..
git commit -am "Updated types/snc submodule to latest revision"
If you make changes to the contents of the types/snc
submodule, you can use these commands to commit the changes and push them to the remote repository.
cd types/snc
git add -A
git commit -am "[Your message here]"
git push
cd ../..
git commit -am "[Your message here]"