Skip to content

Commit a28a329

Browse files
authored
refactor: v3.0 (#113)
* chore: fix linting errors * chore: de-esm * chore: de-esm, start move to ava * chore: move to circle * chore: gulp to npm scripts, housekeeping * chore: unfuck prev de-esm * test: get root tests passing * test: better integration tests * test: finish ava migration * chore: clean up package, add code coverage * chore(ci): fix lint script * test: ignore postcss-parser-tests until after 7.x update * chore(ci): add node 6 to circle config * fix: fixes #88, malformed filenames and missing semicolons in imports * fix: fixes #89, case insensitive !important * chore: keep the old parsers around for reference temporarily * refactor: leverage postcss 7.0 * refactor: enable mixins * chore: improve linting, fix variable parse, enable sanity check tests * chore: get stringifying working * chore: re-implement stringifying, update tests, remove old /lib * test: add test for #110 * test: add test for #108 * chore: implement interpolation, update tests * fix: fixes #102 and #86 * chore: code cleanup
1 parent 9a40149 commit a28a329

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+10013
-9003
lines changed

.babelrc

-6
This file was deleted.

.circleci/config.yml

+127
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
unit_tests: &unit_tests
2+
steps:
3+
- checkout
4+
- restore_cache:
5+
key: dependency-cache-{{ checksum "package-lock.json" }}
6+
- run:
7+
name: NPM Rebuild
8+
command: npm install
9+
- run:
10+
name: Run unit tests.
11+
command: npm run ci:test
12+
version: 2
13+
jobs:
14+
dependency_cache:
15+
docker:
16+
- image: rollupcabal/circleci-node-base:latest
17+
steps:
18+
- checkout
19+
- restore_cache:
20+
key: dependency-cache-{{ checksum "package-lock.json" }}
21+
- run:
22+
name: Install Dependencies
23+
command: npm install
24+
- save_cache:
25+
key: dependency-cache-{{ checksum "package-lock.json" }}
26+
paths:
27+
- ./node_modules
28+
node-v10-latest:
29+
docker:
30+
- image: rollupcabal/circleci-node-v10:latest
31+
steps:
32+
- checkout
33+
- restore_cache:
34+
key: dependency-cache-{{ checksum "package-lock.json" }}
35+
- run:
36+
name: NPM Rebuild
37+
command: npm install
38+
- run:
39+
name: Run unit tests.
40+
command: npm run ci:coverage
41+
- run:
42+
name: Submit coverage data to codecov.
43+
command: bash <(curl -s https://codecov.io/bash)
44+
when: on_success
45+
node-v8-latest:
46+
docker:
47+
- image: rollupcabal/circleci-node-v8:latest
48+
<<: *unit_tests
49+
node-v6-latest:
50+
docker:
51+
- image: rollupcabal/circleci-node-v6:latest
52+
<<: *unit_tests
53+
analysis:
54+
docker:
55+
- image: rollupcabal/circleci-node-base:latest
56+
steps:
57+
- checkout
58+
- restore_cache:
59+
key: dependency-cache-{{ checksum "package-lock.json" }}
60+
- run:
61+
name: NPM Rebuild
62+
command: npm install
63+
- run:
64+
name: Run linting.
65+
command: npm run lint
66+
- run:
67+
name: Run NSP Security Check.
68+
command: npm run security
69+
- run:
70+
name: Validate Commit Messages
71+
command: npm run ci:lint:commits
72+
publish:
73+
docker:
74+
- image: rollupcabal/circleci-node-base:latest
75+
steps:
76+
- checkout
77+
- restore_cache:
78+
key: dependency-cache-{{ checksum "package-lock.json" }}
79+
- run:
80+
name: NPM Rebuild
81+
command: npm install
82+
# - run:
83+
# name: Validate Commit Messages
84+
# command: npm run release:validate
85+
- run:
86+
name: Publish to NPM
87+
command: printf "noop running conventional-github-releaser"
88+
89+
version: 2.0
90+
workflows:
91+
version: 2
92+
validate-publish:
93+
jobs:
94+
- dependency_cache
95+
- analysis:
96+
requires:
97+
- dependency_cache
98+
filters:
99+
tags:
100+
only: /.*/
101+
- node-v6-latest:
102+
requires:
103+
- analysis
104+
filters:
105+
tags:
106+
only: /.*/
107+
- node-v8-latest:
108+
requires:
109+
- analysis
110+
filters:
111+
tags:
112+
only: /.*/
113+
- node-v10-latest:
114+
requires:
115+
- analysis
116+
filters:
117+
tags:
118+
only: /.*/
119+
- publish:
120+
requires:
121+
- node-v6-latest
122+
- node-v8-latest
123+
- node-v10-latest
124+
filters:
125+
branches:
126+
only:
127+
- master

.eslintignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
node_modules/
2-
build/
3-
package.json
1+
_lib

.eslintrc

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
11
{
2-
"extends": "shellscape",
3-
"parser": "babel-eslint",
4-
"parserOptions": {
5-
"sourceType": "module"
6-
},
7-
"rules": {
8-
"object-curly-spacing": ["error", "always", { "arraysInObjects": true }]
9-
}
2+
"extends": "shellscape"
103
}
File renamed without changes.

.gitignore

+7-33
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,10 @@
1-
s.js
2-
3-
/.vscode
4-
# Logs
5-
logs
6-
*.log
1+
.DS_Store
2+
.eslintcache
3+
.nyc_output
4+
.vscode
5+
coverage.lcov
76
npm-debug.log*
8-
9-
# Runtime data
10-
pids
11-
*.pid
12-
*.seed
13-
14-
# Directory for instrumented libs generated by jscoverage/JSCover
15-
lib-cov
16-
17-
# Coverage directory used by tools like istanbul
18-
coverage
19-
20-
# node-waf configuration
21-
.lock-wscript
22-
23-
# Compiled binary addons (http://nodejs.org/api/addons.html)
24-
build
25-
26-
# Dependency directory
7+
Thumbs.db
278
node_modules
289

29-
# Optional npm cache directory
30-
.npm
31-
32-
# Optional REPL history
33-
.node_repl_history
34-
.idea
35-
DS_Store
36-
dist
10+
s.js

.travis.yml

-7
This file was deleted.

CHANGELOG.md

-41
This file was deleted.

CONTRIBUTING.md

-12
This file was deleted.

0 commit comments

Comments
 (0)