Skip to content

Commit 7719766

Browse files
committed
fixed for new babel preset and yarn
1 parent c108794 commit 7719766

File tree

4 files changed

+3537
-7
lines changed

4 files changed

+3537
-7
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"presets": ["es2015"]
2+
"presets": ["env"]
33
}

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,23 @@ This project is designed to get you used to working with all of the concepts we
55
## Project initialization
66

77
* `Fork and Clone` this repository and cd into it.
8-
* Run the command `npm i` to install needed node packages.
8+
* Run the command `yarn install` to install needed node packages.
99
* **JUST** a _reminder_ this command runs a script on your machine based on the `package.json` file you have installed in your project. By running this command, you're telling your project to head over to `npm.org` and download all of the packages you need for this project.
1010
## Instructions
11-
* This project is designed to carry over from JavaScript I through JavaScript II.
1211
* Please complete the project files in this order: `callbacks.js` `arrays.js` `objects.js` and finally `closure.js`.
1312
* In each project file you'll see a series of problems to work through,.
14-
* When you feel like you've completed the problem, be sure to run, `npm test <file name>` to get see if your code works properly... and to check if you have any linting errors.
13+
* When you feel like you've completed the problem, be sure to run, `yarn test <file name>` to get see if your code works properly... and to check if you have any linting errors.
1514
* Work until you have all of the tests passing.
1615

1716
## Running the tests
1817

1918
Example:
2019

2120
```
22-
npm test arrays
21+
yarn test arrays
2322
2423
-> executes all of the tests in the `src/tests/arrays.tests.js file`
2524
26-
npm test closure
25+
yarn test closure
2726
-> executes all of the tests in the `src/tests/closure.tests.js file`
2827
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
"homepage": "https://github.com/SunJieMing/js-minicamp-homework-1#readme",
2020
"devDependencies": {
2121
"babel-jest": "^19.0.0",
22+
"babel-preset-env": "^1.6.1",
2223
"eslint": "^3.17.1",
2324
"eslint-config-airbnb-base": "^11.1.3",
2425
"eslint-plugin-import": "^2.2.0",
2526
"jest": "^19.0.2",
2627
"regenerator-runtime": "^0.10.3"
2728
},
2829
"dependencies": {
29-
"babel-preset-es2015": "^6.24.0",
3030
"eslint-config-airbnb": "^14.1.0"
3131
}
3232
}

0 commit comments

Comments
 (0)