Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Commit b22c62f

Browse files
committed
fix: Modified package.json to Deploy Forkify Project to Netlify
1 parent 7f2fb82 commit b22c62f

File tree

7 files changed

+85
-88
lines changed

7 files changed

+85
-88
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
# ignore ALL files in ANY directory named node_modules
2-
node_modules/
1+
# ignore ALL files in ANY of the following directories
2+
node_modules
33
.parcel-cache
4+
dist

10-forkify/package-lock.json

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

10-forkify/package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
{
2-
"name": "10-forkify",
2+
"name": "forkify",
33
"version": "1.0.0",
44
"description": "Recipe App",
5-
"main": "index.js",
5+
"default": "index.js",
66
"scripts": {
77
"start": "parcel index.html",
8-
"build": "parcel build index.html"
8+
"build": "parcel build index.html --dist-dir ./dist"
99
},
1010
"author": "ralvarezdev",
1111
"license": "ISC",
1212
"devDependencies": {
13-
"fracty": "^1.0.11",
14-
"parcel": "^2.10.3",
15-
"sass": "^1.69.6"
13+
"@parcel/transformer-sass": "^2.10.3",
14+
"parcel": "^2.10.3"
1615
},
1716
"dependencies": {
18-
"core-js": "^3.35.0",
19-
"regenerator-runtime": "^0.14.1"
17+
"fracty": "^1.0.11"
2018
}
2119
}

10-forkify/src/js/controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import 'core-js/stable';
2-
import 'regenerator-runtime/runtime';
1+
// import 'core-js/stable';
2+
// import 'regenerator-runtime/runtime';
33

44
import * as model from './model.js';
55
import { MODAL_CLOSE_SEC } from './config.js';

10-forkify/src/js/model.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
import { async } from 'regenerator-runtime';
1+
// import { async } from 'regenerator-runtime';
32
import { API_URL, RESULTS_PER_PAGE, KEY } from './config';
43
import { AJAX } from './helpers.js';
54

10-forkify/src/js/views/recipeView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,6 @@ class RecipeView extends View
133133
</div>;
134134
`;
135135
}
136-
}
136+
};
137137

138138
export default new RecipeView();

10-forkify/src/js/views/resultsView.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import PreviewView from './previewView.js';
22

3-
import icons from 'url:../../img/icons.svg';
4-
53
class ResultsView extends PreviewView
64
{
75
_parentElement = document.querySelector('.results');

0 commit comments

Comments
 (0)