npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sysdoc/sysdoc-webstarter-repo

v1.0.10

Published

A starter repo for all new projects

Downloads

9

Readme

Sysdoc-Webstarter-Repo

This repo contains the folder/application structure that should be followed in all our applications. Technologies used:

Deployment

  • Run gulp config to create local config file
  • Change config file to be the site collection you want
  • Run gulp build (make sure config is set to correct site). This will build the js and css files. Change 'dev' to 'prd' for the 'env' in the project config and the files will be minified
  • Run gulp build-deployment-package. Additional args: --s (this scaffolds list services based on the SiteDefinition.json lists). This build the deploy.ps1 to provision your site.
  • Make sure you have the lastest Client Components (https://www.microsoft.com/en-gb/download/details.aspx?id=35585) and PnP PowerShell release (https://github.com/SharePoint/PnP-PowerShell/releases)
  • Run deploy.ps1 (Provisions the whole site including settings, features, files, directories, term groups, site columns, content types, lists)
  • If powershell doesnt have the PnP cmdlets then add a profile (C:\Users\YOUR USER\Documents\WindowsPowerShell\profile.ps1) with the line: $env:psmodulepath = $env:psmodulepath + ";C:\Users\YOUR USER\AppData\Local\Apps\SharePointPnPPowerShell2013" as its stuffed up the env variables
  • Map the SiteAssets and Masterpage gallery to drives indicated in your config (run gulp open-config to edit your projects config)
  • Run gulp watch to be able to update code on demand.

Code Conventions

Please refer to Sysdoc Code Convention.md in this repo for more info. Developers are expected to adhere to these standards.

Site Definition Example

{
	"id": "NewProject",
	"templatesId": "NewProjectTemplates",
	"baseSiteTemplate": "BLANKINTERNET#0",
	"url": "NewProject-test",
	"defaultPagesContentType": "New Project Page",
	"webSettings": {
		"welcomePage": "Pages/Home.aspx",
		"title": "New Project",
		"customMasterPageUrl": "{masterpagecatalog}/NewProject.master"
	},
	"navigation": {
		"global": {
			"navType": "Managed",
			"termSetId": "85F97200-0997-444D-8592-EB78506FD8A4"
		}
	},
	"security": {
		"admins": ["[email protected]"],
		"owners": ["[email protected]"],
		"visitors": ["[email protected]"],
		"members": ["[email protected]"],
		"groups": [{
			"title": "Admins",
			"description": "",
			"owner": "[email protected]",
			"members": ["[email protected]"]
		}]
	},
	"features": {
		"web": [{
				"id": "94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb",
				"enable": true
			},
			{
				"id": "00bfea71-d8fe-4fec-8dad-01c19a6e4053",
				"enable": true
			}
		]
	},
	"preferences": {
		"author": "Clark Tozer",
		"version": "1.2",
		"params": {
			"O365TenantName": "Sysdoc",
			"CodeProvidedParam": true,
			"YammerNetwork": "Sysdoc.co.uk",
			"CompanyName": "Sysdoc Inc.",
			"lcid": 1033
		}
	},
	"contentTypes": [{
			"name": "ExampleCT",
			"group": "NewProject",
			"parent": "Item",
			"description": "Example",
			"id": "0644AE67-7E2D-40A6-90DD-75679075C913",
			"fields": [
				"Field1",
				"Field2"
			]
		},
		{
			"name": "NewProject Page",
			"group": "NewProject",
			"parent": "Article Page",
			"description": "Example",
			"id": "6B41BF59-9131-4627-AF69-71A5026E30D0"
		}
	],
	"fields": [{
			"name": "Field1",
			"displayName": "Field1",
			"type": "TaxonomyFieldType",
			"group": "NewProject",
			"required": false,
			"description": "Example",
			"id": "BC0CD194-DC42-4675-8C3F-13FDAB11CF38",
			"termGroupName": "Example Group",
			"termSetName": "Example Termset"
		},
		{
			"name": "Field2",
			"displayName": "Field2",
			"type": "DateTime",
			"format": "DateOnly",
			"group": "NewProject",
			"description": "Example",
			"required": false,
			"id": "D3D47B87-9EDF-4E9B-9766-7F7E6E2DD074",
			"default": "[today]"
		}
	],
	"lists": [{
		"title": "Example",
		"description": "Example",
		"enableAttachments": true,
		"enableContentTypes": true,
		"removeExistingContentTypes": true,
		"id": "19505E99-1DE7-4C4C-9618-42CDEFB926F4",
		"templateType": 100,
		"interface": "ExampleInterface",
		"scaffoldService": true,
		"contentTypes": [
			"ExampleCT"
		]
	}],
	"termGroups": [{
		"id": "48325D1B-B36F-451B-8D8F-203646CA6D4A",
		"name": "Example Group",
		"description": "",
		"termSets": [{
				"name": "Header Navigation",
				"id": "729819F4-8A4F-411A-9718-DF3A61D57D9A",
				"isNavigation": true,
				"terms": [{
					"name": "Home",
					"id": "3B02EFB6-C115-40F7-889B-7D91E72DC022",
					"targetUrl": "{sitecollection}/pages/Home.aspx",
					"linkTitle": "Home"
				}]
			},
			{
				"name": "Footer Navigation",
				"id": "257177FF-3D2F-474E-BA48-B99BC430F5CB",
				"isNavigation": true,
				"scaffoldService": true,
				"interface": "FooterNode",
				"terms": []
			},
			{
				"name": "Example Termset",
				"id": "207D08EF-7C50-4B25-A7F2-3255F85741E7",
				"scaffoldService": true,
				"interface": "ExampleTermset",
				"terms": []
			}
		]
	}],
	"directories": [{
			"src": "dist",
			"folder": "SiteAssets/Sysdoc",
			"overwrite": true,
			"recursive": true
		},
		{
			"src": "assets",
			"folder": "SiteAssets/Sysdoc/assets",
			"overwrite": true,
			"recursive": true
		}
	],
	"files": [{
			"src": "templates/pagelayouts/NewProjectLayout.aspx",
			"isPageLayout": true,
			"overwrite": true,
			"properties": {
				"PublishingAssociatedContentType": "NewProject Page",
				"ContentType": "Page Layout",
				"Title": "NewProject Page Layout",
				"MasterPageDescription": "NewProject page layout"
			}
		},
		{
			"src": "templates/masterpages/NewProject.master",
			"isMasterPage": true,
			"overwire": true
		}
	],
	"pagesLibraryContentTypes": [
		"NewProject Page"
	],
	"pages": [{
		"name": "Home",
		"layout": "NewProjectLayout",
		"title": "Home",
		"publish": true
	}]
}