Skip to content

Commit

Permalink
1.0.0-alpha.7
Browse files Browse the repository at this point in the history
Merge pull request #45 from CMSgov/staging
  • Loading branch information
sawyerh authored Apr 21, 2017
2 parents 020784f + 5bbd163 commit 3563f4c
Show file tree
Hide file tree
Showing 48 changed files with 2,256 additions and 225 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ npm-debug.log*
pids
*.pid
*.seed
tmp

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage


# node-waf configuration
.lock-wscript

Expand Down
62 changes: 33 additions & 29 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,55 @@
## Development process

1. Branch off of `staging`: `git checkout -b username/branch-name`.
1. Commit your changes
1. Make a pull request against the `staging` branch and format your pull request description using the following format:
- **Added:** for new features or components. _Include a screenshot for new visual elements._
- **Changed:** for changes in existing functionality or design. If the change was visual, _include a comparison screenshot showing the before and after the visual change._
- **Deprecated:** for once-stable features or components removed in upcoming releases.
- **Removed:** for deprecated features or components removed in this release.
- **Fixed:** for any bug fixes.

## Running locally

### Package management

This project uses [Yarn](https://yarnpkg.com/) for package management. Yarn helps ensure everyone is using the same package versions. If you've used NPM before, you'll have no trouble using Yarn.

[**Install Yarn**](https://yarnpkg.com/docs/install), if you don't have it yet.

#### Install build process dependencies
### Getting started

```
yarn install
```
1. `yarn install`
1. `yarn bootstrap:yarn`

#### Install package dependencies

```
yarn bootstrap:yarn
```

The `bootstrap:yarn` command runs [`yerna`](https://github.com/palantir/yerna) which allows us to have multiple packages within the same repo. Yerna installs all our dependencies and links any cross-dependencies. If you're using `npm` rather than `yarn`, there is also a `bootstrap:npm` command.
The `bootstrap:yarn` command runs [`yerna`](https://github.com/palantir/yerna) which allows us to have multiple packages within the same repo (a monorepo). Yerna installs all our dependencies and links any cross-dependencies. If you're using `npm` rather than `yarn`, there is also a `bootstrap:npm` command.

_Note_: `yerna` will become obsolete once [Lerna](https://lernajs.io/) [is merged into Yarn](https://github.com/yarnpkg/yarn/issues/946#issuecomment-264597575).

### Scripts

Additional scripts exist and can all be run from the root level of the repo:

- `yarn run start` - You'll want to run this when you're developing components. It compiles Sass, transpiles JavaScript, and runs a local documentation instance where you can preview changes.
- `yarn run build` - compile/transpile/uglify everything and makes things release-ready.
- `yarn run bump` - increments package versions. Read "[Versioning](https://github.com/CMSgov/design-system/wiki/Versioning)" for more info.
- `yarn run generate` - Generates the necessary files for a new core component
- `yarn run g` - Alias for `yarn run generate`
- `yarn run g` - Alias for `yarn run generate`
- `yarn test` - tests and lints the codebase.

### Coding guidelines
## Development process

1. Branch off of `staging`: `git checkout -b username/branch-name`.
1. Commit your changes
1. Make a pull request against the `staging` branch and format your pull request description using the following format:
- **Added:** for new features or components. _Include a screenshot for new visual elements._
- **Changed:** for changes in existing functionality or design. If the change was visual, _include a comparison screenshot showing the before and after the visual change._
- **Deprecated:** for once-stable features or components removed in upcoming releases.
- **Removed:** for deprecated features or components removed in this release.
- **Fixed:** for any bug fixes.

## Merging pull requests

#### Staging

Use the "**Squash and merge**" option when merging pull requests into the `staging` branch. This keeps our history clean and makes it easier on us when it comes time to create a new release.

#### Master

Use the "**Create a merge commit**" option when merging `staging` into `master`. If the pull request includes a version bump, set the commit title to the version number and include the PR # in the commit description.

The CSS coding guidelines for this project try to stay as consistent with [those used by 18F](https://github.com/18F/stylelint-rules). In some cases we've made the decision to be more strict than 18F, using some of [GitHub's stylelint guidelines](https://github.com/primer/stylelint-config-primer). You can [view a full list of stylelint rules here](https://stylelint.io/user-guide/rules).
## Additional guidelines

JavaScript coding guidelines are enforced using the [default ESLint ruleset](https://github.com/eslint/eslint/blob/master/conf/eslint.json), along with [Nava's default ruleset](https://github.com/navahq/eslint-config-nava). You can [view a full list of ESLint rules here](http://eslint.org/docs/rules/).
**[Please view the Wiki](https://github.com/CMSgov/design-system/wiki)** for additional information like:

These should be treated as guides — rules can be modified according to project needs.
- Coding guidelines
- Guiding principles
- How to write documentation
- etc.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ This repo contains multile projects in the `packages` directory. View the README
- [core](packages/core/) - Core CSS and React components
- [docs](packages/docs/) - The documentation website

## Developing
## Contributing

For complete instructions on how setup a local development environment to contribute to the design system, please read [CONTRIBUTING.md](CONTRIBUTING.md)
Please read the [CONTRIBUTING.md](CONTRIBUTING.md) document to learn about setting up a local development environment, contributing to the design system, and our coding guidelines.
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@
"babel-preset-stage-3": "^6.24.1",
"babel-register": "^6.24.1",
"browser-sync": "^2.18.8",
"bytes": "^2.5.0",
"cli-table": "^0.3.1",
"colors": "^1.1.2",
"crypto": "^0.0.3",
"cssnano": "^3.10.0",
"cssstats": "^3.0.0",
"del": "^2.2.2",
"ejs": "^2.5.6",
"eslint": "^3.19.0",
Expand Down Expand Up @@ -54,7 +58,7 @@
"gulp-util": "^3.0.8",
"jest": "^19.0.2",
"kss": "^3.0.0-beta.18",
"lerna": "^2.0.0-rc.1",
"lerna": "^2.0.0-rc.3",
"lodash": "^4.17.4",
"marked": "^0.3.6",
"matchdep": "^1.0.1",
Expand All @@ -73,13 +77,16 @@
"through2": "^2.0.3",
"tota11y": "^0.1.6",
"vinyl-source-stream": "^1.1.0",
"webpack": "^2.3.3",
"webpack": "^2.4.1",
"webpack-dev-middleware": "^1.10.1",
"webpack-hot-middleware": "^2.18.0",
"yargs": "^7.0.2",
"yernapkg": "^0.5.0",
"yargs": "^7.1.0",
"yernapkg": "^0.5.1",
"yo": "^1.8.5"
},
"optionalDependencies": {
"nodegit": "^0.18.0"
},
"engines": {
"node": ">=4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/dist/components/ChoiceList/Choice.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/dist/components/ChoiceList/Choice.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Choice.propTypes = {
*/
id: _propTypes2.default.string,
/**
* Set to `true` to apply the "inverse" theme
* Applies the "inverse" UI theme
*/
inversed: _propTypes2.default.bool,
/**
Expand Down
Loading

0 comments on commit 3563f4c

Please sign in to comment.