-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from adobecom/stage
Basic code setup for Adobe-Students pages
- Loading branch information
Showing
59 changed files
with
5,228 additions
and
2,933 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
quote_type = single |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,37 @@ | ||
module.exports = { | ||
root: true, | ||
extends: 'airbnb-base', | ||
env: { | ||
browser: true, | ||
}, | ||
env: { browser: true, mocha: true }, | ||
parser: '@babel/eslint-parser', | ||
parserOptions: { | ||
allowImportExportEverywhere: true, | ||
sourceType: 'module', | ||
requireConfigFile: false, | ||
}, | ||
rules: { | ||
'import/extensions': ['error', { js: 'always' }], // require js file extensions in imports | ||
'linebreak-style': ['error', 'unix'], // enforce unix linebreaks | ||
'no-param-reassign': [2, { props: false }], // allow modifying properties of param | ||
// allow reassigning param | ||
'no-param-reassign': [2, { props: false }], | ||
'linebreak-style': ['error', 'unix'], | ||
'import/extensions': ['error', { js: 'always' }], | ||
'object-curly-newline': ['error', { | ||
ObjectExpression: { multiline: true, minProperties: 6 }, | ||
ObjectPattern: { multiline: true, minProperties: 6 }, | ||
ImportDeclaration: { multiline: true, minProperties: 6 }, | ||
ExportDeclaration: 'never', | ||
}], | ||
'no-unused-expressions': 0, | ||
'chai-friendly/no-unused-expressions': 2, | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['test/**/*.js'], | ||
rules: { 'no-console': 'off' }, | ||
}, | ||
], | ||
plugins: [ | ||
'chai-friendly', | ||
], | ||
ignorePatterns: [ | ||
'/adobe-students/deps/*', | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Please always provide the [GitHub issue(s)](../issues) your PR is for, as well as test URLs where your change can be observed (before and after): | ||
* Add your specific features or fixes | ||
|
||
Fix #<gh-issue-id> | ||
Resolves: [MWPW-NUMBER](https://jira.corp.adobe.com/browse/MWPW-NUMBER) | ||
|
||
Test URLs: | ||
- Before: https://main--adobe-students--adobecom.hlx.live/ | ||
- After: https://<branch>--adobe-students--adobecom.hlx.live/ | ||
**Test URLs:** | ||
- Before: https://main--adobe-students--adobecom.hlx.live/?martech=off | ||
- After: https://feat-branch--adobe-students--adobecom.hlx.live/?martech=off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Lint | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- '**.js' | ||
|
||
jobs: | ||
run-lint: | ||
name: Running eslint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run eslint on changed files | ||
uses: tj-actions/eslint-changed-files@v20 | ||
with: | ||
config_path: ".eslintrc.js" | ||
# ignore_path: "/path/to/.eslintignore" | ||
# extra_args: "--max-warnings=0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Nala Tests | ||
|
||
on: | ||
pull_request: | ||
types: [ labeled, opened, synchronize, reopened ] | ||
|
||
jobs: | ||
action: | ||
name: Running E2E & IT | ||
if: contains(github.event.pull_request.labels.*.name, 'run-nala') | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
- name: Run Nala | ||
uses: adobecom/nala@main | ||
env: | ||
WORKFLOW_NAME: 'STUDENTS-PR-RUN' | ||
PR_RUN: 'true' | ||
labels: ${{ join(github.event.pull_request.labels.*.name, ' ') }} | ||
branch: ${{ github.event.pull_request.head.ref }} | ||
repoName: ${{ github.repository }} | ||
prUrl: ${{ github.event.pull_request.head.repo.html_url }} | ||
prOrg: ${{ github.event.pull_request.head.repo.owner.login }} | ||
prRepo: ${{ github.event.pull_request.head.repo.name }} | ||
prBranch: ${{ github.event.pull_request.head.ref }} | ||
prBaseBranch: ${{ github.event.pull_request.base.ref }} | ||
IMS_EMAIL: ${{ secrets.IMS_EMAIL }} | ||
IMS_PASS: ${{ secrets.IMS_PASS }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,5 @@ | |
coverage/* | ||
logs/* | ||
node_modules/* | ||
|
||
helix-importer-ui | ||
.DS_Store | ||
*.bak | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
*.json | ||
!*/**/*.json | ||
.* | ||
*.md | ||
karma.config.js | ||
LICENSE | ||
package.json | ||
package-lock.json | ||
test/* | ||
web-test-runner.config.mjs | ||
codecov.yaml | ||
!tools/sidekick/config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: 1.0 | ||
|
||
snow: | ||
- id: 545562 # Milo CC | ||
|
||
notifications: | ||
jira: | ||
default: | ||
project: MWPW # Mandatory | ||
filters: | ||
include: | ||
risk_rating: R5 | ||
fields: | ||
assignee: | ||
name: saljain | ||
customfield_11800: MWPW-140779 #epic link | ||
customfield_12900: | ||
value: Brahmos | ||
watchers: | ||
- saljain | ||
- mathuria | ||
labels: | ||
- "OriginatingProcess=Kodiak" | ||
- "security" | ||
- "kodiak-ticket" | ||
components: | ||
- name: "DevOps Security" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": ["stylelint-config-standard"] | ||
"extends": ["stylelint-config-standard", "stylelint-config-prettier"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"recommendations": [ | ||
"stylelint.vscode-stylelint", | ||
"dbaeumer.vscode-eslint", | ||
"editorconfig.editorconfig", | ||
"ryanluker.vscode-coverage-gutters", | ||
"eamodio.gitlens", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "Debug on Helix", | ||
"url": "http://localhost:3000", | ||
"webRoot": "${workspaceFolder}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @salonijain3 @aishwaryamathuria @suhjainadobe @drashti1712 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,60 @@ | ||
# Your Project's Title... | ||
Your project's description... | ||
# Adobe Students x Milo | ||
The Franklin based project for adobe student pages on www.adobe-students.com. Based off of milo-college. | ||
|
||
## Environments | ||
- Preview: https://main--adobe-students--adobecom.hlx.page/ | ||
- Live: https://main--adobe-students--adobecom.hlx.live/ | ||
## Developing | ||
1. Install the [AEM CLI](https://github.com/adobe/helix-cli): `sudo npm install -g @adobe/aem-cli` | ||
2. Run `aem up` this repo's folder. (opens your browser at `http://localhost:3000`) | ||
3. Open this repo's folder in your favorite editor and start coding. | ||
|
||
## Installation | ||
## Testing Milo Changes on Adobe Students Pages | ||
1. Run 'aem up' in this folder to ensure the adobe-students site is running locally. | ||
2. Make changes in milo, and then from the milo folder, run `npm run libs`. | ||
3. Milo will run at: | ||
``` | ||
http://localhost:6456 | ||
``` | ||
4. On your `localhost:3000/` or the `main-<project>-<owner>` versions of your site, add the URL params: `?milolibs=local` | ||
5. You should see milo changes occurring on adobe-students pages. | ||
6. When needing to test on a adobe-students page while making a PR for milo, add the URL params: `?milolibs=<name-of-milo-branch>`to your test URLs. | ||
|
||
## Creating New Blocks | ||
When creating new blocks, first vet any requirements/author-experience in milo-community. There may be a way to achieve your goals with what currently exists in milo. | ||
|
||
## Testing | ||
```sh | ||
npm i | ||
npm run test | ||
``` | ||
or: | ||
```sh | ||
npm run test:watch | ||
``` | ||
This will give you several options to debug tests. Note: coverage may not be accurate. | ||
|
||
## Linting | ||
|
||
To run the linter run: | ||
```sh | ||
npm run lint | ||
``` | ||
To lint just js or css files, run | ||
```sh | ||
npm run lint:css | ||
``` | ||
or: | ||
```sh | ||
npm run lint:js | ||
``` | ||
If you need to lint just one file, you can run: | ||
```sh | ||
npx eslint file1.js | ||
``` | ||
|
||
## Documentations that might help | ||
Development Process on Adobe Students Milo [wiki](https://github.com/adobecom/adobe-students/wiki) | ||
|
||
## GitHub Discussions | ||
Join the conversation on [GitHub Discussions](https://github.com/orgs/adobecom/discussions). | ||
|
||
## Local development | ||
## Contributing | ||
See [CONTRIBUTING.md](CONTRIBUTING.md) for ways to get started. | ||
|
||
1. Create a new repository based on the `aem-boilerplate` template and add a mountpoint in the `fstab.yaml` | ||
1. Add the [AEM Code Sync GitHub App](https://github.com/apps/aem-code-sync) to the repository | ||
1. Install the [AEM CLI](https://github.com/adobe/helix-cli): `npm install -g @adobe/aem-cli` | ||
1. Start AEM Proxy: `aem up` (opens your browser at `http://localhost:3000`) | ||
1. Open the `adobe-students` directory in your favorite IDE and start coding :) | ||
Please adhere to this project's `code of conduct`. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "Adobe Students", | ||
"display": "standalone", | ||
"icons": [ | ||
{ "src": "/img/favicons/favicon-192.png", "sizes": "192x192", "type": "image/png" }, | ||
{ "src": "/img/favicons/favicon-512.png", "sizes": "512x512", "type": "image/png" } | ||
] | ||
} |
Oops, something went wrong.