@homebound/truss 1.111.0 → 1.112.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/build/index.js CHANGED
@@ -15,12 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.newSetCssVariablesMethod = exports.newParamMethod = exports.newIncrementMethods = exports.newIncrementDelegateMethods = exports.newMethodsForProp = exports.newMethod = exports.newAliasesMethods = exports.generate = exports.defaultSections = void 0;
18
- var generate_1 = require("./generate");
19
18
  __exportStar(require("./config"), exports);
20
19
  var tachyons_1 = require("./sections/tachyons");
21
20
  Object.defineProperty(exports, "defaultSections", { enumerable: true, get: function () { return tachyons_1.defaultSections; } });
22
- var generate_2 = require("./generate");
23
- Object.defineProperty(exports, "generate", { enumerable: true, get: function () { return generate_2.generate; } });
21
+ var generate_1 = require("./generate");
22
+ Object.defineProperty(exports, "generate", { enumerable: true, get: function () { return generate_1.generate; } });
24
23
  var methods_1 = require("./methods");
25
24
  Object.defineProperty(exports, "newAliasesMethods", { enumerable: true, get: function () { return methods_1.newAliasesMethods; } });
26
25
  Object.defineProperty(exports, "newMethod", { enumerable: true, get: function () { return methods_1.newMethod; } });
@@ -29,18 +28,4 @@ Object.defineProperty(exports, "newIncrementDelegateMethods", { enumerable: true
29
28
  Object.defineProperty(exports, "newIncrementMethods", { enumerable: true, get: function () { return methods_1.newIncrementMethods; } });
30
29
  Object.defineProperty(exports, "newParamMethod", { enumerable: true, get: function () { return methods_1.newParamMethod; } });
31
30
  Object.defineProperty(exports, "newSetCssVariablesMethod", { enumerable: true, get: function () { return methods_1.newSetCssVariablesMethod; } });
32
- if (require.main === module) {
33
- // Hook up ts-node so we can require a TypeScript file
34
- require("ts-node/register/transpile-only");
35
- var path = require("path").join(process.cwd(), "./truss-config.ts");
36
- var config_1 = require(path).default;
37
- (0, generate_1.generate)(config_1)
38
- .then(function (done) {
39
- console.log("Generated ".concat(config_1.outputPath));
40
- })
41
- .catch(function (err) {
42
- console.error(err);
43
- process.exit(1);
44
- });
45
- }
46
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAAwC;AAExC,2CAA2B;AAC3B,gDAAwD;AAA/C,2GAAA,eAAe,OAAA;AACxB,uCAAwC;AAA/B,oGAAA,QAAQ,OAAA;AAEjB,qCAQqB;AAPnB,4GAAA,iBAAiB,OAAA;AACjB,oGAAA,SAAS,OAAA;AACT,4GAAA,iBAAiB,OAAA;AACjB,sHAAA,2BAA2B,OAAA;AAC3B,8GAAA,mBAAmB,OAAA;AACnB,yGAAA,cAAc,OAAA;AACd,mHAAA,wBAAwB,OAAA;AAG1B,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE;IAC3B,sDAAsD;IACtD,OAAO,CAAC,iCAAiC,CAAC,CAAC;IAC3C,IAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,mBAAmB,CAAC,CAAC;IACtE,IAAM,QAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC;IACrC,IAAA,mBAAQ,EAAC,QAAM,CAAC;SACb,IAAI,CAAC,UAAC,IAAI;QACT,OAAO,CAAC,GAAG,CAAC,oBAAa,QAAM,CAAC,UAAU,CAAE,CAAC,CAAC;IAChD,CAAC,CAAC;SACD,KAAK,CAAC,UAAC,GAAG;QACT,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;CACN"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,2CAA2B;AAC3B,gDAAwD;AAA/C,2GAAA,eAAe,OAAA;AACxB,uCAAwC;AAA/B,oGAAA,QAAQ,OAAA;AAEjB,qCAQqB;AAPnB,4GAAA,iBAAiB,OAAA;AACjB,oGAAA,SAAS,OAAA;AACT,4GAAA,iBAAiB,OAAA;AACjB,sHAAA,2BAA2B,OAAA;AAC3B,8GAAA,mBAAmB,OAAA;AACnB,yGAAA,cAAc,OAAA;AACd,mHAAA,wBAAwB,OAAA"}
package/cli.js ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+
3
+ // Hook up ts-node so we can require a TypeScript file
4
+ require("ts-node/register/transpile-only");
5
+
6
+ // Get the config from the root project directory
7
+ const configPath = require("path").join(process.cwd(), "./truss-config.ts");
8
+ const config = require(configPath).default;
9
+
10
+ const { generate } = require("./build/index.js");
11
+ generate(config)
12
+ .then((done) => {
13
+ console.log(`Generated ${config.outputPath}`);
14
+ })
15
+ .catch((err) => {
16
+ console.error(err);
17
+ process.exit(1);
18
+ });
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@homebound/truss",
3
- "version": "1.111.0",
3
+ "version": "1.112.0",
4
4
  "main": "build/index.js",
5
- "bin": "build/index.js",
5
+ "bin": "cli.js",
6
6
  "scripts": {
7
7
  "test": "jest"
8
8
  },