Skip to content

Commit

Permalink
Do not compile library build
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Nov 24, 2023
1 parent b8dbba3 commit f81e7af
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"postcss-import": "^15.1.0",
"postcss-loader": "^7.3.3",
"style-loader": "^3.3.3",
"tailwindcss": "^3.3.5",
"terser-webpack-plugin": "^5.3.9",
"ts-jest": "^29.1.1",
"ts-jest-mock-import-meta": "^1.1.0",
Expand Down Expand Up @@ -54,13 +53,14 @@
"i18n-js": "^3.8.0",
"pyodide": "^0.22.0",
"pyodide-worker-runner": "1.3.1",
"sync-message": "^0.0.12"
"sync-message": "^0.0.12",
"tailwindcss": "^3.3.5"
},
"scripts": {
"start": "webpack serve --mode development",
"setup": "bash scripts/setup.sh",
"build:app": "bash scripts/build_package.sh development",
"build:library": "bash scripts/build_package.sh production",
"build:app": "bash scripts/build.sh development",
"build:library": "bash scripts/build_library.sh",
"test": "jest",
"lint": "eslint --ext '.js' --ext '.ts' src",
"validate:translations": "node scripts/ValidateTranslations.js"
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions scripts/build_library.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
rm -rf dist
cd src/workers/python
python3 build_package.py
cd -
tsc
mv src/workers/python/python_package.tar.gz dist/workers/python
npx tailwindcss -i ./src/Papyros.css -o ./dist/Papyros.css
1 change: 1 addition & 0 deletions src/App.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "./Papyros.css";
import {
addPapyrosPrefix,
DEFAULT_LOCALE, DEFAULT_PROGRAMMING_LANGUAGE,
Expand Down
1 change: 0 additions & 1 deletion src/Papyros.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable max-len */
import "./Papyros.css";
import I18n from "i18n-js";
import {
EDITOR_WRAPPER_ID, PROGRAMMING_LANGUAGE_SELECT_ID,
Expand Down

0 comments on commit f81e7af

Please sign in to comment.