Skip to content

Commit

Permalink
feat(www): m-css.com on sveltekit
Browse files Browse the repository at this point in the history
  • Loading branch information
tivac committed Feb 3, 2022
1 parent 897a2c5 commit d434f92
Show file tree
Hide file tree
Showing 106 changed files with 12,038 additions and 12,963 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,6 @@ test/output

# environment variables
.env

# Local Netlify folder
.netlify
16,126 changes: 5,482 additions & 10,644 deletions package-lock.json

Large diffs are not rendered by default.

25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
"pretest": "npm run parsers",
"test": "jest",
"watch": "jest --watch",
"www:build": "npm run build --workspace=www",
"www:start": "npm start --workspace=www",
"prewww:build": "npm run parsers",
"www:build": "npm run build --workspace=@modular-css/www",
"www:start": "npm start --workspace=@modular-css/www",
"prewww:deploy": "npm run parsers",
"www:deploy": "npm run deploy --workspace=www"
"www:deploy": "npm run build --workspace=@modular-css/www"
},
"devDependencies": {
"@babel/eslint-parser": "^7.16.5",
Expand All @@ -32,18 +33,18 @@
"dedent": "0.7.0",
"dentist": "1.0.3",
"env-cmd": "^10.0.1",
"eslint": "^8.4.1",
"eslint-plugin-jest": "^25.3.0",
"jest": "^27.4.5",
"jest-cli": "^27.4.5",
"eslint": "^8.8.0",
"eslint-plugin-jest": "^26.0.0",
"jest": "^27.4.7",
"jest-cli": "^27.4.7",
"lerna": "^4.0.0",
"node-notifier": "^10.0.0",
"node-notifier": "^10.0.1",
"peggy": "^1.2.0",
"postcss": "^8.4.5",
"rollup": "^2.66.1",
"shelljs": "^0.8.4"
"postcss": "^8.4.6",
"rollup": "^2.67.0",
"shelljs": "^0.8.5"
},
"workspaces": [
"packages/*"
"./packages/*"
]
}
6 changes: 5 additions & 1 deletion packages/processor/processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const params = (processor, args) => {
};

const DEFAULTS = {
cwd : process.cwd(),
cwd : false,
map : false,

dupewarn : true,
Expand All @@ -88,6 +88,8 @@ class Processor {
__proto__ : null,
...DEFAULTS,
...opts,

cwd : opts.cwd || process.cwd(),
};

this._options = options;
Expand Down Expand Up @@ -293,6 +295,8 @@ class Processor {
for(const dep of files) {
this._log("_after()", dep);

await this._files[dep].walked;

const result = await this._after.process(
// NOTE: the call to .clone() is really important here, otherwise this call
// modifies the .result root itself and you process URLs multiple times
Expand Down
10 changes: 0 additions & 10 deletions packages/vite/vite.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,8 @@ const emptyMappings = {
};

const DEFAULTS = {
dev : false,
verbose : false,

namedExports : {
rewriteInvalid : true,
warn : true,
},

// Regexp to work around https://github.com/rollup/rollup-pluginutils/issues/39
include : /\.mcss$/i,
};
Expand Down Expand Up @@ -91,10 +85,6 @@ module.exports = (
buildStart() {
log("build start");

if(!options.namedExports) {
this.warn("@modular-css/rollup doesn't allow namedExports to be disabled");
}

// Watch any files already in the procesor
Object.keys(processor.files).forEach((file) => this.addWatchFile(file));
},
Expand Down
11 changes: 10 additions & 1 deletion packages/www/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
dist/*
.DS_Store
node_modules
build/
.svelte-kit/
package/
.env
.env.*
!.env.example
__old__/
.netlify/
1 change: 1 addition & 0 deletions packages/www/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
Loading

0 comments on commit d434f92

Please sign in to comment.