create-application-template 0.4.0 → 0.5.0
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 +4 -4
- package/bin/create-application-template.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ All configuration is fully visable and under your control to augment as you see
|
|
|
5
5
|
|
|
6
6
|
The template is a typescript enabled React application with a test suite and code linting.
|
|
7
7
|
|
|
8
|
-
See the template running live here
|
|
8
|
+
See the template running live [here](https://createapplicationtemplate.onrender.com).
|
|
9
9
|
|
|
10
10
|
## installation
|
|
11
11
|
first install globally
|
|
@@ -21,7 +21,7 @@ npx create-application-template --name={my-project}
|
|
|
21
21
|
## usage
|
|
22
22
|
webpack is used for code bundling and the development server
|
|
23
23
|
|
|
24
|
-
run development server and test suite
|
|
24
|
+
run development server and test suite on http://localhost:3333 by default
|
|
25
25
|
```
|
|
26
26
|
npm run dev
|
|
27
27
|
```
|
|
@@ -48,12 +48,12 @@ npm run test
|
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
## code linting
|
|
51
|
-
linting rules are in `.eslintrc.js
|
|
51
|
+
linting rules are in `.eslintrc.js`; install the ESLint pluggin if using vscode
|
|
52
52
|
```
|
|
53
53
|
npm run lint
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
css linting rules are in `.stylelintrc.js
|
|
56
|
+
css linting rules are in `.stylelintrc.js`; install the Stylelint pluggin if using vscode
|
|
57
57
|
```
|
|
58
58
|
npm run stylelint
|
|
59
59
|
```
|
|
@@ -33,6 +33,7 @@ const run = async () => {
|
|
|
33
33
|
|
|
34
34
|
const projectPaths = {
|
|
35
35
|
root: `./${argv.name}`,
|
|
36
|
+
get bin() { return `${this.root}/bin` },
|
|
36
37
|
get env() { return `${this.root}/.env` },
|
|
37
38
|
get packageJson() { return `${this.root}/package.json` },
|
|
38
39
|
}
|
|
@@ -50,6 +51,7 @@ const run = async () => {
|
|
|
50
51
|
if (packageJson.dependencies.hasOwnProperty('yargs')) delete packageJson.dependencies.yargs
|
|
51
52
|
|
|
52
53
|
execCommand(`rm ${projectPaths.packageJson}`)
|
|
54
|
+
execCommand(`rm -rf ${projectPaths.bin}`)
|
|
53
55
|
|
|
54
56
|
try {
|
|
55
57
|
await writeFile(projectPaths.packageJson, JSON.stringify(packageJson, null, 2), {
|