@atlaspack/create-react-app 2.12.1-dev.3367 → 2.12.1-dev.3398
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/lib/cli.js
CHANGED
|
@@ -97,7 +97,7 @@ _commander().default.name('create-react-app').version(_package.version).argument
|
|
|
97
97
|
});
|
|
98
98
|
}).parse();
|
|
99
99
|
async function run(packagePath) {
|
|
100
|
-
log((0, _chalk().default)`${emoji.progress} {green Creating
|
|
100
|
+
log((0, _chalk().default)`${emoji.progress} {green Creating Parcel app at}`, _chalk().default.bold.underline(packagePath));
|
|
101
101
|
if (await fsExists(packagePath)) {
|
|
102
102
|
throw new Error(`File or directory at ${packagePath} already exists`);
|
|
103
103
|
}
|
|
@@ -109,8 +109,8 @@ async function run(packagePath) {
|
|
|
109
109
|
throw e;
|
|
110
110
|
}
|
|
111
111
|
await _fs().default.promises.rename(tempPath, packagePath);
|
|
112
|
-
log((0, _chalk().default)`{green ${emoji.success} Successfully created a new
|
|
113
|
-
log((0, _chalk().default)`${emoji.info} {dim Run} {bold cd ${packagePath}} {dim and then} {bold ${usesYarn ? 'yarn' : 'npm run'} start} {dim to start developing with
|
|
112
|
+
log((0, _chalk().default)`{green ${emoji.success} Successfully created a new Parcel app at {bold.underline ${packagePath}}.}`);
|
|
113
|
+
log((0, _chalk().default)`${emoji.info} {dim Run} {bold cd ${packagePath}} {dim and then} {bold ${usesYarn ? 'yarn' : 'npm run'} start} {dim to start developing with Parcel.}`);
|
|
114
114
|
}
|
|
115
115
|
async function createApp(packageName, tempPath) {
|
|
116
116
|
log(emoji.progress, 'Creating package directory...');
|
|
@@ -128,7 +128,7 @@ async function createApp(packageName, tempPath) {
|
|
|
128
128
|
}, null, 2));
|
|
129
129
|
}(), ncp(_path().default.join(TEMPLATES_DIR, 'default'), tempPath)]);
|
|
130
130
|
log(emoji.progress, 'Installing packages...');
|
|
131
|
-
await installPackages(['
|
|
131
|
+
await installPackages(['parcel@canary', 'postcss', '@babel/core'], {
|
|
132
132
|
cwd: tempPath,
|
|
133
133
|
isDevDependency: true
|
|
134
134
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/create-react-app",
|
|
3
|
-
"version": "2.12.1-dev.
|
|
3
|
+
"version": "2.12.1-dev.3398+81c73b3cd",
|
|
4
4
|
"bin": {
|
|
5
5
|
"atlaspack-create-react-app": "lib/bin.js"
|
|
6
6
|
},
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"@babel/core": "^7.22.11",
|
|
41
41
|
"rimraf": "^5.0.5"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "81c73b3cdf93adf8b0013be9fed5422579bd5910"
|
|
44
44
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
.
|
|
1
|
+
.parcel-container {
|
|
2
2
|
height: 100vh;
|
|
3
3
|
width: 100vw;
|
|
4
4
|
display: flex;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.
|
|
7
|
+
.parcel-heading {
|
|
8
8
|
font-family: system-ui;
|
|
9
9
|
color: #e6daca;
|
|
10
10
|
margin: auto;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.
|
|
13
|
+
.parcel-logo {
|
|
14
14
|
margin-bottom: 60px;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.
|
|
17
|
+
.parcel-box {
|
|
18
18
|
position: relative;
|
|
19
19
|
height: 474px;
|
|
20
20
|
width: 600px;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.
|
|
23
|
+
.parcel-box-front {
|
|
24
24
|
position: absolute;
|
|
25
25
|
top: 0;
|
|
26
26
|
left: 0;
|
|
@@ -4,22 +4,22 @@ import frontUrl from 'url:./front.png';
|
|
|
4
4
|
import backUrl from 'url:./back.png';
|
|
5
5
|
import './index.css';
|
|
6
6
|
|
|
7
|
-
export default function
|
|
7
|
+
export default function Parcel() {
|
|
8
8
|
return (
|
|
9
|
-
<div className="
|
|
10
|
-
<div className="
|
|
9
|
+
<div className="parcel-container">
|
|
10
|
+
<div className="parcel-heading">
|
|
11
11
|
<div>
|
|
12
12
|
<h1>Welcome to</h1>
|
|
13
|
-
<img src={logoUrl} className="
|
|
13
|
+
<img src={logoUrl} className="parcel-logo" alt="Parcel logo" />
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
|
-
<div className="
|
|
16
|
+
<div className="parcel-box">
|
|
17
17
|
<img src={backUrl} alt="" height="474" />
|
|
18
18
|
<div id="icons" />
|
|
19
19
|
<img
|
|
20
20
|
src={frontUrl}
|
|
21
|
-
className="
|
|
22
|
-
alt="
|
|
21
|
+
className="parcel-box-front"
|
|
22
|
+
alt="Parcel box"
|
|
23
23
|
height="474"
|
|
24
24
|
/>
|
|
25
25
|
</div>
|