Mental Health for All provides a directory of resources for New Yorkers seeking help for anxiety, trauma, substance misuse, and more. This repository contains the content and source code for the site. The NYCO Patterns CLI generates a static build of the 20+ service pages styled using the Growing Up Patterns. The service directory (or archive) uses the NYCO WordPress Archive Vue to filter the services.
As of right now the project should be relative to the Growing Up Patterns when developing.
- 📁 growingupnyc-patterns
- 📁 mhfa
If you do not have the Growing Up NYC Patterns set up, clone them before cloning this package.
$ git clone https://github.com/NYCOpportunity/growingupnyc-patterns
$ git clone https://github.com/CityOfNewYork/mhfa
$ cd mhfa
Then install dependencies and start the Patterns CLI development server.
$ npm install
$ npm start
The Growing Up Patterns are re-configured to use custom Mental Health for All design tokens (fonts, colors, media breakpoints, and background images). The main site stylesheet and Tailwindcss configuration use the tokens to generate custom CSS styles and utilities.
Commands are stored in the package.json file and can be run using NPM. Commands follow this pattern.
$ npm run {{ command }}
Below is a description of the available commands.
Command | Arguments | Description |
---|---|---|
start |
Runs the Pattern CLI development server with watching and reloading. | |
default |
Runs the default Pattern CLI build command. | |
version |
major/minor/patch | Hooks into the npm version script by regenerating the build with the version number. |
services |
Regenerate all of the service .slm templates from the config/services.js file. This needs to be run if any changes are made to the src/slm/service.slm template or new services are added to config/services.js. |
|
ghpages |
Run the default command and publish to the testing environment. |
Additional commands from the Patterns CLI can also be run. Most commands will require the NODE_ENV
variable to be set.
The Mayor's Office for Economic Opportunity (NYC Opportunity) is committed to sharing open-source software that we use in our products. Feel free to ask questions and share feedback. Interested in contributing? See our open positions on buildwithnyc.github.io. Follow our team on Github (if you are part of the @cityofnewyork organization) or browse our work on Github.