Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: windicss/windicss-webpack-plugin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.4.4
Choose a base ref
...
head repository: windicss/windicss-webpack-plugin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing with 22,363 additions and 15,282 deletions.
  1. +0 −2 .env.example
  2. +1 −0 .eslintignore
  3. +1 −3 .eslintrc.json
  4. +1 −0 .github/FUNDING.yml
  5. +40 −0 .github/workflows/release.yml
  6. +22 −23 .github/workflows/test.yml
  7. +0 −14 .release-it.json
  8. +0 −408 CHANGELOG.md
  9. +0 −21 LICENSE
  10. +46 −7 README.md
  11. +26 −0 build.config.ts
  12. +14 −5 example/craco/craco.config.js
  13. +2 −1 example/craco/package.json
  14. +1 −0 example/craco/src/index.js
  15. +12 −0 example/icejs/.editorconfig
  16. +12 −0 example/icejs/.eslintignore
  17. +9 −0 example/icejs/.eslintrc.js
  18. +24 −0 example/icejs/.gitignore
  19. +9 −0 example/icejs/.prettierignore
  20. +3 −0 example/icejs/.prettierrc.js
  21. +7 −0 example/icejs/.stylelintignore
  22. +3 −0 example/icejs/.stylelintrc.js
  23. +46 −0 example/icejs/README.md
  24. +8 −0 example/icejs/build.json
  25. +32 −0 example/icejs/package.json
  26. BIN example/icejs/public/favicon.png
  27. +13 −0 example/icejs/public/index.html
  28. +12 −0 example/icejs/src/app.tsx
  29. +3 −0 example/icejs/src/global.css
  30. +49 −0 example/icejs/src/pages/Home/index.tsx
  31. +11 −0 example/icejs/src/routes.ts
  32. +14 −0 example/icejs/src/typings.d.ts
  33. +33 −0 example/icejs/tsconfig.json
  34. +13 −0 example/icejs/windi.config.ts
  35. +8,914 −0 example/icejs/yarn.lock
  36. +2 −0 example/next/.npmrc
  37. +2 −3 example/next/next.config.js
  38. +5 −4 example/next/package.json
  39. +1 −0 example/next/pages/_app.js
  40. +1,058 −0 example/next/pnpm-lock.yaml
  41. 0 example/next/pnpm-workspace.yaml
  42. +0 −2,456 example/next/yarn.lock
  43. +2 −0 example/nuxt/assets/styles/layout.sass
  44. +32 −0 example/nuxt/components/Animation.vue
  45. +3 −3 example/nuxt/nuxt.config.js
  46. +3 −2 example/nuxt/package.json
  47. +1 −0 example/nuxt/pages/index.vue
  48. +1 −0 example/nuxt/plugins/windicss.js
  49. +2,001 −1,747 example/nuxt/yarn.lock
  50. +5 −2 example/umijs/.umirc.ts
  51. +1 −0 example/umijs/package.json
  52. +2 −0 example/umijs/src/app.ts
  53. +0 −1 example/umijs/src/pages/index.tsx
  54. +2 −2 example/vue-cli-next/package.json
  55. +1 −0 example/vue-cli-next/src/App.vue
  56. +2 −2 example/vue-cli-next/vue.config.js
  57. +12 −9 example/vue2/package.json
  58. +17 −3 example/vue2/src/App.vue
  59. +3 −1 example/vue2/src/main.js
  60. +12 −2 example/vue2/vue.config.js
  61. +348 −200 example/vue2/yarn.lock
  62. +1 −1 example/vue3-storybook/.storybook/main.js
  63. +1 −0 example/vue3-storybook/src/App.vue
  64. +2 −2 example/vue3-storybook/vue.config.js
  65. +2 −1 example/vue3/package.json
  66. +1 −0 example/vue3/src/App.vue
  67. +2 −2 example/vue3/vue.config.js
  68. +0 −8 jest.config.js
  69. +83 −87 package.json
  70. +8,516 −0 pnpm-lock.yaml
  71. +0 −10 src/constants.ts
  72. +19 −0 src/core/constants.ts
  73. 0 src/{ → core}/debug.ts
  74. +1 −0 src/core/dev-tools-update.ts
  75. +95 −0 src/core/server.ts
  76. +81 −0 src/core/utils.ts
  77. +0 −5 src/index.ts
  78. +0 −28 src/interfaces.ts
  79. +49 −0 src/loaders/dev-tools.ts
  80. +0 −41 src/loaders/pitcher.ts
  81. +0 −29 src/loaders/transform-css.ts
  82. +15 −13 src/loaders/virtual-module.ts
  83. +21 −0 src/loaders/windicss-css.ts
  84. +61 −0 src/loaders/windicss-style-pitcher.ts
  85. +22 −22 src/loaders/{transform-template.ts → windicss-template.ts}
  86. +111 −80 src/plugin.ts
  87. +87 −0 src/runtime/client.ts
  88. +66 −0 src/types.ts
  89. +0 −12 test/__snapshots__/import-from-css-apply.test.js.snap
  90. +0 −67 test/__snapshots__/layers.test.js.snap
  91. +0 −227 test/__snapshots__/tranform-template.test.js.snap
  92. +17 −0 test/directives.test.ts
  93. +2 −4 test/{excluded-transform.test.js → excluded-transform.test.ts}
  94. +3 −0 test/fixtures/import-css-with-apply/styles/global.css
  95. +6 −0 test/fixtures/vue-directives/index.js
  96. +11 −0 test/fixtures/vue-directives/stylesheets/plain.css
  97. +53 −0 test/fixtures/vue-directives/templates/App.vue
  98. +7 −0 test/fixtures/vue-directives/windi.config.ts
  99. +13 −0 test/fixtures/vue/templates/App.vue
  100. +1 −1 test/helpers/{getModuleSource.js → getModuleSource.ts}
  101. +3 −0 test/helpers/index.ts
  102. +4 −4 test/helpers/{reactWebpackCompiler.js → reactWebpackCompiler.ts}
  103. +10 −5 test/helpers/{vueWebpackCompiler.js → vueWebpackCompiler.ts}
  104. +2 −4 test/{import-from-css-apply.test.js → import-from-css-apply.test.ts}
  105. +2 −5 test/{layers.test.js → layers.test.ts}
  106. +0 −13 test/regex.test.js
  107. +49 −0 test/regex.test.ts
  108. +10 −8 test/{tranform-template.test.js → tranform-template.test.ts}
  109. +18 −17 tsconfig.json
  110. +19 −0 vitest.config.ts
  111. +0 −9,665 yarn.lock
2 changes: 0 additions & 2 deletions .env.example

This file was deleted.

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -4,3 +4,4 @@ dist
test
coverage
example
__snapshots__
4 changes: 1 addition & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"env": {
"node": true,
"jest": true
"node": true
},
"extends": "@antfu",
"plugins": ["jest"],
"rules": {
"@typescript-eslint/no-var-requires": "off",
"no-cond-assign": "off"
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [harlan-zw]
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2.2.1

- name: Use Node.js v16
uses: actions/setup-node@v2
with:
node-version: v16
registry-url: https://registry.npmjs.org/
cache: "pnpm"

- run: npx conventional-github-releaser -p angular
continue-on-error: true
env:
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Install Dependencies
run: pnpm install

- name: PNPM build
run: pnpm run build

- name: Publish to NPM
run: pnpm -r publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
45 changes: 22 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -3,41 +3,40 @@ name: Test
on:
push:
branches:
- master
- main

pull_request:
branches:
- master
- main

jobs:
ci:
timeout-minutes: 20
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
node: [ 14 ]
node-version: [16.x]
# os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest]
fail-fast: false

steps:
- uses: actions/checkout@v2

- uses: actions/cache@v2
id: cache
with:
path: "node_modules"
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install pnpm
uses: pnpm/action-setup@v2.2.1

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn

- name: Build ts
run: yarn build
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
cache: "pnpm"

- name: Run Linter
run: yarn lint
- run: pnpm install

- name: Run tests
run: yarn test
- name: Build
run: pnpm run build

- name: Coverage
uses: codecov/codecov-action@v1
- name: Test
run: pnpm run test
14 changes: 0 additions & 14 deletions .release-it.json

This file was deleted.

Loading