@sugarat/create-theme 0.0.2 → 0.0.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sugarat/create-theme
2
2
 
3
+ ## 0.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - chore: add hashbang
8
+
3
9
  ## 0.0.2
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
- var a=Object.create;var s=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var j=(o,e,c,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of i(e))!u.call(o,l)&&l!==c&&s(o,l,{get:()=>e[l],enumerable:!(n=g(e,l))||n.enumerable});return o};var t=(o,e,c)=>(c=o!=null?a(f(o)):{},j(e||!o||!o.__esModule?s(c,"default",{value:o,enumerable:!0}):c,o));var p=t(require("fs-extra")),r=t(require("path"));function d(o){let e=r.default.join(__dirname,"template");p.default.copy(e,o,c=>{if(c)console.error("An error occurred while copying template files:",c);else{console.log("\u{1F389} \u{1F389} created successfully!"),console.log(),console.log(`project in ${o}`),console.log();let n=`Done. Now run:
1
+ #!/usr/bin/env node
2
+ var a=Object.create;var s=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var d=(o,e,c,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of i(e))!f.call(o,n)&&n!==c&&s(o,n,{get:()=>e[n],enumerable:!(l=g(e,n))||l.enumerable});return o};var t=(o,e,c)=>(c=o!=null?a(u(o)):{},d(e||!o||!o.__esModule?s(c,"default",{value:o,enumerable:!0}):c,o));var p=t(require("fs-extra")),r=t(require("path"));function j(o){let e=r.default.join(__dirname,"template");p.default.copy(e,o,c=>{if(c)console.error("An error occurred while copying template files:",c);else{console.log("\u{1F389} \u{1F389} created successfully!"),console.log(),console.log(`project in ${o}`),console.log();let l=`Done. Now run:
2
3
 
3
4
  \u2460 cd ${r.default.parse(m).name}
4
5
  \u2461 pnpm install
5
- \u2462 pnpm run dev`;console.log(n)}})}console.log("Creating @sugarat/theme project...");console.log();var m=process.argv[2]||"my-blog";d(r.default.join(process.cwd(),m));
6
+ \u2462 pnpm run dev`;console.log(l)}})}console.log("Creating @sugarat/theme project...");console.log();var m=process.argv[2]||"my-blog";j(r.default.join(process.cwd(),m));
6
7
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable no-console */\nimport fs from 'fs-extra'\nimport path from 'path'\n\nfunction createThemeProject(destination) {\n const templatePath = path.join(__dirname, 'template')\n\n fs.copy(templatePath, destination, (err) => {\n if (err) {\n console.error('An error occurred while copying template files:', err)\n } else {\n console.log('🎉 🎉 created successfully!')\n console.log()\n\n console.log(`project in ${destination}`)\n\n console.log()\n\n const msg = `Done. Now run:\n\n ① cd ${path.parse(projectName).name}\n ② pnpm install\n ③ pnpm run dev`\n\n console.log(msg)\n }\n })\n}\n\nconsole.log('Creating @sugarat/theme project...')\nconsole.log()\n\nconst projectName = process.argv[2] || 'my-blog'\ncreateThemeProject(path.join(process.cwd(), projectName))\n"],"mappings":"2cACA,IAAAA,EAAe,uBACfC,EAAiB,mBAEjB,SAASC,EAAmBC,EAAa,CACvC,IAAMC,EAAe,EAAAC,QAAK,KAAK,UAAW,UAAU,EAEpD,EAAAC,QAAG,KAAKF,EAAcD,EAAcI,GAAQ,CAC1C,GAAIA,EACF,QAAQ,MAAM,kDAAmDA,CAAG,MAC/D,CACL,QAAQ,IAAI,2CAA6B,EACzC,QAAQ,IAAI,EAEZ,QAAQ,IAAI,cAAcJ,GAAa,EAEvC,QAAQ,IAAI,EAEZ,IAAMK,EAAM;AAAA;AAAA,eAER,EAAAH,QAAK,MAAMI,CAAW,EAAE;AAAA;AAAA,wBAI5B,QAAQ,IAAID,CAAG,CACjB,CACF,CAAC,CACH,CAEA,QAAQ,IAAI,oCAAoC,EAChD,QAAQ,IAAI,EAEZ,IAAMC,EAAc,QAAQ,KAAK,IAAM,UACvCP,EAAmB,EAAAG,QAAK,KAAK,QAAQ,IAAI,EAAGI,CAAW,CAAC","names":["import_fs_extra","import_path","createThemeProject","destination","templatePath","path","fs","err","msg","projectName"]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/* eslint-disable no-console */\nimport fs from 'fs-extra'\nimport path from 'path'\n\nfunction createThemeProject(destination) {\n const templatePath = path.join(__dirname, 'template')\n\n fs.copy(templatePath, destination, (err) => {\n if (err) {\n console.error('An error occurred while copying template files:', err)\n } else {\n console.log('🎉 🎉 created successfully!')\n console.log()\n\n console.log(`project in ${destination}`)\n\n console.log()\n\n const msg = `Done. Now run:\n\n ① cd ${path.parse(projectName).name}\n ② pnpm install\n ③ pnpm run dev`\n\n console.log(msg)\n }\n })\n}\n\nconsole.log('Creating @sugarat/theme project...')\nconsole.log()\n\nconst projectName = process.argv[2] || 'my-blog'\ncreateThemeProject(path.join(process.cwd(), projectName))\n"],"mappings":";2cAGA,IAAAA,EAAe,uBACfC,EAAiB,mBAEjB,SAASC,EAAmBC,EAAa,CACvC,IAAMC,EAAe,EAAAC,QAAK,KAAK,UAAW,UAAU,EAEpD,EAAAC,QAAG,KAAKF,EAAcD,EAAcI,GAAQ,CAC1C,GAAIA,EACF,QAAQ,MAAM,kDAAmDA,CAAG,MAC/D,CACL,QAAQ,IAAI,2CAA6B,EACzC,QAAQ,IAAI,EAEZ,QAAQ,IAAI,cAAcJ,GAAa,EAEvC,QAAQ,IAAI,EAEZ,IAAMK,EAAM;AAAA;AAAA,eAER,EAAAH,QAAK,MAAMI,CAAW,EAAE;AAAA;AAAA,wBAI5B,QAAQ,IAAID,CAAG,CACjB,CACF,CAAC,CACH,CAEA,QAAQ,IAAI,oCAAoC,EAChD,QAAQ,IAAI,EAEZ,IAAMC,EAAc,QAAQ,KAAK,IAAM,UACvCP,EAAmB,EAAAG,QAAK,KAAK,QAAQ,IAAI,EAAGI,CAAW,CAAC","names":["import_fs_extra","import_path","createThemeProject","destination","templatePath","path","fs","err","msg","projectName"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sugarat/create-theme",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "bin": {
5
5
  "create-theme": "./dist/index.js"
6
6
  },
package/src/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  /* eslint-disable no-console */
2
4
  import fs from 'fs-extra'
3
5
  import path from 'path'