Commit graph

38 commits

Author SHA1 Message Date
林一二
3cc2289937 refactor: rename tiddlygit to tidgi in code 2021-12-18 13:16:26 +08:00
tiddlygit-test
dd515c80ca chore: disable useless csp 2021-11-09 00:48:31 +08:00
林一二
e79f321a4a fix: duplicate external deps "app-path" causes problem
fixes https://github.com/tiddly-gittly/TiddlyGit-Desktop/issues/133
2021-11-05 01:22:34 +08:00
lin onetwo
b0e9da434d chore: It is possible to shorten build times by removing ProgressPlugin 2021-10-01 02:19:47 +08:00
林一二
8faa62b3c5 Update webpack.plugins.js 2021-09-16 11:29:01 +08:00
林一二
72dcfa84ff feat: display multiple vio/bundle-stats-action
https://github.com/vio/bundle-stats-action/issues/78#issuecomment-905925925
2021-08-26 13:19:04 +08:00
林一二
3e8539ca29 fix: api.github.com cannot load 2021-08-08 14:23:19 +08:00
林一二
e8b36edd1c fix: Webpack has been initialized using a configuration object that does not match the API schema
An unhandled error has occurred inside Forge:
Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
 - configuration.plugins[6] should be one of these:
   object { apply, … } | function
   -> Plugin of type object or instanceof Function.
   Details:
    * configuration.plugins[6] should be an object:
      object { apply, … }
      -> Plugin instance.
    * configuration.plugins[6] should be an instance of function.
      -> Function acting as plugin.
ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
 - configuration.plugins[6] should be one of these:
   object { apply, … } | function
   -> Plugin of type object or instanceof Function.
   Details:
    * configuration.plugins[6] should be an object:
      object { apply, … }
      -> Plugin instance.
    * configuration.plugins[6] should be an instance of function.
      -> Function acting as plugin.

This is because there is an undefined in the plugins list

exports.renderer [
  DefinePlugin {
    definitions: { 'process.env.NODE_ENV': '"development"' }
  },
  CspHtmlWebpackPlugin {
    cspPluginPolicy: {
      'base-uri': [Array],
      'object-src': [Array],
      'script-src': [Array],
      'style-src': [Array],
      'frame-src': [Array],
      'worker-src': [Array]
    },
    opts: {
      enabled: true,
      hashingMethod: 'sha256',
      hashEnabled: [Object],
      nonceEnabled: [Object],
      processFn: [Function: defaultProcessFn]
    }
  },
  WebpackBarPlugin {
    profile: false,
    handler: [Function (anonymous)],
    modulesCount: 5000,
    dependenciesCount: 10000,
    showEntries: true,
    showModules: true,
    showDependencies: true,
    showActiveModules: true,
    percentBy: undefined,
    options: {
      name: 'webpack',
      color: 'green',
      reporters: [Array],
      reporter: null
    },
    reporters: [ FancyReporter {} ]
  },
  undefined
]
2021-08-07 19:57:26 +08:00
林一二
7e615fe86c feat: add stats.json to out, and prepare report 2021-08-07 18:36:36 +08:00
林一二
55f0b7b6fc refactor: use afterPack.js to prepare worker dependencies 2021-08-07 18:23:41 +08:00
林一二
34af575f39 chore: disable BundleAnalyzerPlugin 2021-08-07 18:02:25 +08:00
林一二
b2185885af feat: add bundle analyzer 2021-08-07 12:24:15 +08:00
林一二
44e56246d9 feat: add progress bar
https://github.com/unjs/webpackbar
2021-07-29 20:30:34 +08:00
tiddlygit-test
5f227ac77a fix: copy full dugite to asarunpack 2021-07-28 01:14:15 +08:00
tiddlygit-test
1f34fba261 fix: test runner 2021-06-18 01:41:21 +08:00
林一二
fe3e29dba9 fix: copy git to the resource 2021-06-08 23:51:57 +08:00
lin onetwo
59f150a73c fix: don't copy node_modules on dev 2021-06-03 01:32:30 +08:00
林一二
ee7cf2c5f7 fix: copy non-ugilified tiddlywiki source to the dist 2021-06-02 22:02:55 +08:00
林一二
55546ea109 fix: use not minified tiddlywiki 2021-06-02 13:20:24 +08:00
tiddlygit-test
e2e0e678e6 fix: try package node_modules tiddlywiki with unpacked worker 2021-06-02 01:31:37 +08:00
tiddlygit-test
a3407bd460 fix: external tiddlywiki using external plugin 2021-06-01 01:21:59 +08:00
tiddlygit-test
c27de731b1 refactor: external node deps 2021-05-31 00:19:07 +08:00
tiddlygit-test
dcd9266d70 chore: try upgrade to webpack@5
blocks by https://github.com/andywer/threads-plugin/issues/37
2021-05-30 00:21:14 +08:00
tiddlygit-test
446c652e86 fix: don't ignore other modules other than tiddlywiki 2021-05-04 01:05:52 +08:00
tiddlygit-test
52af3603bd refactor: use threads-plugin to load wiki worker, and use ts in worker 2021-05-03 20:49:46 +08:00
tiddlygit-test
1f2008be4e lint: disable 2021-05-02 19:35:18 +08:00
tiddlygit-test
c9f6d15639 feat: check ts 2021-04-24 21:42:15 +08:00
tiddlygit-test
afe8ecd076 chore: allow passing NodeEnv to the code 2021-04-18 21:44:34 +08:00
tiddlygit-test
8e2c02e77f fix: unsafe-eval for react-dom
No time to fix this
react-dom unsafe-eval CspHtmlWebpackPlugin nonce
problem
2021-03-21 18:01:33 +08:00
tiddlygit-test
4b9e6b3855 feat: bundle localization folder and worker.js on build 2021-03-21 17:34:56 +08:00
tiddlygit-test
6df3ca5739 feat: make it secure 2021-03-21 17:32:16 +08:00
tiddlygit-test
46cabec9d8 feat: use electron-ipc-proxy to export service in preload script 2021-01-23 18:42:33 +08:00
tiddlygit-test
a2daf608c4 chore: enable ts checker plugin 2021-01-20 23:46:51 +08:00
tiddlygit-test
9385b84da8 fix: circular dependency 2021-01-19 20:46:40 +08:00
tiddlygit-test
c2dd2b6941 Revert "[ts-migrate][.] Rename files from JS/JSX to TS/TSX"
This reverts commit 725753c083.
2020-12-30 00:13:03 +08:00
tiddlygit-test
725753c083 [ts-migrate][.] Rename files from JS/JSX to TS/TSX
Co-authored-by: ts-migrate <>
2020-12-30 00:02:58 +08:00
tiddlygit-test
1808972197 fix: wiki worker.js 2020-12-20 23:35:49 +08:00
tiddlygit-test
e2ee9cba6e refactor: initial transform to ts 2020-12-19 22:33:59 +08:00