-
Notifications
You must be signed in to change notification settings - Fork 9
Replaces yarn with npm #170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,17 +4,15 @@ node_js: | |
| env: | ||
| global: | ||
| - CC_TEST_REPORTER_ID=0be009d55f19435b5d362efac7afcdc532945bbc13527c285135c5e7b84f4e3c | ||
| cache: | ||
| yarn: true | ||
| directories: | ||
| - node_modules | ||
| cache: npm | ||
| before_script: | ||
| - cd webnode/ | ||
| - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||
| - chmod +x ./cc-test-reporter | ||
| - ./cc-test-reporter before-build | ||
| script: | ||
| - yarn && yarn test:coverage | ||
| - npm install | ||
| - npm run test:coverage | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You still need to install dependencies with
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nvm, I see you updated it. Didn't we want to use
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. travis runs npm ci instead of npm install: https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#npm-ci-support |
||
| after_script: | ||
| - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT | ||
| deploy: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
|
|
||
| # Webnode | ||
|
|
||
| The webnode script runs on oyster-enabled websites, to replace or augment ad revenue. This script will run in the browsers of visitors to the website. Files on the tangle expire and must be periodically reattached. In the process of doing the reattachment, the webnode could find PRL which the brokernode will send to the website owner's ETH address. To obtain the genesis hashes that the webnode needs to begin a treasure hunt, it will do some PoW for brokernodes to assist with in-progress file uploads. | ||
| The webnode script runs on oyster-enabled websites, to replace or augment ad revenue. This script will run in the browsers of visitors to the website. Files on the tangle expire and must be periodically reattached. In the process of doing the reattachment, the webnode could find PRL which the brokernode will send to the website owner's ETH address. To obtain the genesis hashes that the webnode needs to begin a treasure hunt, it will do some PoW for brokernodes to assist with in-progress file uploads. | ||
|
|
||
| ## Getting Started | ||
|
|
||
|
|
@@ -15,19 +14,18 @@ Clone the repo | |
| git clone https://github.com/oysterprotocol/webnode.git | ||
| ``` | ||
|
|
||
| Modify webnode/src/config to point to development brokers, change API\_ROOT\_URL | ||
|
|
||
| Modify webnode/src/config to point to development brokers, change API_ROOT_URL | ||
|
|
||
| Install dependencies | ||
| Install dependencies | ||
|
|
||
| ``` | ||
| yarn | ||
| npm | ||
| ``` | ||
|
|
||
| Start web server | ||
|
|
||
| ``` | ||
| yarn start | ||
| npm start | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't these commands become
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there are a few reserved words that just run without needing to add |
||
| ``` | ||
|
|
||
| Navigate to url | ||
|
|
@@ -41,19 +39,19 @@ Navigate to url | |
| Run Once | ||
|
|
||
| ``` | ||
| yarn test | ||
| npm test | ||
| ``` | ||
|
|
||
| Run with watcher | ||
|
|
||
| ``` | ||
| yarn test:watch | ||
| npm run test:watch | ||
| ``` | ||
|
|
||
| Run with code coverage | ||
|
|
||
| ``` | ||
| yarn test:coverage | ||
| npm run test:coverage | ||
| ``` | ||
|
|
||
| ### Coding style tests | ||
|
|
@@ -66,18 +64,16 @@ ES Lint is configured to run on compile, you will see warnings in the console in | |
|
|
||
| ## Built With | ||
|
|
||
| * [React](https://reactjs.org/) - The web framework used | ||
| * [Redux](https://redux.js.org/) - State Management | ||
| * [IOTA](https://github.com/iotaledger/iota.lib.js/) - IOTA Core API | ||
| * [Webpack](https://webpack.js.org/) - Build tools | ||
|
|
||
| - [React](https://reactjs.org/) - The web framework used | ||
| - [Redux](https://redux.js.org/) - State Management | ||
| - [IOTA](https://github.com/iotaledger/iota.lib.js/) - IOTA Core API | ||
| - [Webpack](https://webpack.js.org/) - Build tools | ||
|
|
||
| ## Project Status | ||
|
|
||
| * [Travis CI Builds](https://travis-ci.org/oysterprotocol/webnode) - Build Report | ||
| * [E2E Test Dashboard (Cypress)](https://www.cypress.io/) - E2E test results | ||
| * [Code Climate](https://codeclimate.com/github/oysterprotocol/webnode) - Reports code coverage, maintainability, and trends | ||
|
|
||
| - [Travis CI Builds](https://travis-ci.org/oysterprotocol/webnode) - Build Report | ||
| - [E2E Test Dashboard (Cypress)](https://www.cypress.io/) - E2E test results | ||
| - [Code Climate](https://codeclimate.com/github/oysterprotocol/webnode) - Reports code coverage, maintainability, and trends | ||
|
|
||
| ## Contributing | ||
|
|
||
|
|
@@ -89,4 +85,4 @@ We use [SemVer](http://semver.org/) for versioning. | |
|
|
||
| ## Authors | ||
|
|
||
| See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project. | ||
| See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we still want to cache this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it by default https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#caching-with-npm