Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b38c6ad
chore: base npm and git configs
holaontiveros Aug 14, 2025
d501da7
chore: base ts config
holaontiveros Aug 14, 2025
f2d1a41
chore: base test configs
holaontiveros Aug 14, 2025
c230270
chore: eslint configs
holaontiveros Aug 14, 2025
4109677
chore: update i18n files
holaontiveros Aug 14, 2025
a4f2214
chore: replace @edx/frontend-platform imports
holaontiveros Aug 14, 2025
96a1c6c
chore: add site configs
holaontiveros Aug 14, 2025
785232a
chore: src file structure
holaontiveros Aug 25, 2025
c542eb9
chore: stop using process.env
holaontiveros Aug 25, 2025
f7449b0
chore: configure app.scss file
holaontiveros Aug 25, 2025
272d1d5
chore: remove build from CI
holaontiveros Aug 25, 2025
e878ff1
chor: remove legacy leftovers from makefile
holaontiveros Aug 25, 2025
3ab3d7b
chore: update to right ids (old references from copied code)
holaontiveros Aug 25, 2025
d5f009b
chore: udpated to alpha 6
holaontiveros Aug 25, 2025
0e8446c
chore: update variables to right updated syntax
holaontiveros Aug 25, 2025
7a6a3fe
chore: update import order
holaontiveros Aug 25, 2025
5642d21
chore: remove ensureConfig
holaontiveros Aug 25, 2025
dd28e9c
chore: update AppContext to SiteContext
holaontiveros Aug 25, 2025
dd99ea0
chore: update defaultProps to be in function declaration
holaontiveros Aug 26, 2025
51e386a
chore: update old config vars no new format
holaontiveros Aug 29, 2025
6f12341
chore: general cleanup
holaontiveros Sep 26, 2025
f15fe00
chore: syntax fix
holaontiveros Sep 26, 2025
c61f005
chore: cleanups
holaontiveros Sep 29, 2025
b87d6f6
chore: updated roles for links
holaontiveros Sep 30, 2025
4b5dceb
chore: comments fixed
holaontiveros Sep 30, 2025
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
24 changes: 0 additions & 24 deletions .env

This file was deleted.

25 changes: 0 additions & 25 deletions .env.development

This file was deleted.

23 changes: 0 additions & 23 deletions .env.test

This file was deleted.

5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

31 changes: 0 additions & 31 deletions .eslintrc.js

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ jobs:
run: npm run lint
- name: Test
run: npm run test
- name: Build
run: npm run build
- name: i18n_extract
run: npm run i18n_extract
- name: Coverage
Expand Down
18 changes: 6 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
.directory
.DS_Store
.eslintcache
.idea
node_modules
npm-debug.log
coverage
module.config.js
env.config.*

dist/
src/i18n/transifex_input.json
temp/babel-plugin-react-intl
/*.tgz

### pyenv ###
.python-version
### i18n ###
src/i18n/transifex_input.json

### Emacs ###
### Editors ###
.DS_Store
*~
/temp
/.vscode
/.vscode
16 changes: 5 additions & 11 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
.eslintignore
.eslintrc.json
.gitignore
.travis.yml
docker-compose.yml
Dockerfile
Makefile
npm-debug.log

coverage
__mocks__
node_modules
public
*.test.js
*.test.jsx
*.test.ts
*.test.tsx
26 changes: 7 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,29 +41,17 @@ detect_changed_source_translations:
# Checking for changed translations...
git diff --exit-code $(i18n)

# Pushes translations to Transifex. You must run make extract_translations first.
push_translations:
# Pushing strings to Transifex...
tx push -s
# Fetching hashes from Transifex...
./node_modules/@edx/reactifex/bash_scripts/get_hashed_strings_v3.sh
# Writing out comments to file...
$(transifex_utils) $(transifex_temp) --comments --v3-scripts-path
# Pushing comments to Transifex...
./node_modules/@edx/reactifex/bash_scripts/put_comments_v3.sh

# Pulls translations using atlas.
pull_translations:
rm -rf src/i18n/messages
mkdir src/i18n/messages
cd src/i18n/messages \
&& atlas pull $(ATLAS_OPTIONS) \
translations/frontend-component-header/src/i18n/messages:frontend-component-header \
translations/frontend-component-footer/src/i18n/messages:frontend-component-footer \
translations/frontend-platform/src/i18n/messages:frontend-platform \
translations/paragon/src/i18n/messages:paragon \
translations/frontend-app-discussions/src/i18n/messages:frontend-app-discussions
&& atlas pull $(ATLAS_OPTIONS) \
translations/frontend-base/src/i18n/messages:frontend-base \
translations/paragon/src/i18n/messages:paragon \
translations/frontend-app-discussions/src/i18n/messages:frontend-app-discussions

$(intl_imports) frontend-base paragon frontend-app-discussions

$(intl_imports) frontend-component-header frontend-component-footer frontend-platform paragon frontend-app-discussions
# endif

# This target is used by Travis.
Expand Down
10 changes: 10 additions & 0 deletions app.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/// <reference types="@openedx/frontend-base" />

declare module 'site.config' {
export default SiteConfig;
}

declare module '*.svg' {
const content: string;
export default content;
}
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const { createConfig } = require('@openedx/frontend-base/config');

module.exports = createConfig('babel');
24 changes: 24 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// @ts-check

const { createLintConfig } = require('@openedx/frontend-base/config');

module.exports = createLintConfig(
{
rules: {
'no-duplicate-imports': 'warn',
},
},
{
files: [
'src/**/*',
'site.config.*',
],
},
{
ignores: [
'documentation/*',
'jest.config.js',
'src/i18n/messages/'
],
},
);
15 changes: 8 additions & 7 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
const { createConfig } = require('@openedx/frontend-build');
const { createConfig } = require('@openedx/frontend-base/config');

module.exports = createConfig('jest', {
// setupFilesAfterEnv is used after the jest environment has been loaded. In general this is what you want.
// If you want to add config BEFORE jest loads, use setupFiles instead.
setupFiles: ['<rootDir>/.env.test'],
module.exports = createConfig('test', {
setupFilesAfterEnv: [
'<rootDir>/src/setupTest.jsx',
],
modulePaths: ['<rootDir>/src/'],
coveragePathIgnorePatterns: [
'src/setupTest.jsx',
'src/i18n',
'testUtils', // don't unit test jest mocking tools
],
moduleNameMapper: {
'\\.svg$': '<rootDir>/src/__mocks__/svg.js',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/src/__mocks__/file.js',
},
});
Loading
Loading