Comparing version 1.3.8 to 1.3.9
@@ -0,1 +1,11 @@ | ||
<a name="1.3.9"></a> | ||
## [1.3.9](https://github.com/kei-ito/esify/compare/v1.3.8...v1.3.9) (2019-12-06) | ||
### Features | ||
* support postcss.ProcessOptions ([026c237](https://github.com/kei-ito/esify/commit/026c237)) | ||
<a name="1.3.8"></a> | ||
@@ -2,0 +12,0 @@ ## [1.3.8](https://github.com/kei-ito/esify/compare/v1.3.7...v1.3.8) (2019-11-14) |
@@ -7,3 +7,4 @@ "use strict"; | ||
const Parser = acorn.Parser.extend(dynamicImport.default || dynamicImport); | ||
acornWalk.base[dynamicImport.DynamicImportKey] = () => { }; | ||
acornWalk.base[dynamicImport.DynamicImportKey] = () => { | ||
}; | ||
exports.extractCSSFromScript = (script) => { | ||
@@ -10,0 +11,0 @@ const results = []; |
@@ -8,3 +8,4 @@ "use strict"; | ||
exports.parseAnimationShorthand = (input) => { | ||
const result = tokenizeAnimation(input, 'SingleAnimation', 0, () => { }); | ||
const result = tokenizeAnimation(input, 'SingleAnimation', 0, () => { | ||
}); | ||
if (!nbnf_1.isASTRuleNode(result)) { | ||
@@ -11,0 +12,0 @@ throw new Error(`Failed to parse the input: ${input}`); |
@@ -8,2 +8,3 @@ "use strict"; | ||
options: { | ||
...parameters.options, | ||
from: parameters.file, | ||
@@ -10,0 +11,0 @@ map: parameters.map || {}, |
@@ -36,3 +36,4 @@ "use strict"; | ||
], | ||
postcssOptions: parameters.postcssOptions || {}, | ||
}; | ||
}; |
@@ -40,2 +40,3 @@ "use strict"; | ||
plugins: this.configuration.postcssPlugins, | ||
options: this.configuration.postcssOptions, | ||
file: filePath, | ||
@@ -42,0 +43,0 @@ }); |
@@ -15,2 +15,3 @@ /// <reference types="node" /> | ||
postcssPlugins?: Array<postcss.AcceptedPlugin>; | ||
postcssOptions?: postcss.ProcessOptions; | ||
esifycssPluginParameter?: IPluginOptions; | ||
@@ -33,2 +34,3 @@ stdout?: stream.Writable; | ||
readonly postcssPlugins: Array<postcss.AcceptedPlugin>; | ||
readonly postcssOptions: postcss.ProcessOptions; | ||
} | ||
@@ -38,2 +40,3 @@ export interface ICSSParserParameters { | ||
css?: string | Buffer; | ||
options?: postcss.ProcessOptions; | ||
plugins: Array<postcss.AcceptedPlugin>; | ||
@@ -40,0 +43,0 @@ map?: postcss.SourceMapOptions; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createIdentifier = (listener = () => { }) => { | ||
exports.createIdentifier = (listener = () => { | ||
}) => { | ||
const knownIdList = new Map(); | ||
@@ -5,0 +6,0 @@ let count = 0; |
{ | ||
"name": "esifycss", | ||
"version": "1.3.8", | ||
"version": "1.3.9", | ||
"description": "Generates .js or .ts exports class names and custom properties", | ||
@@ -27,15 +27,15 @@ "author": { | ||
"build:helper:tsc": "tsc --project tsconfig.helper.json", | ||
"build:helper:cpy1": "cpy ./src/helper ./lib/helper", | ||
"build:helper:cpy2": "cpy ./lib/helper ./src/helper", | ||
"build:helper": "run-s build:helper:cpy1 build:helper:tsc build:helper:cpy2", | ||
"build:helper:copy1": "ts-node scripts/copy ./src/helper ./lib/helper", | ||
"build:helper:copy2": "ts-node scripts/copy ./lib/helper ./src/helper", | ||
"build:helper": "run-s build:helper:copy1 build:helper:tsc build:helper:copy2", | ||
"build:tsc": "tsc", | ||
"build:bin": "ts-node scripts/chmodScripts.ts", | ||
"build:sample1:cleanup": "rimraf sample/01-mangle", | ||
"build:sample1:cpy": "cpy sample/00-src sample/01-mangle", | ||
"build:sample1:copy": "ts-node scripts/copy sample/00-src sample/01-mangle", | ||
"build:sample1:esifycss": "node ./lib/bin/esifycss.js --helper sample/01-mangle/helper.js 'sample/01-mangle/**/*.css'", | ||
"build:sample1": "run-s build:sample1:cleanup build:sample1:cpy build:sample1:esifycss", | ||
"build:sample1": "run-s build:sample1:cleanup build:sample1:copy build:sample1:esifycss", | ||
"build:sample2:cleanup": "rimraf sample/02-no-mangle", | ||
"build:sample2:cpy": "cpy sample/00-src sample/02-no-mangle", | ||
"build:sample2:copy": "ts-node scripts/copy sample/00-src sample/02-no-mangle", | ||
"build:sample2:esifycss": "node ./lib/bin/esifycss.js --noMangle --helper sample/02-no-mangle/helper.js 'sample/02-no-mangle/**/*.css'", | ||
"build:sample2": "run-s build:sample2:cleanup build:sample2:cpy build:sample2:esifycss", | ||
"build:sample2": "run-s build:sample2:cleanup build:sample2:copy build:sample2:esifycss", | ||
"build": "run-s build:cleanup build:tsc build:helper build:bin build:sample*", | ||
@@ -56,3 +56,3 @@ "test": "ava -v", | ||
"commander": "^4.0.1", | ||
"postcss": "^7.0.21", | ||
"postcss": "^7.0.23", | ||
"postcss-selector-parser": "^6.0.2", | ||
@@ -70,19 +70,20 @@ "vlq": "^1.0.1" | ||
"@types/micromatch": "^3.1.1", | ||
"@types/node": "^12.12.7", | ||
"@types/node": "^12.12.14", | ||
"@types/postcss-scss": "file:@types/postcss-scss", | ||
"@types/selenium-webdriver": "^4.0.5", | ||
"@typescript-eslint/eslint-plugin": "^2.7.0", | ||
"@typescript-eslint/parser": "^2.7.0", | ||
"@typescript-eslint/eslint-plugin": "^2.10.0", | ||
"@typescript-eslint/parser": "^2.10.0", | ||
"ava": "^2.4.0", | ||
"browserstack-local": "^1.4.2", | ||
"conventional-changelog-cli": "^2.0.27", | ||
"cpy-cli": "^2.0.0", | ||
"eslint": "^6.6.0", | ||
"husky": "^3.0.9", | ||
"lint-staged": "^9.4.3", | ||
"conventional-changelog-cli": "^2.0.28", | ||
"eslint": "^6.7.2", | ||
"husky": "^3.1.0", | ||
"lint-staged": "^9.5.0", | ||
"npm-run-all": "^4.1.5", | ||
"postcss-scss": "^2.0.0", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^1.27.0", | ||
"rollup": "^1.27.8", | ||
"selenium-webdriver": "^4.0.0-alpha.5", | ||
"ts-node": "^8.5.0", | ||
"typescript": "^3.7.2" | ||
"ts-node": "^8.5.4", | ||
"typescript": "^3.7.3" | ||
}, | ||
@@ -116,3 +117,4 @@ "ava": { | ||
"rules": { | ||
"no-bitwise": "off" | ||
"no-bitwise": "off", | ||
"no-console": "off" | ||
} | ||
@@ -119,0 +121,0 @@ }, |
1758
104367
26
121
Updatedpostcss@^7.0.23