@fullhuman/purgecss-from-tsx 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # `purgecss-from-tsx`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const purgecssFromTsx = require('purgecss-from-tsx');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
@@ -0,0 +1,7 @@
1
+ import acorn from "acorn";
2
+ import * as ts from "typescript";
3
+ declare function purgeFromTsx(options?: {
4
+ acornOptions?: acorn.Options;
5
+ tsOptions?: ts.CompilerOptions;
6
+ }): (content: string) => string[];
7
+ export { purgeFromTsx as default };
@@ -0,0 +1,7 @@
1
+ import acorn from "acorn";
2
+ import * as ts from "typescript";
3
+ declare function purgeFromTsx(options?: {
4
+ acornOptions?: acorn.Options;
5
+ tsOptions?: ts.CompilerOptions;
6
+ }): (content: string) => string[];
7
+ export { purgeFromTsx as default };
@@ -0,0 +1 @@
1
+ import t from"@fullhuman/purgecss-from-jsx";import*as o from"typescript";function r(r){return s=>t(null==r?void 0:r.acornOptions)(o.transpileModule(s,{compilerOptions:{jsx:o.JsxEmit.Preserve,...null==r?void 0:r.tsOptions}}).outputText)}export{r as default};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("@fullhuman/purgecss-from-jsx"),t=require("typescript");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function u(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var u=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=r(e),o=u(t);module.exports=function(e){return t=>n.default(null==e?void 0:e.acornOptions)(o.transpileModule(t,{compilerOptions:{jsx:o.JsxEmit.Preserve,...null==e?void 0:e.tsOptions}}).outputText)};
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@fullhuman/purgecss-from-tsx",
3
+ "version": "4.1.0",
4
+ "description": "TSX extractor for PurgeCSS",
5
+ "author": "Ffloriel",
6
+ "homepage": "https://github.com/FullHuman/purgecss#readme",
7
+ "license": "ISC",
8
+ "main": "./lib/purgecss-from-tsx.js",
9
+ "module": "./lib/purgecss-from-tsx.esm.js",
10
+ "types": "./lib/purgecss-from-tsx.d.ts",
11
+ "directories": {
12
+ "lib": "lib",
13
+ "test": "__tests__"
14
+ },
15
+ "files": [
16
+ "lib"
17
+ ],
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/FullHuman/purgecss.git"
21
+ },
22
+ "scripts": {
23
+ "test": "echo \"Error: run tests from root\" && exit 1"
24
+ },
25
+ "bugs": {
26
+ "url": "https://github.com/FullHuman/purgecss/issues"
27
+ },
28
+ "dependencies": {
29
+ "@fullhuman/purgecss-from-jsx": "^4.1.0",
30
+ "acorn": "^7.4.0",
31
+ "typescript": "^4.3.2"
32
+ },
33
+ "publishConfig": {
34
+ "access": "public",
35
+ "registry": "https://registry.npmjs.org/"
36
+ }
37
+ }