create-cubing-app 0.35.6-rc13 → 0.35.6-rc14
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-cubing-app.js +16 -1
- package/package.json +3 -3
package/bin/create-cubing-app.js
CHANGED
|
@@ -49,7 +49,7 @@ await mkdir(packageRoot);
|
|
|
49
49
|
const initialPackageJSON = {
|
|
50
50
|
scripts: {
|
|
51
51
|
build:
|
|
52
|
-
|
|
52
|
+
"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 ''",
|
|
53
53
|
dev: 'node -e \'import("barely-a-dev-server").then(s => s.barelyServe({entryRoot: "src"}))\'',
|
|
54
54
|
clean: "rm -rf ./dist",
|
|
55
55
|
},
|
|
@@ -140,3 +140,18 @@ await transferFile(
|
|
|
140
140
|
|
|
141
141
|
await execPromise("npm install --save cubing", execOptions);
|
|
142
142
|
await execPromise("npm install --save-dev barely-a-dev-server", execOptions);
|
|
143
|
+
|
|
144
|
+
console.log(`Created a cubing project. To develop your app, run:
|
|
145
|
+
|
|
146
|
+
cd ${packageRoot}
|
|
147
|
+
npm run dev
|
|
148
|
+
|
|
149
|
+
To create a build in \`./dist/web\` that can be uploaded to a file server, run:
|
|
150
|
+
|
|
151
|
+
npm run build
|
|
152
|
+
|
|
153
|
+
When a new version of \`cubing.js\` is released on the future, you can upgrade using:
|
|
154
|
+
|
|
155
|
+
npm install cubing@latest
|
|
156
|
+
|
|
157
|
+
`);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cubing-app",
|
|
3
|
-
"version": "0.35.6-
|
|
3
|
+
"version": "0.35.6-rc14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": "./bin/create-cubing-app.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "node -e 'import(\"barely-a-dev-server\").then(s => s.barelyServe({entryRoot: \"src\", dev: false, outDir: \"dist/web\"}))'",
|
|
8
|
-
"dev": "node -e 'import(\"barely-a-dev-server\").then(s => s.barelyServe({entryRoot: \"src\"}))'",
|
|
7
|
+
"build": "node -e 'import(\"barely-a-dev-server\").then(s => s.barelyServe({entryRoot: \"./bin/src\", dev: false, outDir: \"dist/web\"}))' && echo '' && echo 'Your app has been built in: ./dist/web' && echo ''",
|
|
8
|
+
"dev": "node -e 'import(\"barely-a-dev-server\").then(s => s.barelyServe({entryRoot: \"./bin/src\"}))'",
|
|
9
9
|
"clean": "rm -rf ./dist"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|