create-magnetic-app 0.1.3 → 0.1.4

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/bin/create.js CHANGED
@@ -38,4 +38,5 @@ console.log(`\n✓ Created Magnetic app: ${name}`);
38
38
  console.log(` ${dir}\n`);
39
39
  console.log(` Next steps:`);
40
40
  console.log(` cd ${name}`);
41
- console.log(` magnetic dev\n`);
41
+ console.log(` npm install`);
42
+ console.log(` npx magnetic dev\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-magnetic-app",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Scaffold a new Magnetic server-driven UI app",
5
5
  "type": "module",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -45,6 +45,23 @@ export function scaffold(dest, opts = {}) {
45
45
  server: 'http://localhost:3003',
46
46
  }, null, 2) + '\n');
47
47
 
48
+ // package.json
49
+ writeFileSync(join(dir, 'package.json'), JSON.stringify({
50
+ name,
51
+ version: '0.1.0',
52
+ private: true,
53
+ scripts: {
54
+ dev: 'magnetic dev',
55
+ build: 'magnetic build',
56
+ },
57
+ dependencies: {
58
+ '@magneticjs/server': '^0.1.3',
59
+ },
60
+ devDependencies: {
61
+ '@magneticjs/cli': '^0.1.6',
62
+ },
63
+ }, null, 2) + '\n');
64
+
48
65
  // tsconfig.json for IDE support
49
66
  writeFileSync(join(dir, 'tsconfig.json'), JSON.stringify({
50
67
  compilerOptions: {