Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
.sass-cache
node_modules
build
_site
docs
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
*.yml
.primer-stats.txt
build/.primer-stats.txt
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ You can also import specific portions of the module by importing those partials

## Build

For a compiled **css** version of this module, a npm script is included that will output a css version to `build/build.css`
A compiled **css** version of this module is included in the `build/build.css` folder. To rebuild you can use the included npm script that will output a new css.

```
$ npm run build
Expand Down
6 changes: 3 additions & 3 deletions .primer-stats.txt → build/.primer-stats.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
PARKER-JS
Total Stylesheets: 1
Total Stylesheet Size: 57139
Total Stylesheet Size: 42593
Total Rules: 596
Total Selectors: 780
Total Identifiers: 1426
Total Declarations: 1302
Total Identifiers: 1414
Total Declarations: 1298
Selectors Per Rule: 1.308724832214765
Identifiers Per Selector: 1.8205128205128205
Specificity Per Selector: 14.517948717948718
Expand Down
7 changes: 7 additions & 0 deletions build/build.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
},
"scripts": {
"build": "npm run setup && npm run preprocess",
"stats": "parker build/build.css > .primer-stats.txt",
"preprocess": "node-sass index.scss --include-path node_modules | postcss -c .postcss.json -o build/build.css && npm run stats",
"stats": "parker build/build.css > build/.primer-stats.txt",
"preprocess": "node-sass index.scss --include-path node_modules --output-style compressed | postcss -c .postcss.json -o build/build.css && npm run stats",
"setup": "npm install",
"preversion": "npm run build",
"test": "npm run build"
Expand Down