UNPKG

7.52 kBJSONView Raw
1{
2 "name": "esifycss",
3 "version": "1.4.12",
4 "description": "Generates .js or .ts exports class names and custom properties",
5 "author": {
6 "name": "Kei Ito",
7 "email": "kei.itof@gmail.com",
8 "url": "https://github.com/kei-ito"
9 },
10 "license": "Apache-2.0",
11 "engines": {
12 "node": ">=10"
13 },
14 "repository": "kei-ito/esifycss",
15 "main": "lib/index.js",
16 "files": [
17 "lib",
18 "@types"
19 ],
20 "bin": {
21 "esifycss": "lib/bin/esifycss.js"
22 },
23 "scripts": {
24 "lint": "eslint --ext .ts src scripts @types test",
25 "build:cleanup": "rimraf lib src/helper/*.js",
26 "build:helper:cleanup": "rimraf lib/helper",
27 "build:helper:tsc": "tsc --project tsconfig.helper.json",
28 "build:helper:copy1": "ts-node scripts/copy ./src/helper ./lib/helper",
29 "build:helper:copy2": "ts-node scripts/copy ./lib/helper ./src/helper",
30 "build:helper": "run-s build:helper:cleanup build:helper:copy1 build:helper:tsc build:helper:copy2",
31 "build:tsc": "tsc",
32 "build:bin": "ts-node scripts/chmodScripts.ts",
33 "build:sample1:cleanup": "rimraf sample/01-mangle",
34 "build:sample1:copy": "ts-node scripts/copy sample/00-src sample/01-mangle",
35 "build:sample1:esifycss": "node ./lib/bin/esifycss.js --helper sample/01-mangle/helper.js 'sample/01-mangle/**/*.css'",
36 "build:sample1": "run-s build:sample1:cleanup build:sample1:copy build:sample1:esifycss",
37 "build:sample2:cleanup": "rimraf sample/02-no-mangle",
38 "build:sample2:copy": "ts-node scripts/copy sample/00-src sample/02-no-mangle",
39 "build:sample2:esifycss": "node ./lib/bin/esifycss.js --noMangle --helper sample/02-no-mangle/helper.js 'sample/02-no-mangle/**/*.css'",
40 "build:sample2": "run-s build:sample2:cleanup build:sample2:copy build:sample2:esifycss",
41 "build": "run-s build:cleanup build:tsc build:helper build:bin build:sample*",
42 "test": "ava -v",
43 "test-client": "ava -v test/run.ts",
44 "version:changelog": "conventional-changelog --preset angular --infile CHANGELOG.md --same-file --release-count 0",
45 "version:add": "git add .",
46 "version": "run-s version:changelog version:add",
47 "prepack:test": "rimraf lib/**/*.test.* lib/**/*.for-test.*",
48 "prepack:sourcemap": "remove-sourcemap lib",
49 "prepack": "run-s prepack:test prepack:sourcemap"
50 },
51 "dependencies": {
52 "@nlib/nbnf": "^3.17.1",
53 "acorn": "^7.1.0",
54 "acorn-dynamic-import": "^4.0.0",
55 "acorn-walk": "^7.0.0",
56 "chokidar": "^3.3.1",
57 "commander": "^4.1.0",
58 "postcss": "^7.0.26",
59 "postcss-selector-parser": "^6.0.2",
60 "vlq": "^1.0.1"
61 },
62 "devDependencies": {
63 "@commitlint/cli": "^8.3.5",
64 "@commitlint/config-conventional": "^8.3.4",
65 "@nlib/lint": "^3.17.1",
66 "@nlib/remove-sourcemap": "^3.17.1",
67 "@types/acorn-dynamic-import": "file:@types/acorn-dynamic-import",
68 "@types/acorn-walk": "file:@types/acorn-walk",
69 "@types/anymatch": "^1.3.1",
70 "@types/jsdom": "^12.2.4",
71 "@types/micromatch": "^4.0.0",
72 "@types/node": "^12.12.24",
73 "@types/postcss-scss": "file:@types/postcss-scss",
74 "@types/selenium-webdriver": "^4.0.6",
75 "@typescript-eslint/eslint-plugin": "^2.16.0",
76 "@typescript-eslint/parser": "^2.16.0",
77 "ava": "^2.4.0",
78 "browserstack-local": "^1.4.4",
79 "conventional-changelog-cli": "^2.0.31",
80 "eslint": "^6.8.0",
81 "husky": "^4.2.0",
82 "lint-staged": "^10.0.2",
83 "npm-run-all": "^4.1.5",
84 "postcss-scss": "^2.0.0",
85 "rimraf": "^3.0.0",
86 "rollup": "^1.29.1",
87 "selenium-webdriver": "^4.0.0-alpha.5",
88 "ts-node": "^8.6.2",
89 "typescript": "^3.7.5"
90 },
91 "ava": {
92 "compileEnhancements": false,
93 "extensions": [
94 "ts"
95 ],
96 "require": [
97 "ts-node/register"
98 ],
99 "files": [
100 "lib/**/*.test.js"
101 ]
102 },
103 "eslintConfig": {
104 "extends": "./node_modules/@nlib/lint/.eslintrc.json",
105 "env": {
106 "es6": true,
107 "node": true
108 },
109 "overrides": [
110 {
111 "files": [
112 "scripts/*.ts"
113 ],
114 "parserOptions": {
115 "project": "./tsconfig.base.json"
116 },
117 "rules": {
118 "no-bitwise": "off",
119 "no-console": "off"
120 }
121 },
122 {
123 "files": [
124 "@types/**/*.ts"
125 ],
126 "parserOptions": {
127 "project": "./tsconfig.base.json"
128 }
129 },
130 {
131 "files": [
132 "test/**/*.ts",
133 "*.test.ts",
134 "*.for-test.ts"
135 ],
136 "rules": {
137 "no-console": "off",
138 "no-process-env": "off",
139 "max-lines-per-function": "off",
140 "class-methods-use-this": "off",
141 "require-atomic-updates": "off",
142 "@typescript-eslint/no-floating-promises": "off",
143 "@typescript-eslint/no-unnecessary-condition": "off",
144 "@typescript-eslint/triple-slash-reference": "off"
145 },
146 "parserOptions": {
147 "project": "./tsconfig.base.json"
148 }
149 },
150 {
151 "files": [
152 "src/helper/**/*"
153 ],
154 "rules": {
155 "no-bitwise": "off"
156 },
157 "parserOptions": {
158 "project": "./tsconfig.helper.json"
159 }
160 },
161 {
162 "files": [
163 "src/helper/**/*",
164 "test/*/src/*",
165 "sample/**/*"
166 ],
167 "env": {
168 "node": false,
169 "browser": true
170 }
171 },
172 {
173 "files": [
174 "src/helper/**/*.js"
175 ],
176 "rules": {
177 "brace-style": "off"
178 }
179 },
180 {
181 "files": [
182 "src/util/createExposedPromise.ts",
183 "src/util/tokenizeString.ts",
184 "src/minifier/parseCSSModuleScript.ts"
185 ],
186 "rules": {
187 "@typescript-eslint/no-unnecessary-condition": "off"
188 }
189 }
190 ]
191 },
192 "commitlint": {
193 "extends": [
194 "@commitlint/config-conventional"
195 ]
196 },
197 "husky": {
198 "hooks": {
199 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
200 "pre-commit": "lint-staged"
201 }
202 },
203 "lint-staged": {
204 "*.ts": [
205 "eslint"
206 ]
207 },
208 "renovate": {
209 "extends": [
210 ":ignoreModulesAndTests",
211 ":unpublishSafe",
212 ":semanticPrefixChore",
213 ":prNotPending",
214 ":prConcurrentLimit10",
215 ":prHourlyLimitNone",
216 ":label(dependencies)",
217 ":automergeMinor"
218 ]
219 }
220}