mirror of
https://github.com/He4eT/oddsquat.git
synced 2026-05-04 20:37:22 +00:00
typograf: package.json task
This commit is contained in:
parent
b9f67a0ba2
commit
79575de3bd
2 changed files with 3 additions and 6 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "nanogen start",
|
"start": "nanogen start",
|
||||||
"build": "nanogen build",
|
"build": "nanogen build",
|
||||||
|
"lint": "node typograf.js",
|
||||||
"typography": "node typography.js"
|
"typography": "node typography.js"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
const Typograf = require('typograf');
|
const Typograf = require('typograf')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
|
|
||||||
if (!process.argv[2]) {
|
if (!process.argv[2]) {
|
||||||
|
|
@ -6,8 +6,6 @@ if (!process.argv[2]) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
/* */
|
|
||||||
|
|
||||||
const filePath =
|
const filePath =
|
||||||
`${process.cwd()}/${process.argv[2]}`
|
`${process.cwd()}/${process.argv[2]}`
|
||||||
|
|
||||||
|
|
@ -25,9 +23,7 @@ const tp = new Typograf({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
tp.disableRule('*')
|
tp.disableRule('*');[
|
||||||
|
|
||||||
;[
|
|
||||||
'common/punctuation/quote',
|
'common/punctuation/quote',
|
||||||
'common/nbsp/*',
|
'common/nbsp/*',
|
||||||
'ru/nbsp/*',
|
'ru/nbsp/*',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue