Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: drop css modules #748

Merged
merged 45 commits into from
Aug 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
04c3d16
refactor: drop `css` modules
alexander-akait Jul 9, 2018
09e21c1
refactor: `runtime` code
alexander-akait Jul 9, 2018
c012f9b
refactor: move `postcss` plugin into own file
alexander-akait Jul 9, 2018
b130031
refactor: move `CssLoaderError` into own file
alexander-akait Jul 9, 2018
d1f80ee
refactor: merge code from `processCss` with `loader` code
alexander-akait Jul 9, 2018
ebdaf84
refactor: drop export locals
alexander-akait Jul 9, 2018
8150d2b
refactor: drop `icss` utils
alexander-akait Jul 9, 2018
f95be98
refactor: some stuff
alexander-akait Jul 9, 2018
c81edd4
refactor: `url` part of plugin
alexander-akait Jul 10, 2018
c49b5da
refactor: `import` part of plugin
alexander-akait Jul 10, 2018
254be6b
refactor: stuff
alexander-akait Jul 10, 2018
d22c14f
refactor: escape
alexander-akait Jul 10, 2018
cddbea5
refactor: rename `escape` to `runtimeEscape`
alexander-akait Jul 10, 2018
186f5b6
refactor: `getImportPrefix`
alexander-akait Jul 10, 2018
aa3918a
refactor: loader
alexander-akait Jul 10, 2018
7570df9
refactor: tests
alexander-akait Jul 10, 2018
ff7a4c8
refactor: SyntaxError class
alexander-akait Jul 10, 2018
2f769b3
refactor: loader
alexander-akait Jul 10, 2018
fdfdc17
refactor: use `runtime` message api
alexander-akait Jul 11, 2018
f424b92
refactor: `url` in lowercase
alexander-akait Jul 11, 2018
1aaecdd
refactor: rename `modify-runtime` to `modify-runtime-code`
alexander-akait Jul 11, 2018
45469b7
refactor: `loader` and `plugin`
alexander-akait Jul 11, 2018
ede061d
refactor: options
alexander-akait Jul 12, 2018
9075cfc
feat: validate options
alexander-akait Jul 12, 2018
99ffe87
tests: escaped characters
alexander-akait Jul 12, 2018
81d104a
refactor: webpack-defaults
alexander-akait Jul 12, 2018
f0c5312
refactor: tests
alexander-akait Aug 7, 2018
ae51bf0
refactor: modify message api
alexander-akait Aug 7, 2018
9ad9e21
chore(deps): update postcss to `7` version
alexander-akait Aug 8, 2018
1fdc462
chore(deps): use `schema-utils`
alexander-akait Aug 8, 2018
64a5b48
refactor: SyntaxError and Warning
alexander-akait Aug 8, 2018
0aea5d7
refactor: stuff
alexander-akait Aug 8, 2018
1554d66
test: fix
alexander-akait Aug 8, 2018
ca846b4
refactor: comment
alexander-akait Aug 8, 2018
1330534
refactor: stuff
alexander-akait Aug 8, 2018
84ffe7f
refactor: postcss option
alexander-akait Aug 8, 2018
fe0b78e
test: more
alexander-akait Aug 8, 2018
2b758e8
refactor: remove unnecessary map check
alexander-akait Aug 8, 2018
063dd2d
chore: update `postcss-loader`
alexander-akait Aug 8, 2018
868a5c3
feat: custom error messages
alexander-akait Aug 8, 2018
d49b1db
fix: test
alexander-akait Aug 8, 2018
c4037b0
refactor: reuing ast
alexander-akait Aug 8, 2018
f9cc7ba
docs: note about `css` modules
alexander-akait Aug 8, 2018
eab41ba
fix: use postcss ast only if versions is equals
alexander-akait Aug 15, 2018
06e6d08
refactor: tests
alexander-akait Aug 17, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"presets": [
[
"env",
{
"useBuiltIns": true,
"targets": {
"node": "6.9.0"
},
"exclude": [
"transform-async-to-generator",
"transform-regenerator"
]
}
]
],
"plugins": [
[
"transform-object-rest-spread",
{
"useBuiltIns": true
}
]
],
"env": {
"test": {
"presets": [
"env"
],
"plugins": [
"transform-object-rest-spread"
]
}
}
}
156 changes: 156 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
unit_tests: &unit_tests
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: NPM Rebuild
command: npm install
- run:
name: Run unit tests.
command: npm run ci:test
canary_tests: &canary_tests
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: NPM Rebuild
command: npm install
- run:
name: Install Webpack Canary
command: npm i --no-save webpack@next
- run:
name: Run unit tests.
command: if [[ $(compver --name webpack --gte next --lt latest) < 1 ]] ; then printf "Next is older than Latest - Skipping Canary Suite"; else npm run ci:test ; fi

version: 2
jobs:
dependency_cache:
docker:
- image: webpackcontrib/circleci-node-base:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Install Dependencies
command: npm install
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- ./node_modules

node8-latest:
docker:
- image: webpackcontrib/circleci-node8:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: NPM Rebuild
command: npm install
- run:
name: Run unit tests.
command: npm run ci:coverage
- run:
name: Submit coverage data to codecov.
command: bash <(curl -s https://codecov.io/bash)
when: on_success
node6-latest:
docker:
- image: webpackcontrib/circleci-node6:latest
<<: *unit_tests
node9-latest:
docker:
- image: webpackcontrib/circleci-node9:latest
<<: *unit_tests
node8-canary:
docker:
- image: webpackcontrib/circleci-node8:latest
<<: *canary_tests
analysis:
docker:
- image: webpackcontrib/circleci-node-base:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: NPM Rebuild
command: npm install
- run:
name: Run linting.
command: npm run lint
- run:
name: Run NSP Security Check.
command: npm run security
- run:
name: Validate Commit Messages
command: npm run ci:lint:commits
publish:
docker:
- image: webpackcontrib/circleci-node-base:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: NPM Rebuild
command: npm install
# - run:
# name: Validate Commit Messages
# command: npm run release:validate
- run:
name: Publish to NPM
command: printf "noop running conventional-github-releaser"

version: 2.0
workflows:
version: 2
validate-publish:
jobs:
- dependency_cache
- node6-latest:
requires:
- dependency_cache
filters:
tags:
only: /.*/
- analysis:
requires:
- dependency_cache
filters:
tags:
only: /.*/
- node8-latest:
requires:
- analysis
- node6-latest
filters:
tags:
only: /.*/
- node9-latest:
requires:
- analysis
- node6-latest
filters:
tags:
only: /.*/
- node8-canary:
requires:
- analysis
- node6-latest
filters:
tags:
only: /.*/
- publish:
requires:
- node8-latest
- node8-canary
- node9-latest
filters:
branches:
only:
- master
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
/dist
11 changes: 11 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
root: true,
plugins: ['prettier'],
extends: ['@webpack-contrib/eslint-config-webpack'],
rules: {
'prettier/prettier': [
'error',
{ singleQuote: true, trailingComma: 'es5', arrowParens: 'always' },
],
},
};
Loading