Skip to content

Commit

Permalink
Merge pull request #28 from davidjoy/main
Browse files Browse the repository at this point in the history
feat: Full support for the new module architecture
  • Loading branch information
davidjoy authored Sep 5, 2024
2 parents 2b1f4f8 + 0563fa1 commit 7efcebc
Show file tree
Hide file tree
Showing 138 changed files with 19,550 additions and 4,156 deletions.
22 changes: 0 additions & 22 deletions .env

This file was deleted.

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

This file was deleted.

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

This file was deleted.

7 changes: 5 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const path = require('path');
const { merge } = require('webpack-merge');

const { createConfig } = require('./config');
const config = require('./tools/eslint/.eslintrc.js');

module.exports = createConfig('eslint', {
module.exports = merge(config, {
ignorePatterns: [
'test-app',
'docs',
Expand All @@ -11,6 +12,8 @@ module.exports = createConfig('eslint', {
'coverage',
'example',
'example-plugin-app',
'tools',
'config',
],
parserOptions: {
project: path.resolve(__dirname, './tsconfig.json'),
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ jobs:
- name: Install dependencies
run: |
npm ci
npm run build
npm pack
mv openedx-frontend-base* openedx-frontend-base.tgz
cd test-app
npm i ../openedx-frontend-base.tgz
npm ci
- name: Lint
run: npm run lint
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
.vscode
coverage
dist
config
scss
node_modules
npm-debug.log
docs/api
Expand Down
22 changes: 12 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ doc_command = ./node_modules/.bin/documentation build src -g -c ./docs/documenta
cat_docs_command = cat ./docs/_API-header.md ./docs/_API-body.md > ./docs/API.md

build:
rm -rf ./dist
tsc
cp frontend-base.d.ts dist/frontend-base.d.ts
mkdir -p ./scss/header/studio-header

cp shell/index.scss dist/shell/index.scss
cp shell/header/index.scss dist/shell/header/index.scss
cp shell/header/Menu/menu.scss dist/shell/header/Menu/menu.scss
cp shell/header/studio-header/StudioHeader.scss dist/shell/header/studio-header/StudioHeader.scss
rm -rf ./config ./dist
tsc --project tsconfig.build.json
mkdir -p ./config
cp tools/typescript/tsconfig.json config/tsconfig.json
tsc --project ./tools/tsconfig.json
cp -prf ./tools/dist ./dist
mv ./dist/dist ./dist/tools
cp -prf ./tools/dist/config-helpers ./config/config-helpers
cp -prf ./tools/dist/eslint ./config/eslint
cp -prf ./tools/dist/jest ./config/jest
cp -prf ./tools/dist/webpack ./config/webpack
cp -prf ./tools/dist/index.js ./config/index.js

docs-build:
${doc_command}
Expand All @@ -33,7 +36,6 @@ docs-watch:
docs-lint:
./node_modules/.bin/documentation lint src


.PHONY: requirements
requirements: ## install ci requirements
npm ci
Expand Down
Loading

0 comments on commit 7efcebc

Please sign in to comment.