Skip to content

Use PostCSS async API, add latest modules #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2016
Merged
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
2 changes: 1 addition & 1 deletion css/tachyons.min.css

Large diffs are not rendered by default.

63 changes: 36 additions & 27 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ <h1><a href="#npm" class="link near-black">NPM</a></h1>
<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-background-size">tachyons-background-size</a>
<div>
<span class="fw4 pr2">v3.0.2</span>
<span class="fw4 pr2">v3.0.3</span>
<span>139 B</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-background-size">View on GitHub</a>
</div>
Expand All @@ -386,16 +386,16 @@ <h1><a href="#npm" class="link near-black">NPM</a></h1>
<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-border-radius">tachyons-border-radius</a>
<div>
<span class="fw4 pr2">v3.1.0</span>
<span>191 B</span>
<span class="fw4 pr2">v4.1.2</span>
<span>261 B</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-border-radius">View on GitHub</a>
</div>
</div>

<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-border-style">tachyons-border-style</a>
<div>
<span class="fw4 pr2">v3.0.1</span>
<span class="fw4 pr2">v3.0.2</span>
<span>168 B</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-border-style">View on GitHub</a>
</div>
Expand All @@ -413,8 +413,8 @@ <h1><a href="#npm" class="link near-black">NPM</a></h1>
<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-borders">tachyons-borders</a>
<div>
<span class="fw4 pr2">v2.0.3</span>
<span>208 B</span>
<span class="fw4 pr2">v2.1.0</span>
<span>228 B</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-borders">View on GitHub</a>
</div>
</div>
Expand All @@ -431,8 +431,8 @@ <h1><a href="#npm" class="link near-black">NPM</a></h1>
<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-clears">tachyons-clears</a>
<div>
<span class="fw4 pr2">v2.0.4</span>
<span>92 B</span>
<span class="fw4 pr2">v2.2.0</span>
<span>200 B</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-clears">View on GitHub</a>
</div>
</div>
Expand All @@ -449,8 +449,8 @@ <h1><a href="#npm" class="link near-black">NPM</a></h1>
<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-coordinates">tachyons-coordinates</a>
<div>
<span class="fw4 pr2">v2.2.0</span>
<span>426 B</span>
<span class="fw4 pr2">v3.0.1</span>
<span>428 B</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-coordinates">View on GitHub</a>
</div>
</div>
Expand All @@ -467,8 +467,8 @@ <h1><a href="#npm" class="link near-black">NPM</a></h1>
<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-display">tachyons-display</a>
<div>
<span class="fw4 pr2">v3.0.3</span>
<span>238 B</span>
<span class="fw4 pr2">v4.1.0</span>
<span>307 B</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-display">View on GitHub</a>
</div>
</div>
Expand All @@ -494,8 +494,8 @@ <h1><a href="#npm" class="link near-black">NPM</a></h1>
<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-font-family">tachyons-font-family</a>
<div>
<span class="fw4 pr2">v4.1.1</span>
<span>232 B</span>
<span class="fw4 pr2">v4.1.2</span>
<span>239 B</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-font-family">View on GitHub</a>
</div>
</div>
Expand All @@ -521,26 +521,26 @@ <h1><a href="#npm" class="link near-black">NPM</a></h1>
<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-forms">tachyons-forms</a>
<div>
<span class="fw4 pr2">v2.0.1</span>
<span>94 B</span>
<span class="fw4 pr2">v3.0.0</span>
<span>66 B</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-forms">View on GitHub</a>
</div>
</div>

<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-heights">tachyons-heights</a>
<div>
<span class="fw4 pr2">v4.1.0</span>
<span>234 B</span>
<span class="fw4 pr2">v5.0.0</span>
<span>258 B</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-heights">View on GitHub</a>
</div>
</div>

<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-hovers">tachyons-hovers</a>
<div>
<span class="fw4 pr2">v2.0.5</span>
<span>149 B</span>
<span class="fw4 pr2">v2.1.0</span>
<span>175 B</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-hovers">View on GitHub</a>
</div>
</div>
Expand Down Expand Up @@ -638,16 +638,16 @@ <h1><a href="#npm" class="link near-black">NPM</a></h1>
<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-skins">tachyons-skins</a>
<div>
<span class="fw4 pr2">v3.1.1</span>
<span>672 B</span>
<span class="fw4 pr2">v3.1.5</span>
<span>717 B</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-skins">View on GitHub</a>
</div>
</div>

<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-spacing">tachyons-spacing</a>
<div>
<span class="fw4 pr2">v5.0.4</span>
<span class="fw4 pr2">v5.0.10</span>
<span>1.7 KB</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-spacing">View on GitHub</a>
</div>
Expand Down Expand Up @@ -701,8 +701,8 @@ <h1><a href="#npm" class="link near-black">NPM</a></h1>
<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-typography">tachyons-typography</a>
<div>
<span class="fw4 pr2">v2.1.1</span>
<span>226 B</span>
<span class="fw4 pr2">v2.2.0</span>
<span>245 B</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-typography">View on GitHub</a>
</div>
</div>
Expand Down Expand Up @@ -737,8 +737,8 @@ <h1><a href="#npm" class="link near-black">NPM</a></h1>
<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-white-space">tachyons-white-space</a>
<div>
<span class="fw4 pr2">v2.0.3</span>
<span>154 B</span>
<span class="fw4 pr2">v3.0.1</span>
<span>153 B</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-white-space">View on GitHub</a>
</div>
</div>
Expand All @@ -761,6 +761,15 @@ <h1><a href="#npm" class="link near-black">NPM</a></h1>
</div>
</div>

<div class="mb3 fl w-100 w-50-m w-33-l">
<a class="db f4 link mb1 dim near-black b" href="http://npmjs.com/package/tachyons-z-index">tachyons-z-index</a>
<div>
<span class="fw4 pr2">v1.0.0</span>
<span>114 B</span>
<a class="link dim near-black dib ml2 f6" href="http://github.com/tachyons-css/tachyons-z-index">View on GitHub</a>
</div>
</div>



</section>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
"tachyons-visibility": "^1.0.4",
"tachyons-white-space": "^3.0.1",
"tachyons-widths": "^4.0.2",
"tachyons-word-break": "^1.0.1"
"tachyons-word-break": "^1.0.1",
"tachyons-z-index": "^1.0.0"
},
"devDependencies": {
"autoprefixer": "^6.3.6",
Expand Down
18 changes: 9 additions & 9 deletions src/components-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,18 @@ module.exports = function () {
removeComments({ removeAll: true }), mqPacker(), removeEmpty(), getModules(), perfectionist()
]).process(tachyonsCss, {
from: 'src/css/tachyons.css'
}).css
}).then(function () {
frontMatter.stats = cssstats(frontMatter.componentCss)

frontMatter.stats = cssstats(frontMatter.componentCss)
// TODO: Update me once src/ uses the npm modules
frontMatter.modules = Object.keys(moduleSrcs).map(function (module) {
return 'tachyons-' + module.split('/_')[1].replace('.css', '')
})

// TODO: Update me once src/ uses the npm modules
frontMatter.modules = Object.keys(moduleSrcs).map(function (module) {
return 'tachyons-' + module.split('/_')[1].replace('.css', '')
var compiledPage = _.template(template)(frontMatter)
mkdirp.sync(newDir)
fs.writeFileSync(newFile, compiledPage)
})

var compiledPage = _.template(template)(frontMatter)
mkdirp.sync(newDir)
fs.writeFileSync(newFile, compiledPage)
})
})
}
Expand Down
60 changes: 30 additions & 30 deletions src/table-of-properties-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,38 +42,38 @@ module.exports = function () {
atImport(), removeComments(), getTrs()
]).process(tachyonsCss, {
from: 'src/css/tachyons.css'
}).css
}).then(function () {
var tableData = Object.keys(properties).sort().map(
function (property) {
var newRow = '<tr>' +
'<td class="bb b--black-10 pv3">' + '<pre class="f5">' + property + '</pre>'+'</td>' +
'<td class="bb b--black-10 pv3">' + '<pre class=f5">' +
Object.keys(properties[property].selectors).sort().map(function (selector) {
return selector + ': ' + properties[property].selectors[selector]
}).join('<br>') +
'</pre>' +
'</td>' +
'<td class="bb b--black-05 pv2">' +
Object.keys(properties[property].modules).map(function (moduleName) {
return '<a class="link blue dim f6" href="https://github.com/tachyons-css/tachyons-' + moduleName +'">' + moduleName + '</a>'
}).join('<br>') +
'</td>' +
'</tr>'
return newRow
})
.join('\n')

var tableData = Object.keys(properties).sort().map(
function (property) {
var newRow = '<tr>' +
'<td class="bb b--black-10 pv3">' + '<pre class="f5">' + property + '</pre>'+'</td>' +
'<td class="bb b--black-10 pv3">' + '<pre class=f5">' +
Object.keys(properties[property].selectors).sort().map(function (selector) {
return selector + ': ' + properties[property].selectors[selector]
}).join('<br>') +
'</pre>' +
'</td>' +
'<td class="bb b--black-05 pv2">' +
Object.keys(properties[property].modules).map(function (moduleName) {
return '<a class="link blue dim f6" href="https://github.com/tachyons-css/tachyons-' + moduleName +'">' + moduleName + '</a>'
}).join('<br>') +
'</td>' +
'</tr>'
return newRow
var compiledPage = _.template(template)({
name: 'Table of Properties',
tableData: tableData,
navDocs: navDocs,
siteFooter: siteFooter,
googleAnalytics: googleAnalytics,
head: head,
siteHeader: siteHeader
})
.join('\n')

var compiledPage = _.template(template)({
name: 'Table of Properties',
tableData: tableData,
navDocs: navDocs,
siteFooter: siteFooter,
googleAnalytics: googleAnalytics,
head: head,
siteHeader: siteHeader
mkdirp.sync('docs/table-of-properties')
fs.writeFileSync('docs/table-of-properties/index.html', compiledPage)
})

mkdirp.sync('docs/table-of-properties')
fs.writeFileSync('docs/table-of-properties/index.html', compiledPage)
}
24 changes: 12 additions & 12 deletions src/table-of-styles-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ module.exports = function () {
atImport(), removeComments(), getTrs()
]).process(tachyonsCss, {
from: 'src/css/tachyons.css'
}).css
}).then(function () {
var compiledPage = _.template(template)({
name: 'Table of Styles',
tableData: tableData,
navDocs: navDocs,
siteFooter: siteFooter,
googleAnalytics: googleAnalytics,
head: head,
siteHeader: siteHeader
})

var compiledPage = _.template(template)({
name: 'Table of Styles',
tableData: tableData,
navDocs: navDocs,
siteFooter: siteFooter,
googleAnalytics: googleAnalytics,
head: head,
siteHeader: siteHeader
mkdirp.sync('docs/table-of-styles')
fs.writeFileSync('docs/table-of-styles/index.html', compiledPage)
})

mkdirp.sync('docs/table-of-styles')
fs.writeFileSync('docs/table-of-styles/index.html', compiledPage)
}