Skip to content

Commit

Permalink
update npm scripts and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianSipple committed Dec 31, 2016
1 parent 5970a04 commit e9e2774
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ Installing with `yarn`:
yarn add ticketfly-css-color-variables
```

## Developing

### Notable `npm scripts`

- `npm test`: lint the CSS the contents of this project's source CSS.
- `npm run serve:test`: Build and serve the project.
+ You can then find the "visual testing" demo by navigating `test/` directory in your browser.



[npm-badge]: https://img.shields.io/npm/v/ticketfly-css-color-variables.svg
[npm-badge-url]: https://www.npmjs.com/package/ticketfly-css-color-variables
[circle-badge]: https://circleci.com/gh/Ticketfly-UI/ticketfly-css-color-variables/tree/master.svg?style=svg&circle-token={{CIRCLE_TOKEN}}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
"clean": "del build/**",
"setup": "mkdir -p build",
"transform": "postcss --config postcss.config.js",
"minify": "postcss -u cssnano build/ticketfly-css-color-variables.css -o build/ticketfly-css-color-variables.min.css",
"minify": "postcss -u cssnano build/ticketfly-css-color-garnishes.css -o build/ticketfly-css-color-garnishes.min.css",
"build:dist": "npm run setup && npm run transform",
"build:dist:min": "npm run build:dist && npm run minify",
"build:test": "npm run clean && postcss -u postcss-import -u postcss-cssnext test/index-test.css -o build/test.css",
"build:test": "npm run clean && npm run transform && postcss -u postcss-import -u postcss-cssnext test/index-test.css -o build/test.css",
"build:lint": "npm run setup && postcss --config test/postcss-config.js",
"prepublish": "npm run clean && npm run setup && npm run build:dist",
"serve:test": "npm run build:test && http-server -p 4802 -o",
"lint:css": "npm run build:lint && rm build/lint.css",
"test": "npm run lint:css",
"prepublish": "npm run test && npm run build:test && npm run build:dist",
"release": "npmpub"
}
}

0 comments on commit e9e2774

Please sign in to comment.