Skip to content
Open

Dev #100

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
3373b95
Bump eslint-utils from 1.3.1 to 1.4.2
dependabot[bot] Sep 10, 2019
cb9b2e1
Merge pull request #8 from CircleCI-Public/dependabot/npm_and_yarn/es…
jkzilla Sep 10, 2019
c508c71
Bump mixin-deep from 1.3.1 to 1.3.2
dependabot[bot] Sep 10, 2019
d32961a
Merge pull request #10 from CircleCI-Public/dependabot/npm_and_yarn/m…
jkzilla Sep 10, 2019
77fc691
Merge pull request #11 from CircleCI-Public/dev
scwheele Oct 8, 2019
c505d4c
Create LICENSE
Nyxtopouli Oct 13, 2019
5c4c25e
Update README.md
Nyxtopouli Oct 13, 2019
901a6bf
Update README.md
Nyxtopouli Oct 15, 2019
d34874f
Update README.md
Nyxtopouli Oct 15, 2019
faff733
Merge pull request #14 from MIP2000/add-license-1 [ci-skip]
KyleTryon Oct 17, 2019
0926820
update package-lock.json
jkzilla Apr 23, 2020
54f87b8
Update config.yml
jkzilla May 1, 2020
7d82379
Rename directory with React components from Componets to Components
May 18, 2020
ba37445
Bump websocket-extensions from 0.1.3 to 0.1.4
dependabot[bot] Jun 6, 2020
8b94742
Update README.md
jkzilla Jul 29, 2020
0a86a73
update package-lock.json dep
jkzilla Aug 13, 2020
51af9ff
Update README.md
jkzilla Aug 13, 2020
f7d405f
Update README.md
jkzilla Aug 13, 2020
a0dc5af
Update config.yml
jkzilla Aug 13, 2020
df222ad
Update config.yml
jkzilla Aug 13, 2020
9325a95
Merge pull request #1 from CircleCI-Public/master
jkzilla Mar 11, 2021
57e9d18
update node orb
jkzilla Mar 11, 2021
47916af
test commit runs builds
jkzilla Mar 12, 2021
c1415e6
run tests on for develop
jkzilla Mar 12, 2021
4a40770
new commit
jkzilla Mar 12, 2021
0595c30
develop* test
jkzilla Mar 12, 2021
7e6380d
Priceline use case
jkzilla Mar 15, 2021
f5454d9
update node orb version
jkzilla Apr 16, 2021
d7e20ba
test
jkzilla Apr 19, 2021
9525494
test
jkzilla Apr 19, 2021
838507f
Merge branch 'master' into master
jkzilla Jul 28, 2021
02adfc6
Merge pull request #2 from CircleCI-Public/master
jkzilla Jul 28, 2021
137b1f5
Bump url-parse from 1.4.7 to 1.5.3
dependabot[bot] Oct 5, 2021
53cf99f
Merge pull request #56 from CircleCI-Public/dependabot/npm_and_yarn/u…
jerdog Oct 7, 2021
72214b8
test#
jkzilla Nov 4, 2021
cb2b41b
env var api
jkzilla Nov 9, 2021
d8aaf7e
env var api 2
jkzilla Nov 9, 2021
cb06b8c
stuff
jkzilla Nov 9, 2021
5ef703b
stuff2
jkzilla Nov 9, 2021
90574e0
stuff54
jkzilla Nov 9, 2021
42407e0
stuff42
jkzilla Nov 9, 2021
fe6b6e3
stuff33
jkzilla Nov 9, 2021
a0ddc6e
dfe enter the commit message for your changes. Lines starting
jkzilla Nov 9, 2021
aad070c
ijasd
jkzilla Nov 30, 2021
a351088
test
jkzilla Nov 30, 2021
ed000f1
Merge pull request #62 from jkzilla/jkg/test-slack-scheduled
jkzilla Nov 30, 2021
ffd2f39
test
jkzilla Nov 30, 2021
095241c
test every min
jkzilla Nov 30, 2021
c86384e
no cron
jkzilla Nov 30, 2021
6204eca
fix: upgrade multiple dependencies with Snyk
snyk-bot Dec 16, 2021
2600a96
fix: package.json & package-lock.json to reduce vulnerabilities
snyk-bot Dec 31, 2021
46a42a9
Merge pull request #66 from CircleCI-Public/snyk-fix-66f32d59a6783134…
jkzilla Jan 11, 2022
6465bef
Merge branch 'master' into snyk-upgrade-80c4615a1697c8f385b6cacee1d7b454
jkzilla Jan 11, 2022
ebde57b
Merge pull request #19 from CircleCI-Public/dependabot/npm_and_yarn/w…
jkzilla Jan 11, 2022
f721a55
Update config.yml
nramabad Jan 11, 2022
3a5a066
Update config.yml
nramabad Jan 11, 2022
723285d
back to success - I apologize
jkzilla Jan 11, 2022
baa9bc7
Feat: update config for new lang guide
nramabad Jan 11, 2022
f3e9d08
Merge pull request #70 from CircleCI-Public/docs-node-js-language-guide
jkzilla Jan 11, 2022
fa4678c
Updated config.yml
nramabad Jan 11, 2022
c584f81
Updated config.yml
nramabad Jan 11, 2022
34ebc3c
Updated config.yml
nramabad Jan 11, 2022
c64a94c
fix: package.json to reduce vulnerabilities
snyk-bot Jan 11, 2022
65cf010
test
jkzilla Jan 17, 2022
6705148
test1
jkzilla Jan 20, 2022
15b5030
test
jkzilla Jan 21, 2022
0c11316
files
jkzilla Jan 21, 2022
d51cf2b
exit 1
jkzilla Jan 21, 2022
c9f8934
exit 2
jkzilla Jan 21, 2022
e72f749
Updated config.yml
jkzilla Jan 21, 2022
e4889ef
Bump nanoid from 3.1.30 to 3.2.0
dependabot[bot] Jan 22, 2022
bdf8836
Bump follow-redirects from 1.14.6 to 1.14.8
dependabot[bot] Feb 12, 2022
12299bb
Merge pull request #75 from CircleCI-Public/dependabot/npm_and_yarn/f…
jkzilla Feb 14, 2022
87b2691
Merge pull request #74 from CircleCI-Public/dependabot/npm_and_yarn/n…
jkzilla Feb 14, 2022
af3a326
fix: package.json to reduce vulnerabilities
snyk-bot Apr 26, 2022
d874029
fix: package.json to reduce vulnerabilities
snyk-bot May 14, 2022
7e298af
remove lock
jkzilla May 25, 2022
14daae8
remove steps
jkzilla May 25, 2022
3d0b49c
test remove lock
jkzilla May 25, 2022
419f16b
Merge pull request #82 from CircleCI-Public/snyk-fix-784c684000a937e3…
jkzilla May 25, 2022
8ccf438
Remove lock
jkzilla May 25, 2022
60592b8
test allow empty on open pr failing ci
jkzilla May 25, 2022
3692080
test allow empty on open pr failing ci
jkzilla May 25, 2022
ce2e328
test
jkzilla May 25, 2022
0f959e7
Merge pull request #80 from CircleCI-Public/snyk-fix-9e3f52aca73298f8…
jkzilla May 27, 2022
4c37a56
Merge pull request #71 from CircleCI-Public/snyk-fix-6149df28258f068d…
jkzilla May 27, 2022
8bf7d5d
delete package lock
jkzilla May 27, 2022
0702ce8
Merge pull request #64 from CircleCI-Public/snyk-upgrade-80c4615a1697…
jkzilla May 27, 2022
bd4312a
Merge pull request #18 from aaditkamat/rename-folder
jkzilla May 27, 2022
da89c6a
a
jkzilla Jun 1, 2022
236e20e
Merge branch 'main' into main
jkzilla Jun 1, 2022
6b20f65
test
jkzilla Aug 18, 2022
b2724cc
Merge branch 'main' into develop
jkzilla Aug 18, 2022
d7f53c1
Merge pull request #92 from jkzilla/develop
jkzilla Aug 18, 2022
8e5be43
test
jkzilla Aug 18, 2022
87cc8ea
Merge branch 'main' into develop
jkzilla Aug 18, 2022
6281e9c
Merge pull request #93 from jkzilla/develop
jkzilla Aug 18, 2022
abf8ad2
Update config.yml
jkzilla Aug 22, 2022
291982a
Delete .circleci/config.yml
ngofficial99 Dec 11, 2024
fd34242
added the new commit file
Dec 12, 2024
082b313
changes
ngofficial99 Dec 12, 2024
08927a5
updated the versions
ngofficial99 Dec 12, 2024
fc88d93
added hello file to the dev branch
ngofficial99 Dec 13, 2024
1a2ed8d
added some changes to the hello file
ngofficial99 Dec 13, 2024
24d7822
added config file in dev branch asd
ngofficial99 Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 91 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,102 @@
version: 2 # use CircleCI 2.0
version: 2.1
orbs:
node: circleci/node@5.1.0
heroku: circleci/heroku@1.2.6

jobs:
build:
test:
docker:
- image: circleci/node:10
- image: cimg/node:18.20.0
steps:
- checkout # special step to check out source code to working directory

- restore_cache: # special step to restore the dependency cache
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/
keys:
- v1-repo-{{ checksum "package-lock.json" }}

- run:
name: Install dependencies with NPM
command: npm install # replace with `yarn install` if using yarn

- save_cache: # special step to save the dependency cache
key: v1-repo-{{ checksum "package-lock.json" }}
paths:
- "node_modules"

- checkout
- node/install-packages:
pkg-manager: yarn
override-ci-command: yarn install --frozen-lockfile
- run:
command: yarn test
name: Run tests
# Runs jest with "--maxWorkers=2" argument to avoid OOM issues
command: npm test # replace with `yarn test` if using yarn

- store_artifacts:
path: test-results
build:
docker:
- image: cimg/node:18.20.0
steps:
- checkout
- node/install-packages:
pkg-manager: yarn
override-ci-command: yarn install --frozen-lockfile
- run:
command: yarn build
name: Build app
- persist_to_workspace:
root: ~/project
paths:
- .

- store_test_results:
path: test-results
deploy:
docker:
- image: cimg/node:18.20.0
steps:
- attach_workspace:
at: ~/project
- heroku/deploy-via-git:
force: true

workflows:
version: 2
Build and Test:

# Workflow for pull requests and feature branches
test-workflow:
jobs:
- test:
filters:
branches:
ignore:
- main
- master

# Workflow for main branch
main-workflow:
jobs:
- test:
filters:
branches:
only:
- main
- master
- build:
requires:
- test
filters:
branches:
only:
- main
- master
# Uncomment when Heroku credentials are set up
# - deploy:
# requires:
# - build
# filters:
# branches:
# only:
# - main
# - master

# Nightly build workflow
nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- main
- master
jobs:
- build
- test
- build:
requires:
- test
# Uncomment when Heroku credentials are set up
# - deploy:
# requires:
# - build
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Circle Internet Services, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
155 changes: 85 additions & 70 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,72 +1,87 @@
# CircleCI Demo React JS App
# Quickstart: Demo JavaScript Node.js Reference Project
We maintain a reference JavaScript Node.js project to show how to build an Express.js app on CircleCI with version: 2.1 configuration:
[Demo JavaScript Node Project on GitHub](https://github.com/CircleCI-Public/circleci-demo-javascript-react-app)
[Demo JavaScript Node Project building on CircleCI](https://app.circleci.com/pipelines/github/CircleCI-Public/circleci-demo-javascript-react-app)

In the project you will find a CircleCI configuration file .circleci/config.yml. This file shows best practice for using version 2.1 config with Node projects.
Build the Demo JavaScript Node Project Yourself
A good way to start using CircleCI is to build a project yourself. Here’s how to build the demo project with your own account:
Fork the project on GitHub to your own account.
Go to the Add Projects page in the CircleCI application and click the Set Up Project button next to the project you just forked.
To make changes you can edit the .circleci/config.yml file and make a commit. When you push a commit to GitHub, CircleCI will build and test the project.

# Sample Configuration
Below is the .circleci/config.yml file in the demo project.

```
version: 2.1
orbs:
node: circleci/node@4.7.0
heroku: circleci/heroku@1.2.6

jobs:
build_and_test:
docker:
- image: cimg/node:17.2.0
steps:
- checkout
- node/install-packages:
pkg-manager: yarn
- run:
command: yarn test
name: Run tests
- run:
command: yarn build
name: Build app
- persist_to_workspace:
root: ~/project
paths:
- .
deploy: # this can be any name you choose
docker:
- image: cimg/node:17.2.0
steps:
- attach_workspace:
at: ~/project
- heroku/deploy-via-git:
force: true # force push when pushing to the heroku remote, see: https://devcenter.heroku.com/articles/git

workflows:
on_commit:
jobs:
- build_and_test
- deploy:
requires:
- build_and_test # only deploy if the build_and_test job has completed
filters:
branches:
only: master # only deploy when on main/master
nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- master
- docs-node-js-language-guide
jobs:
- build_and_test
- deploy:
requires:
- build_and_test # only deploy if the build_and_test job has completed
filters:
branches:
only: master # only deploy when on main/master
```

# Config Walkthrough
By using the [Node orb](https://circleci.com/orbs/registry/orb/circleci/node#jobs-test), it sets an executor from CircleCI's highly cached convenience images built for CI and allows you to set the version of NodeJS to use. Any available tag from this list can be used: https://hub.docker.com/r/cimg/node/tags.

The Node Orb test command will test your code with a one-line command, with optional parameters.

Matrix jobs are a simple way to test your Node app on various node environments. For a more in depth example of how the Node orb utilizes matrix jobs, see our blog on [matrix jobs](https://circleci.com/blog/circleci-matrix-jobs/). See [documentation on pipeline parameters](https://circleci.com/docs/2.0/pipeline-variables/#pipeline-parameters-in-configuration) to learn how to set a node version via Pipeline parameters.

Success! You just set up a Node.js app to build on CircleCI with version: 2.1 configuration. Check out our project’s Job page to see how this looks when building on CircleCI.

[![CircleCI](https://circleci.com/gh/CircleCI-Public/circleci-demo-javascript-react-app.svg?style=svg)](https://circleci.com/gh/CircleCI-Public/circleci-demo-javascript-react-app)

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br>
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.<br>
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.<br>
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br>
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

### Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `npm run build` fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
34 changes: 34 additions & 0 deletions config2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
orbs:
circle-node: circleci/node@4.7.0
docker: circleci/docker@2.0.1
continuation: circleci/continuation@0.2.0

default-executor: &default-executor
executor:
name: 'circle-node/default'

runner-executor: &runner-executor
machine: true
resource_class: jkg-runner/jkg-resource-class

version: 2.1

setup: true

jobs:
checking-branch:
<<: *default-executor
steps:
- checkout
- run:
command: |
if [ << pipeline.git.branch >> != "main" ]; then
exit 1
fi
- continuation/continue:
configuration_path: config2.yml
workflows:
run-if-main:
jobs:
- checking-branch

4 changes: 4 additions & 0 deletions hello.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
hello this is the dev file


hello this is some changes that i am doing to the dev branch asdyagsuydgasyudgahsd
Loading