Skip to content

Commit 2de7887

Browse files
committed
Added prettier
1 parent 381e612 commit 2de7887

File tree

5 files changed

+28
-3
lines changed

5 files changed

+28
-3
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/dist

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ nvm use 18
1212

1313
To build the library, run the following commands:
1414
```
15-
cd package
1615
npm install
1716
npm run build
1817
```
@@ -21,8 +20,14 @@ This will create the build in the dist folder.
2120

2221
Open `examples/NeuralNetwork/index.html` in the browser to see the build running an example from the ml5 website.
2322

23+
## Code Formatting
24+
To keep the coding style consistent, we will be using the prettier formatter.
25+
26+
2427

2528
## Process
29+
This section explains how this repository was creates and is for reference purposes only. The steps outlines in this section do not need to be followed by contributors.
30+
2631
I am building the library using Webpack, which was installed with:
2732
```
2833
npm install --save-dev webpack webpack cli

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"build": "webpack --config webpack.config.js"
7+
"build": "webpack --config webpack.config.js",
8+
"format": "prettier --write \"**/*.js\""
89
},
910
"keywords": [
1011
"ML5"
@@ -13,9 +14,10 @@
1314
"license": "ISC",
1415
"repository": {
1516
"type": "git",
16-
"url": ""
17+
"url": "https://github.com/ml5js/ml5-neuralnetwork-test-build"
1718
},
1819
"devDependencies": {
20+
"prettier": "2.8.8",
1921
"webpack": "^5.76.1",
2022
"webpack-cli": "^5.0.1"
2123
},

0 commit comments

Comments
 (0)