Git Product home page Git Product logo

alpha's Introduction

Alpha

Alpha.CA.gov is no longer being updated.

This was a 12-week pilot project in 2019-20 that explored new approaches for state websites.

If you need the current state homepage, visit CA.gov.

Fellow Californians,

We're reimagining CA.gov with and for the people of California.

Our first step: Make CA.gov easier for Californians to use. We're working to help you access the services and information you need.

And we invite you to join us.

Follow our progress

We're sharing our work and insights on our blog and GitHub.

Share your feedback

Please take our five-minute survey to help improve CA.gov. Thanks in advance for sharing your thoughts.

We're excited to work with you.

Team Alpha.CA.gov

Interested in how we got started? Learn more.

Building

Prerequisites

Build command

npm run build

Concatenates, minifies and removes unused CSS.

Translations

We are using a google spreadsheet as the datasource for our content strings because it has a cool integrated formula to provide automatic translation values we can use while we wait for our human translators to review. The spreadsheet is at https://docs.google.com/spreadsheets/d/1pjhiNZQtlb1KCrkdMTbYcvzhZkffNQpG5ekpmAU_SkM/edit#gid=0 and is accessible to alpha members. We publish the strings publicly when the spreadsheet is changed. To pull in new translations:

  • Add your new strings to the google spreadsheet
  • Run the command: npm run gimmetranslations to pull the latest translation strings into the local file system
  • Run the build command to regenerate the site with latest translations: npm run build
  • Checkin the updated src/lang-global.csv along with your file updates so the builds run on the server which do not pull latest translation strings will run with latest content.

Files only in /public

Some static files are only present in the public folder and are set to be ignored by the webpack clean plugin which deletes stuff in there with every build:

  • web.config (webserver configuration)
  • robots.txt
  • sitemap.xml

Concatenates, minifies and removes unused CSS, builds template partials.

Class event triggers

Please follow the convention of using classnames with a js- prefix when using a selector in javascript to interact with an element. We should not allow any CSS attributes to be added to the js- classnames so these will be used only by javascript and can be safely removed if a listener is changed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.