diff --git a/README.md b/README.md index 72a86fb..271f08b 100644 --- a/README.md +++ b/README.md @@ -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}} diff --git a/package.json b/package.json index adca2ff..c38131f 100644 --- a/package.json +++ b/package.json @@ -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" } }