Skip to content

Commit f6e8032

Browse files
committed
WIP: fix some of the rename issues
1 parent ef7cb96 commit f6e8032

File tree

93 files changed

+5228
-1989
lines changed

Some content is hidden

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

93 files changed

+5228
-1989
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -87,37 +87,37 @@ More detailed descriptions are available in [docs/features.md](docs/features.md)
8787
### [JS API](/packages/core/#readme)
8888

8989
```bash
90-
$ npm i modular-css-core
90+
$ npm i @modular-css/processor
9191
```
9292

9393
### [CLI](/packages/cli/#readme)
9494

9595
```bash
96-
$ npm i modular-css-cli
96+
$ npm i @modular-css/cli
9797
```
9898

9999
### [Browserify](/packages/browserify/#readme)
100100

101101
```bash
102-
$ npm i modular-cssify
102+
$ npm i @modular-css/browserify
103103
```
104104

105105
### [Rollup](/packages/rollup/#readme)
106106

107107
```bash
108-
$ npm i modular-css-rollup
108+
$ npm i @modular-css/rollup
109109
```
110110

111111
### [Webpack](/packages/webpack/#readme)
112112

113113
```bash
114-
$ npm i modular-css-webpack
114+
$ npm i @modular-css/webpack
115115
```
116116

117117
### [Svelte](/packages/svelte/#readme)
118118

119119
```bash
120-
$ npm i modular-css-svelte
120+
$ npm i @modular-css/svelte
121121
```
122122

123123
### [PostCSS Plugin](/packages/postcss/#readme)
@@ -129,7 +129,7 @@ $ npm i postcss-modular-css
129129
### [Globbing API](/packages/glob/#readme)
130130

131131
```bash
132-
$ npm i modular-css-glob
132+
$ npm i @modular-css/glob
133133
```
134134

135135
## Why?

docs/api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ new Processor({
111111
// or
112112

113113
new Processor({
114-
namer : "modular-css-namer"
114+
namer : "@modular-css/shortnames"
115115
});
116116
```
117117

@@ -131,7 +131,7 @@ Resolver functions should either return an absolute path or a falsey value. They
131131
new Processor({
132132
resolvers : [
133133
(src, file, resolve) => ...,
134-
require("modular-css-resolvepaths")(
134+
require("@modular-css/path-resolver")(
135135
"./some/other/path"
136136
)
137137
]

docs/browserify.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Browserify
22

3-
`modular-cssify` provides a browserify plugin that exposes `modular-css` functionality. It can also be combined with the `factor-bundle` plugin to output a common CSS file as well as bundle-specific CSS files.
3+
`@modular-css/browserify` provides a browserify plugin that exposes `modular-css` functionality. It can also be combined with the `factor-bundle` plugin to output a common CSS file as well as bundle-specific CSS files.
44

5-
The `modular-cssify` plugin will use the `basedir` passed to browserify as it's `cwd` parameter.
5+
The `@modular-css/browserify` plugin will use the `basedir` passed to browserify as it's `cwd` parameter.
66

77
## Options
88

@@ -21,7 +21,7 @@ All other options are passed to the underlying `Processor` instance, see [Option
2121
## CLI
2222

2323
```
24-
$ browserify -p [ modular-cssify --css "./style.css" ] entry.js
24+
$ browserify -p [ @modular-css/browserify --css "./style.css" ] entry.js
2525
```
2626

2727
## API
@@ -32,22 +32,22 @@ var browserify = require("browserify"),
3232

3333
build = browserify("./entry.js");
3434

35-
build.plugin("modular-cssify", {
35+
build.plugin("@modular-css/browserify", {
3636
css : "./style.css",
3737
});
3838
```
3939

4040
## `factor-bundle`
4141

42-
The `modular-cssify` is fully `factor-bundle` aware and will output correctly-partitioned CSS bundles to match the JS bundles created by `factor-bundle`.
42+
The `@modular-css/browserify` is fully `factor-bundle` aware and will output correctly-partitioned CSS bundles to match the JS bundles created by `factor-bundle`.
4343

44-
**WARNING**: Due to how `factor-bundle` works the `modular-cssify` plugin must be applied to the Browserify object **before** `factor-bundle`.
44+
**WARNING**: Due to how `factor-bundle` works the `@modular-css/browserify` plugin must be applied to the Browserify object **before** `factor-bundle`.
4545

4646
### CLI
4747

4848
```
4949
$ browserify home.js account.js \
50-
-p [ modular-cssify --css gen/common.css ] \
50+
-p [ @modular-css/browserify --css gen/common.css ] \
5151
-p [ factor-bundle -o gen/home.js -o gen/account.js ] \
5252
-o bundle/common.js
5353
```
@@ -61,7 +61,7 @@ var build = browserify([
6161
]);
6262

6363
// NOTE modular-css applied before factor-bundle, it won't work otherwise!
64-
build.plugin("modular-cssify", {
64+
build.plugin("@modular-css/browserify", {
6565
css : "./gen/common.css"
6666
});
6767

docs/cli.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Installation
44

55
```bash
6-
$ npm i modular-css-cli
6+
$ npm i @modular-css/cli
77
```
88

99
## Usage

docs/glob.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ If you don't care about the dependency tree from your code you can also use the
55
## Usage
66

77
```js
8-
var glob = require("modular-css-glob");
8+
var glob = require("@modular-css/glob");
99

1010
glob({
1111
search : [

docs/namer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# modular-css-namer
1+
# @modular-css/shortnames
22

33
A [`namer`](./api.md#namer) function to provide tiny classnames for production builds.
44

docs/paths.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
modular-css-paths [![NPM Version](https://img.shields.io/npm/v/modular-css-paths.svg)](https://www.npmjs.com/package/modular-css-paths) [![NPM License](https://img.shields.io/npm/l/modular-css-paths.svg)](https://www.npmjs.com/package/modular-css-paths) [![NPM Downloads](https://img.shields.io/npm/dm/modular-css-paths.svg)](https://www.npmjs.com/package/modular-css-paths)
1+
@modular-css/path-resolver [![NPM Version](https://img.shields.io/npm/v/@modular-css/path-resolver.svg)](https://www.npmjs.com/package/@modular-css/path-resolver) [![NPM License](https://img.shields.io/npm/l/@modular-css/path-resolver.svg)](https://www.npmjs.com/package/@modular-css/path-resolver) [![NPM Downloads](https://img.shields.io/npm/dm/@modular-css/path-resolver.svg)](https://www.npmjs.com/package/@modular-css/path-resolver)
22
===========
33

44
A resolver for `modular-css` that will let you resolve file references against arbitrary paths. Useful to avoid code like
@@ -11,15 +11,15 @@ which is annoying to write, annoying to read, and also super-brittle.
1111

1212
## Install
1313

14-
`$ npm i modular-css-paths`
14+
`$ npm i @modular-css/path-resolver`
1515

1616
## Usage
1717

1818
Pass as part of the `resolvers` array in the `modular-css` options (via JS API/Rollup/Browserify/WebPack/etc). When `modular-css` is trying to resolve `@value` or `composes` file references it'll use the default node resolution algorithm against whichever paths you specified.
1919

2020
```js
21-
var Processor = require("modular-css-core"),
22-
paths = require("modular-css-paths")
21+
var Processor = require("@modular-css/processor"),
22+
paths = require("@modular-css/path-resolver")
2323

2424
processor = new Processor({
2525
resolvers : [

docs/rollup.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# modular-css-rollup
1+
# @modular-css/rollup
22

33
Rollup support for [`modular-css`](https://github.com/tivac/modular-css).
44

55
## Install
66

7-
`$ npm i modular-css-rollup`
7+
`$ npm i @modular-css/rollup`
88

99
## ⚠️Rollup Version support⚠️
1010

1111
Due to API changes, certain major versions of this plugin will require a specific minimum rollup version.
1212

13-
- `modular-css-rollup@11` requires `rollup@0.60.0`
14-
- `modular-css-rollup@15` requires `rollup@0.65.0`
13+
- `@modular-css/rollup@11` requires `rollup@0.60.0`
14+
- `@modular-css/rollup@15` requires `rollup@0.65.0`
1515

1616
## Usage
1717

@@ -21,15 +21,15 @@ Due to API changes, certain major versions of this plugin will require a specifi
2121
const bundle = await rollup({
2222
input : "./index.js",
2323
plugins : [
24-
require("modular-css-rollup")()
24+
require("@modular-css/rollup")()
2525
]
2626
});
2727
```
2828

2929
### Config file
3030

3131
```js
32-
import css from "modular-css-rollup";
32+
import css from "@modular-css/rollup";
3333

3434
export default {
3535
input : "./index.js",

docs/svelte.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Svelte
22

3-
`modular-css-svelte` provides a [svelte preprocessor](https://svelte.technology/guide#preprocessing) that can convert inline `<style>` or external `<link>` tags using `modular-css` and will also staticly replace any css references it can find for maximum speed.
3+
`@modular-css/svelte` provides a [svelte preprocessor](https://svelte.technology/guide#preprocessing) that can convert inline `<style>` or external `<link>` tags using `modular-css` and will also staticly replace any css references it can find for maximum speed.
44

55
### Options
66

@@ -13,7 +13,7 @@ All options are passed to the underlying `Processor` instance, see [Options](api
1313
```js
1414
const filename = "./Component.html";
1515

16-
const { processor, preprocess } = require("modular-css-svelte")({
16+
const { processor, preprocess } = require("@modular-css/svelte")({
1717
// Processor options
1818
});
1919

@@ -27,14 +27,14 @@ const result = processor.output();
2727
fs.writeFileSync("./dist/bundle.css", result.css);
2828
```
2929

30-
### `modular-css-rollup`
30+
### `@modular-css/rollup`
3131

3232
#### API
3333

3434
```js
3535
const rollup = require("rollup").rollup;
3636

37-
const { preprocess, processor } = require("modular-css-svelte")({
37+
const { preprocess, processor } = require("@modular-css/svelte")({
3838
// Processor options
3939
});
4040

@@ -46,7 +46,7 @@ const bundle = await rollup({
4646
preprocess,
4747
}),
4848

49-
require("modular-css-rollup")({
49+
require("@modular-css/rollup")({
5050
processor,
5151

5252
common : "common.css",
@@ -64,7 +64,7 @@ bundle.write({
6464
#### `rollup.config.js`
6565

6666
```js
67-
const { preprocess, processor } = require("modular-css-svelte")({
67+
const { preprocess, processor } = require("@modular-css/svelte")({
6868
// Processor options
6969
});
7070

@@ -81,7 +81,7 @@ module.exports = {
8181
preprocess,
8282
}),
8383

84-
require("modular-css-rollup")({
84+
require("@modular-css/rollup")({
8585
processor,
8686

8787
common : "common.css",

docs/webpack.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You will need to use **both** in tandem for things to work!
1212
// webpack.config.js
1313
var path = require("path"),
1414

15-
CSSPlugin = require("modular-css-webpack/plugin");
15+
CSSPlugin = require("@modular-css/webpack/plugin");
1616

1717
module.exports = {
1818
entry : "./input.js",
@@ -24,14 +24,14 @@ module.exports = {
2424
rules : [
2525
{
2626
test : /\.css$/,
27-
use : "modular-css-webpack/loader"
27+
use : "@modular-css/webpack/loader"
2828
},
2929

3030
// Or with loader options
3131
{
3232
test : /\.css$/,
3333
use : {
34-
loader : "modular-css-webpack/loader",
34+
loader : "@modular-css/webpack/loader",
3535
options : {
3636
namedExports : false
3737
}

jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
coveragePathIgnorePatterns : [
1212
"/node_modules/",
1313
"/parsers/",
14-
"/test-utils/",
14+
"/@modular-css/test-utils/",
1515
],
1616

1717
watchPathIgnorePatterns : [

0 commit comments

Comments
 (0)