Skip to content

Commit 923ffbb

Browse files
committed
Removing double quote
1 parent af5f573 commit 923ffbb

File tree

19 files changed

+93
-94
lines changed

19 files changed

+93
-94
lines changed

packages/create-react-dependency/stages/createPackageJson.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
"use strict";
1+
'use strict';
22

3-
const fs = require("fs");
4-
const path = require("path");
3+
const fs = require('fs');
4+
const path = require('path');
55

66
const createPackageJson = (root, name) => {
77
const basePackageJson = {
88
name: name,
9-
version: "0.0.1",
10-
main: "dist/index.js",
11-
module: "dist/index.js",
12-
license: "MIT",
13-
files: ["dist"],
9+
version: '0.0.1',
10+
main: 'dist/index.js',
11+
module: 'dist/index.js',
12+
license: 'MIT',
13+
files: ['dist'],
1414
scripts: {
15-
start: "react-dependency-scripts start",
16-
build: "react-dependency-scripts build",
17-
test: "react-dependency-scripts test"
15+
start: 'react-dependency-scripts start',
16+
build: 'react-dependency-scripts build',
17+
test: 'react-dependency-scripts test'
1818
},
1919
devDependencies: {
20-
react: "16.11.0",
21-
"react-dom": "16.11.0",
22-
"react-dependency-scripts": "0.3.1"
20+
react: '16.11.0',
21+
'react-dom': '16.11.0',
22+
'react-dependency-scripts': '0.3.1'
2323
},
2424
browserslist: {
25-
production: [">0.2%", "not dead", "not op_mini all"],
25+
production: ['>0.2%', 'not dead', 'not op_mini all'],
2626
development: [
27-
"last 1 chrome version",
28-
"last 1 firefox version",
29-
"last 1 safari version"
27+
'last 1 chrome version',
28+
'last 1 firefox version',
29+
'last 1 safari version'
3030
]
3131
}
3232
};
3333

3434
fs.writeFileSync(
35-
path.join(root, "package.json"),
35+
path.join(root, 'package.json'),
3636
JSON.stringify(basePackageJson, null, 2)
3737
);
3838
};

packages/create-react-dependency/stages/createTemplate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
"use strict";
1+
'use strict';
22

3-
const fs = require("fs");
4-
const copyFolder = require("../utils/copyFolder");
3+
const fs = require('fs');
4+
const copyFolder = require('../utils/copyFolder');
55

66
const installTemplate = dir => {
77
const folder = `${__dirname}/../template`;

packages/create-react-dependency/stages/initializeGit.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
"use strict";
1+
'use strict';
22

3-
const { spawnSync } = require("child_process");
3+
const { spawnSync } = require('child_process');
44

55
const initializeGit = name => {
66
const originalDirectory = process.cwd();
77

88
try {
99
process.chdir(name);
1010

11-
spawnSync("git", ["init"], { stdio: "inherit" });
12-
spawnSync("git", ["add", "*"], { stdio: "inherit" });
13-
spawnSync("git", ["commit", "-m", '"First Commit"'], { stdio: "inherit" });
11+
spawnSync('git', ['init'], { stdio: 'inherit' });
12+
spawnSync('git', ['add', '*'], { stdio: 'inherit' });
13+
spawnSync('git', ['commit', '-m', '"First Commit"'], { stdio: 'inherit' });
1414
} catch (err) {
1515
console.log(`\x1b[31m${err}\x1b[0m`);
1616
}

packages/create-react-dependency/stages/installDependencies.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
"use strict";
1+
'use strict';
22

3-
const { execSync } = require("child_process");
3+
const { execSync } = require('child_process');
44

55
const yarnInstalled = () => {
66
try {
@@ -9,19 +9,18 @@ const yarnInstalled = () => {
99
} catch (error) {
1010
return false;
1111
}
12-
}
12+
};
1313

1414
const installDependencies = dir => {
1515
const originalDirectory = process.cwd();
1616
try {
1717
process.chdir(dir);
1818

1919
if (yarnInstalled) {
20-
execSync("yarnpkg install", { stdio: "inherit" });
20+
execSync('yarnpkg install', { stdio: 'inherit' });
2121
} else {
22-
execSync("npm install", { stdio: "inherit" });
22+
execSync('npm install', { stdio: 'inherit' });
2323
}
24-
2524
} catch (err) {
2625
console.log(`\x1b[31m${err}\x1b[0m`);
2726
}

packages/create-react-dependency/template/src/dev/App.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import React from "react";
2-
import Button from "../lib";
3-
import logo from "./logo.png";
1+
import React from 'react';
2+
import Button from '../lib';
3+
import logo from './logo.png';
44

55
const App = () => (
66
<div className="content">
77
<img src={logo} className="logo" alt="Logo Create React Dependency" />
88
<h1 className="title">Create React Dependency</h1>
99
<section className="library">
10-
<Button onClick={() => alert("button")}>My Library Button</Button>
10+
<Button onClick={() => alert('button')}>My Library Button</Button>
1111
</section>
1212
</div>
1313
);

packages/create-react-dependency/template/src/dev/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ body,
22
#root {
33
margin: 0;
44
padding: 0;
5-
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
5+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
66
}
77

88
html,
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import React from "react";
2-
import ReactDOM from "react-dom";
3-
import App from "./App";
4-
import "./index.css";
1+
import React from 'react';
2+
import ReactDOM from 'react-dom';
3+
import App from './App';
4+
import './index.css';
55

6-
ReactDOM.render(<App />, document.getElementById("root"));
6+
ReactDOM.render(<App />, document.getElementById('root'));

packages/create-react-dependency/template/src/lib/Lib.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import React from "react";
1+
import React from 'react';
22

33
const Lib = props => (
44
<button
55
style={{
6-
border: "none",
7-
boxShadow: "none",
8-
backgroundColor: "#00838f",
9-
color: "#FFF",
10-
padding: "0px 20px",
6+
border: 'none',
7+
boxShadow: 'none',
8+
backgroundColor: '#00838f',
9+
color: '#FFF',
10+
padding: '0px 20px',
1111
fontSize: 20,
1212
height: 40
1313
}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { default } from "./Lib";
1+
export { default } from './Lib';

packages/create-react-dependency/utils/copyFolder.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
"use strict";
1+
'use strict';
22

3-
const fs = require("fs");
4-
const path = require("path");
3+
const fs = require('fs');
4+
const path = require('path');
55

66
const copyFolder = (source, target) => {
77
if (!fs.existsSync(target)) {

0 commit comments

Comments
 (0)