@jspreadsheet/install 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/index.js +63 -59
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -112,16 +112,26 @@ async function main() {
112
112
  const { distribution } = await prompts({
113
113
  type: 'select',
114
114
  name: 'distribution',
115
- message: 'Choose a distribution',
115
+ message: 'Which edition would you like to install?',
116
116
  choices: [
117
117
  {
118
- title: 'Jspreadsheet Pro',
119
- description: 'High-performance data grids with advanced Excel and Google Sheets compatibility. Ideal for enterprise and data-intensive applications.',
118
+ title: `Pro \x1b[0m\x1b[90m\u2014 Full-featured commercial spreadsheet\x1b[0m\n` +
119
+ ` \x1b[32m\u2713\x1b[0m\x1b[37m 500+ Excel-compatible formulas\x1b[0m\n` +
120
+ ` \x1b[32m\u2713\x1b[0m\x1b[37m XLSX, CSV & clipboard import/export\x1b[0m\n` +
121
+ ` \x1b[32m\u2713\x1b[0m\x1b[37m AI integration & real-time collaboration\x1b[0m\n` +
122
+ ` \x1b[32m\u2713\x1b[0m\x1b[37m Toolbar, context menu & 30+ plugins\x1b[0m\n` +
123
+ ` \x1b[32m\u2713\x1b[0m\x1b[37m Persistence, history & cross-sheet references\x1b[0m\n` +
124
+ ` \x1b[32m\u2713\x1b[0m\x1b[37m Priority support & regular updates\x1b[0m\n` +
125
+ ` \x1b[90mFree on localhost or 30-day free trial for production\x1b[0m`,
120
126
  value: 'pro',
121
127
  },
122
128
  {
123
- title: 'Jspreadsheet CE (Community Edition)',
124
- description: 'Lightweight and open source. Great for prototypes, MVPs, and community-driven projects.',
129
+ title: `CE \x1b[0m\x1b[90m\u2014 Community Edition (MIT license)\x1b[0m\n` +
130
+ ` \x1b[32m\u2713\x1b[0m\x1b[37m Core spreadsheet rendering & editing\x1b[0m\n` +
131
+ ` \x1b[32m\u2713\x1b[0m\x1b[37m Basic formulas (SUM, AVG, etc.)\x1b[0m\n` +
132
+ ` \x1b[32m\u2713\x1b[0m\x1b[37m CSV import/export\x1b[0m\n` +
133
+ ` \x1b[32m\u2713\x1b[0m\x1b[37m Fully open-source, no watermark\x1b[0m\n` +
134
+ ` \x1b[90mCommunity support via GitHub issues\x1b[0m`,
125
135
  value: 'ce',
126
136
  },
127
137
  ],
@@ -232,83 +242,77 @@ async function main() {
232
242
  process.exit(1);
233
243
  }
234
244
 
235
- // Step 5: Show post-install instructions
236
- console.log('');
237
- console.log('');
238
- console.log(' -----------------------------------------------');
239
- console.log(' All set! Jspreadsheet has been installed.');
240
- console.log(' -----------------------------------------------');
241
- console.log('');
242
- console.log('');
243
-
245
+ // Step 5: Show post-install summary
244
246
  const isPro = distribution === 'pro';
245
247
  const mainPkg = isPro ? 'jspreadsheet' : 'jspreadsheet-ce';
246
248
 
249
+ console.log('');
250
+ console.log('');
251
+
247
252
  if (isPro) {
253
+ console.log(` \x1b[32m\u2713\x1b[0m Jspreadsheet Pro installed`);
254
+ console.log('');
255
+ console.log(` Edition: Pro`);
248
256
  if (license) {
249
- console.log(' Activate your license:');
250
- console.log('');
251
- console.log(` jspreadsheet.setLicense('${license}');`);
257
+ console.log(` License: ${license}`);
252
258
  } else {
253
- console.log(' Start in evaluation mode:');
254
- console.log('');
255
- console.log(" jspreadsheet.setLicense('evaluation');");
259
+ console.log(` Mode: evaluation (free on localhost)`);
260
+ console.log(` Time limit: none on localhost`);
256
261
  }
257
262
  console.log('');
258
263
  console.log('');
259
- if (!license) {
260
- console.log(' Want a license key? Register at:');
261
- console.log(' https://jspreadsheet.com/me');
262
- console.log('');
263
- console.log('');
264
- }
265
- console.log(' Need a commercial license?');
266
- console.log(' https://jspreadsheet.com/pricing');
267
- } else {
268
- console.log(' Jspreadsheet CE is ready to use.');
269
- }
270
-
271
- console.log('');
272
- console.log('');
273
-
274
- // Show framework-specific quick start
275
- console.log(' Getting started:');
276
- console.log('');
264
+ console.log(' Getting started:');
265
+ console.log('');
277
266
 
278
- if (framework === 'react') {
279
- const wrapper = isPro ? '@jspreadsheet/react' : '@jspreadsheet-ce/react';
280
- console.log(` import { Spreadsheet, Worksheet } from '${wrapper}';`);
281
- if (isPro) {
267
+ if (framework === 'react') {
268
+ console.log(` import { Spreadsheet, Worksheet } from '@jspreadsheet/react';`);
282
269
  console.log(` import jspreadsheet from '${mainPkg}';`);
283
270
  console.log('');
284
271
  console.log(` jspreadsheet.setLicense('${license || 'evaluation'}');`);
285
- }
286
- } else if (framework === 'vue') {
287
- const wrapper = isPro ? '@jspreadsheet/vue' : '@jspreadsheet-ce/vue';
288
- console.log(` import { Spreadsheet, Worksheet } from '${wrapper}';`);
289
- if (isPro) {
272
+ } else if (framework === 'vue') {
273
+ console.log(` import { Spreadsheet, Worksheet } from '@jspreadsheet/vue';`);
290
274
  console.log(` import jspreadsheet from '${mainPkg}';`);
291
275
  console.log('');
292
276
  console.log(` jspreadsheet.setLicense('${license || 'evaluation'}');`);
293
- }
294
- } else {
295
- console.log(` import jspreadsheet from '${mainPkg}';`);
296
- if (isPro) {
277
+ } else {
278
+ console.log(` import jspreadsheet from '${mainPkg}';`);
297
279
  console.log('');
298
280
  console.log(` jspreadsheet.setLicense('${license || 'evaluation'}');`);
299
281
  }
300
- }
301
-
302
- console.log('');
303
- console.log('');
304
282
 
305
- if (isPro) {
306
- console.log(' Docs: https://jspreadsheet.com/docs');
283
+ console.log('');
284
+ console.log('');
285
+ console.log(' Next steps:');
286
+ console.log(` \u2192 Start building: npm run dev`);
287
+ console.log(` \u2192 Docs: https://jspreadsheet.com/docs`);
288
+ if (!license) {
289
+ console.log(` \u2192 Get a license: https://jspreadsheet.com/me`);
290
+ }
291
+ console.log(` \u2192 Pricing: https://jspreadsheet.com/pricing`);
307
292
  } else {
308
- console.log(' Docs: https://bossanova.uk/jspreadsheet/docs');
293
+ console.log(` \x1b[32m\u2713\x1b[0m Jspreadsheet CE installed`);
294
+ console.log('');
295
+ console.log(` Edition: Community (MIT license)`);
296
+ console.log('');
297
+ console.log('');
298
+ console.log(' Getting started:');
299
+ console.log('');
300
+
301
+ if (framework === 'react') {
302
+ console.log(` import { Spreadsheet, Worksheet } from '@jspreadsheet-ce/react';`);
303
+ } else if (framework === 'vue') {
304
+ console.log(` import { Spreadsheet, Worksheet } from '@jspreadsheet-ce/vue';`);
305
+ } else {
306
+ console.log(` import jspreadsheet from '${mainPkg}';`);
307
+ }
308
+
309
+ console.log('');
309
310
  console.log('');
311
+ console.log(' Next steps:');
312
+ console.log(` \u2192 Start building: npm run dev`);
313
+ console.log(` \u2192 Docs: https://bossanova.uk/jspreadsheet/docs`);
310
314
  console.log('');
311
- console.log(' Need file import/export, advanced formulas, or more features?');
315
+ console.log(' Need advanced formulas, file import/export, or more features?');
312
316
  console.log(' Try Jspreadsheet Pro: https://jspreadsheet.com');
313
317
  }
314
318
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jspreadsheet/install",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Interactive installer for Jspreadsheet",
5
5
  "bin": {
6
6
  "@jspreadsheet/install": "index.js",