Work-in-progress.
As of right now this project should be relative to the Growing Up Patterns.
- ๐ growingupnyc-patterns
- ๐ mhfa
If you do not have the Growing Up NYC Patterns set up this way, 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
- Google Translate Element (need to pull example from one of our sites)
- Web Share Component (available in the Patterns Scripts library)
Integrated the following items.
- Integrate the icons
- Potentially use CDN for Styles and Icons (SVGs)
- Get JavaScript to work (modules need to be implemented on an as needed basis)
- Single program template (Trauma Support)
Integrated the following items.
- Styles (locally compiled)
- Scripts (CDN)
- Default layout
- Partials directory with some objects and components
- Homepage template
- Archive template
To dos.
- Integrate the icons
- Get JavaScript to work
- Potentially use CDN for Styles and Icons (SVGs)
Initialized an NPM/Node.js project.
$ npm init
Installed the @NYCOpportunity Patterns CLI and Growing Up NYC Patterns.
$ npm install @nycopportunity/pttrn
The Growing Up NYC Patterns need to be installed as a local file dependency.
$ cd ../
$ git clone https://github.com/NYCOpportunity/growingupnyc-patterns
$ cd mhfa
$ npm install ../growingupnyc-patterns
The path ../growingupnyc-patterns would vary if Growing Up Patterns is already cloned locally.
Ran the pttrn scaffold command to set up the project.
$ npx pttrn scaffold
Added Pattern NPM scripts to the project.
"scripts": {
"start": "cross-env NODE_ENV=development concurrently \"pttrn -w\" \"pttrn serve -w\" -p \"none\"",
"version": "npm run default && git add .",
"prepublishOnly": "git push && git push --tags",
"publish": "cross-env NODE_ENV=production pttrn publish",
"default": "cross-env NODE_ENV=production pttrn"
},
Added .gitignore to the project.
$ touch .gitignore
Updated README.md
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.