diff --git a/app/assets/javascripts/jest.config.js b/app/assets/javascripts/jest.config.js index b0733b204..fc0c2d6ee 100644 --- a/app/assets/javascripts/jest.config.js +++ b/app/assets/javascripts/jest.config.js @@ -23,7 +23,6 @@ module.exports = { self: {}, // fixes error happening on `import { SKAlert } from 'sn-stylekit'` }, transform: { - '\\.(pug)$': '../../../node_modules/jest-transform-pug', '^.+\\.(ts|tsx)?$': 'ts-jest', '\\.svg$': 'svg-jest', }, diff --git a/app/assets/javascripts/typings/pug.d.ts b/app/assets/javascripts/typings/pug.d.ts deleted file mode 100644 index 70f2fef30..000000000 --- a/app/assets/javascripts/typings/pug.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare module "*.pug" { - import { compileTemplate } from 'pug'; - const content: compileTemplate; - export default content; -} diff --git a/app/views/application/app.html.erb b/app/views/application/app.html.erb index 377a6827f..9045c0643 100644 --- a/app/views/application/app.html.erb +++ b/app/views/application/app.html.erb @@ -15,8 +15,8 @@ - - + + Notes · Standard Notes diff --git a/index.html b/index.html index 7948e122e..dc8ed5e44 100644 --- a/index.html +++ b/index.html @@ -22,8 +22,8 @@ - - + + Dev · Notes · Standard Notes diff --git a/package.json b/package.json index 033eb2129..7865e1fee 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "@svgr/webpack": "^6.2.1", "@types/jest": "^27.0.3", "@types/lodash": "^4.14.176", - "@types/pug": "^2.0.5", "@types/react": "^17.0.31", "@typescript-eslint/eslint-plugin": "^5.1.0", "@typescript-eslint/parser": "^5.1.0", @@ -50,17 +49,12 @@ "husky": "^7.0.4", "identity-obj-proxy": "^3.0.0", "jest": "^27.3.1", - "jest-transform-pug": "^0.1.0", "lint-staged": ">=10", "lodash": "^4.17.21", "mini-css-extract-plugin": "^2.4.3", - "ng-cache-loader": "0.0.26", "node-sass": "^6.0.1", "prettier": "^2.5.0", "pretty-quick": "^3.1.2", - "pug": "^3.0.2", - "pug-jest": "^1.0.1", - "pug-loader": "^2.4.0", "sass-loader": "^12.2.0", "serve-static": "^1.14.1", "@standardnotes/stylekit": "5.7.0", diff --git a/webpack.config.js b/webpack.config.js index 6ad74a1d5..1db03de72 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -76,29 +76,6 @@ module.exports = (env) => { test: /\.svg$/i, use: ['@svgr/webpack'], }, - { - test: /\.html$/, - exclude: [path.resolve(__dirname, 'index.html')], - use: [ - { - loader: 'ng-cache-loader', - options: { - prefix: 'templates:**', - }, - }, - ], - }, - { - test: /\.pug$/, - use: [ - { - loader: 'apply-loader', - }, - { - loader: 'pug-loader', - }, - ], - }, ], }, };