Skip to content
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

Drop Create-React-App #766

Merged
merged 10 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
29 changes: 0 additions & 29 deletions .babelrc.esm-build

This file was deleted.

1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ Dockerfile
/design-tokens/node_modules/

# local build results
/build/
/dist/
7 changes: 0 additions & 7 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,3 @@ VITE_VERSION=latest
VITE_BASE_API_URL=http://localhost:8000/api/v2/
VITE_FORM_ID=93c09209-5fb9-4105-b6bb-9d9f0aa6782c
VITE_USE_HASH_ROUTING=false

# Legacy
DISABLE_ESLINT_PLUGIN=true
REACT_APP_VERSION=latest
REACT_APP_BASE_API_URL=http://localhost:8000/api/v2/
REACT_APP_FORM_ID=93c09209-5fb9-4105-b6bb-9d9f0aa6782c
REACT_APP_USE_HASH_ROUTING=false
2 changes: 0 additions & 2 deletions .env.production

This file was deleted.

File renamed without changes.
18 changes: 18 additions & 0 deletions bin/prepare-package.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env node
'use strict';

import fs from 'fs';
import path from 'path';

const APP_DIRECTORY = fs.realpathSync(process.cwd());
const PACKAGE_JSON_PATH = path.resolve(APP_DIRECTORY, 'package.json');

const packageJson = JSON.parse(fs.readFileSync(PACKAGE_JSON_PATH, 'utf-8'));

// make package.json modifications to be able to publish the package. Workspaces require
// private=true, but to publish it, it must be private=false. While publishing the
// package, we do not use workspaces.
packageJson.private = false;

const stringified = JSON.stringify(packageJson, null, 2) + '\n';
fs.writeFileSync(PACKAGE_JSON_PATH, stringified);
104 changes: 0 additions & 104 deletions config/env.js

This file was deleted.

66 changes: 0 additions & 66 deletions config/getHttpsConfig.js

This file was deleted.

134 changes: 0 additions & 134 deletions config/modules.js

This file was deleted.

Loading
Loading