Skip to content
Snippets Groups Projects
Commit aaf1df55 authored by Efe's avatar Efe
Browse files

Remove renderer's separate build process

parent 85274a53
No related branches found
No related tags found
1 merge request!557Move hive renderer to internal packages
Pipeline #114993 failed
......@@ -32,9 +32,6 @@ WORKDIR /app
# First install the dependencies (as they change less often)
COPY --from=builder /app/out/json/ .
COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
COPY --from=builder /app/packages/tsconfig ./packages/tsconfig
COPY --from=builder /app/packages/renderer/src ./packages/renderer/src
COPY --from=builder /app/packages/renderer/tsconfig*.json ./packages/renderer/
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
# Build the project
......
......@@ -2,8 +2,8 @@
"name": "@hive/renderer",
"version": "0.0.0-development",
"description": "Content renderer for Hive posts and comments. Markdown + HTML",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "src/index.ts",
"types": "src/index.ts",
"unpkg": "dist/browser/hive-content-renderer.min.js",
"engines": {
"node": ">=20"
......@@ -12,20 +12,9 @@
"access": "public"
},
"scripts": {
"build:clean": "rm -rf dist",
"build:node": "tsc -p tsconfig.build.json",
"build:browser": "NODE_ENV=production webpack --mode=production --config webpack.config.js",
"build": "pnpm run build:clean && pnpm run build:node && pnpm run build:browser",
"prepare": "if [ -f tsconfig.build.json ]; then pnpm run build; fi",
"lint": "eslint ./src --ext .js,.jsx,.ts,.tsx",
"lint:fix": "eslint ./src --ext .js,.jsx,.ts,.tsx --fix",
"test": "mocha 'src/**/*.test.ts'",
"test:coverage": "nyc --reporter=cobertura mocha 'src/**/*.test.ts'",
"verify:ci": "/opt/testcafe/docker/testcafe-docker.sh --selector-timeout 2000 --assertion-timeout 2000 chromium,firefox browser-test/browser-test.js",
"verify:chrome": "testcafe --selector-timeout 2000 --assertion-timeout 2000 chrome browser-test/browser-test.js",
"verify:firefox": "testcafe --selector-timeout 2000 --assertion-timeout 2000 firefox browser-test/browser-test.js",
"semantic-release": "semantic-release",
"hooks:install": "husky"
"test": "mocha 'src/**/*.test.ts'"
},
"dependencies": {
"@xmldom/xmldom": "0.8.10",
......
{
"extends": "@hive/tsconfig/base.json",
"compilerOptions": {
"target": "ES6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
"outDir": "dist", /* Redirect output structure to the directory. */
"strict": true, /* Enable all strict type-checking options. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
"resolveJsonModule": true,
"skipLibCheck": true,
"moduleResolution": "node",
"isolatedModules": true,
"moduleResolution": "Bundler",
"module": "esnext",
"jsx": "react",
"lib": ["dom", "es2015", "es2016", "es2017"],
"allowJs": true,
"noEmit": false
"lib": ["dom", "es2015", "es2016", "es2017"]
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"]
"exclude": ["node_modules", "**/*.test.ts", "**/*.spec.ts"]
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment