create-cubing-app 0.35.6-rc21 → 0.35.6-rc23

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 CHANGED
@@ -1,6 +1,6 @@
1
- # `cubing-app-template`
1
+ # `create-cubing-app`
2
2
 
3
- This is a template project for project using [`cubing.js`](https://github.com/cubing/cubing.js) with `node` and `npm`. In an editor like VSCode, this will give you nice imports, autocompletions, and other TypeScript benefits.
3
+ This is a tool to initialize for apps using [`cubing.js`](https://github.com/cubing/cubing.js) with `node` and `npm`. In an editor like VSCode, this will give you nice imports, autocompletions, and other TypeScript benefits.
4
4
 
5
5
  See <https://js.cubing.net/cubing/> for (in-progress) documentation on `cubing.js`. If you think you have any issues, don't hesitate to [file an issue here](https://github.com/cubing/cubing.js/issues/new/choose).
6
6
 
@@ -9,11 +9,9 @@ See <https://js.cubing.net/cubing/> for (in-progress) documentation on `cubing.j
9
9
  Make sure `node` is installed first (which will also install `npm`): <https://nodejs.org/en/download/>
10
10
 
11
11
  ```shell
12
- # Set up the project for the first time
13
- git clone https://github.com/cubing/cubing-app-template my-app && cd my-app
14
- npm install
12
+ npm create cubing-app my-cubing-project
15
13
 
16
- # Start working on the project at http://localhost:1234
14
+ cd my-cubing-project
17
15
  npm run dev
18
16
  ```
19
17
 
@@ -23,13 +23,13 @@ await execPromise("npm install validate-npm-package-name", {
23
23
  });
24
24
 
25
25
  function badPackageName() {
26
- stderr.write(`Please specify a valid project name!
27
- For example:
26
+ stderr.write(`Usage:
28
27
 
29
- npm create cubing-app my-cubing-project
28
+ npm create cubing-app <project folder name>
30
29
 
30
+ The project folder name should consist of only letters, numbers, dashes, and underscores.
31
31
  `);
32
- exit(1);
32
+ exit(0);
33
33
  }
34
34
  const packageName = process.argv[2];
35
35
  if (!packageName) {
@@ -63,7 +63,7 @@ const initialPackageJSON = {
63
63
  "node -e 'import(\"barely-a-dev-server\").then(s => s.barelyServe({entryRoot: \"src\", dev: false, outDir: \"dist/web\"}))' && echo '' && echo 'Your app has been built in: ./dist/web' && echo ''",
64
64
  dev: 'node -e \'import("barely-a-dev-server").then(s => s.barelyServe({entryRoot: "src"}))\'',
65
65
  clean: "rm -rf ./dist",
66
- "upgrade-cubing": "npm install cubing@latest",
66
+ "upgrade-cubing": "npm install --save cubing@latest",
67
67
  },
68
68
  };
69
69
  await writeFile(
@@ -108,5 +108,5 @@ To create an optimized build of your app that can be uploaded to a file server,
108
108
 
109
109
  When a new version of \`cubing.js\` is released in the future, you can upgrade using:
110
110
 
111
- npm install cubing@latest
111
+ npm install --save cubing@latest
112
112
  `);
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "create-cubing-app",
3
- "version": "0.35.6-rc21",
3
+ "version": "0.35.6-rc23",
4
4
  "type": "module",
5
5
  "bin": "./bin/create-cubing-app.js",
6
6
  "scripts": {
7
7
  "build": "node -e 'import(\"barely-a-dev-server\").then(s => s.barelyServe({entryRoot: \"./src\", dev: false, outDir: \"dist/web\"}))' && echo '' && echo 'Your app has been built in: ./dist/web' && echo ''",
8
8
  "dev": "node -e 'import(\"barely-a-dev-server\").then(s => s.barelyServe({entryRoot: \"./src\"}))'",
9
- "upgrade-cubing": "npm install cubing@latest",
9
+ "upgrade-cubing": "npm install --save cubing@latest",
10
10
  "clean": "rm -rf ./dist"
11
11
  },
12
12
  "dependencies": {