@nx/remix 16.0.0-beta.0 → 16.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +7 -7
- package/migrations.json +20 -14
- package/package.json +3 -2
- package/src/index.d.ts +11 -0
- package/src/index.js +23 -0
- package/src/index.js.map +1 -1
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +13 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js.map +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017-2023 Narwhal Technologies Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -6,13 +6,13 @@ Nx makes supercharges your builds, and the optional [Nx Cloud](https://nx.app) p
|
|
|
6
6
|
|
|
7
7
|
## Creating new Remix workspace
|
|
8
8
|
|
|
9
|
-
Use `--preset=@
|
|
9
|
+
Use `--preset=@nx/remix` when creating new workspace.
|
|
10
10
|
|
|
11
11
|
e.g.
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
14
|
npx create-nx-workspace@latest acme \
|
|
15
|
-
--preset=@
|
|
15
|
+
--preset=@nx/remix \
|
|
16
16
|
--project=demo
|
|
17
17
|
```
|
|
18
18
|
|
|
@@ -40,22 +40,22 @@ You can add Remix to any existing Nx workspace.
|
|
|
40
40
|
First, install the plugin:
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
npm install --save-dev @
|
|
43
|
+
npm install --save-dev @nx/remix
|
|
44
44
|
|
|
45
45
|
# Or with yarn
|
|
46
|
-
yarn add -D @
|
|
46
|
+
yarn add -D @nx/remix
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
Then, run the setup generator:
|
|
50
50
|
|
|
51
51
|
```bash
|
|
52
|
-
npx nx g @
|
|
52
|
+
npx nx g @nx/remix:setup
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
You can then add your first app and run it:
|
|
56
56
|
|
|
57
57
|
```bash
|
|
58
|
-
npx nx g @
|
|
58
|
+
npx nx g @nx/remix:app demo
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
## Adding new routes
|
|
@@ -76,7 +76,7 @@ Browse to `http://localhost:3000/foo/bar` to see the new route.
|
|
|
76
76
|
The Remix setup leverages npm/yarn/pnpm workspaces and Nx buildable libraries.
|
|
77
77
|
|
|
78
78
|
```bash
|
|
79
|
-
npx nx g @
|
|
79
|
+
npx nx g @nx/remix:lib mylib
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
Import the new library in your app.
|
package/migrations.json
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
+
"generators": {
|
|
3
|
+
"update-tsconfig-and-remix-config-for-1-6-8": {
|
|
4
|
+
"version": "14.5.4",
|
|
5
|
+
"cli": "nx",
|
|
6
|
+
"description": "Update tsconfig.json and tsconfig.json to enable import of workspace libs",
|
|
7
|
+
"factory": "./src/migrations/update-14-5-4/update-tsconfig-and-remix-config-for-1-6-8"
|
|
8
|
+
},
|
|
9
|
+
"update-remix-env-config": {
|
|
10
|
+
"version": "15.8.6",
|
|
11
|
+
"cli": "nx",
|
|
12
|
+
"description": "Update remix.env.d.ts for node types import",
|
|
13
|
+
"factory": "./src/migrations/update-15-8-6/update-remix-env-d"
|
|
14
|
+
},
|
|
15
|
+
"update-16-0-0-add-nx-packages": {
|
|
16
|
+
"cli": "nx",
|
|
17
|
+
"version": "16.0.0-beta.1",
|
|
18
|
+
"description": "Replace @nrwl/remix with @nx/remix",
|
|
19
|
+
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
2
22
|
"schematics": {},
|
|
3
23
|
"packageJsonUpdates": {
|
|
4
24
|
"14.5.4": {
|
|
@@ -101,19 +121,5 @@
|
|
|
101
121
|
"alwaysAddToPackageJson": true
|
|
102
122
|
}
|
|
103
123
|
}
|
|
104
|
-
},
|
|
105
|
-
"generators": {
|
|
106
|
-
"update-tsconfig-and-remix-config-for-1-6-8": {
|
|
107
|
-
"version": "14.5.4",
|
|
108
|
-
"cli": "nx",
|
|
109
|
-
"description": "Update tsconfig.json and tsconfig.json to enable import of workspace libs",
|
|
110
|
-
"factory": "./src/migrations/update-14-5-4/update-tsconfig-and-remix-config-for-1-6-8"
|
|
111
|
-
},
|
|
112
|
-
"update-remix-env-config": {
|
|
113
|
-
"version": "15.8.6",
|
|
114
|
-
"cli": "nx",
|
|
115
|
-
"description": "Update remix.env.d.ts for node types import",
|
|
116
|
-
"factory": "./src/migrations/update-15-8-6/update-remix-env-d"
|
|
117
|
-
}
|
|
118
124
|
}
|
|
119
125
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/remix",
|
|
3
|
-
"version": "16.0.0-beta.
|
|
3
|
+
"version": "16.0.0-beta.1",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"generators": "./generators.json",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@nx/devkit": "^16.0.0",
|
|
8
8
|
"@nx/js": "^16.0.0",
|
|
9
9
|
"@nx/react": "^16.0.0",
|
|
10
|
-
"tslib": "^2.3.1"
|
|
10
|
+
"tslib": "^2.3.1",
|
|
11
|
+
"@nrwl/remix": "*"
|
|
11
12
|
},
|
|
12
13
|
"ng-update": {
|
|
13
14
|
"requirements": {},
|
package/src/index.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import actionGenerator from './generators/action/action.impl';
|
|
2
|
+
import applicationGenerator from './generators/application/application.impl';
|
|
3
|
+
import cypressGenerator from './generators/cypress/cypress.impl';
|
|
4
|
+
import libraryGenerator from './generators/library/library.impl';
|
|
5
|
+
import loaderGenerator from './generators/loader/loader.impl';
|
|
6
|
+
import metaGenerator from './generators/meta/meta.impl';
|
|
7
|
+
import presetGenerator from './generators/preset/preset.impl';
|
|
8
|
+
import resourceRouteGenerator from './generators/resource-route/resource-route.impl';
|
|
9
|
+
import routerGenerator from './generators/route/route.impl';
|
|
10
|
+
import styleGenerator from './generators/style/style.impl';
|
|
11
|
+
export { actionGenerator, applicationGenerator, cypressGenerator, libraryGenerator, loaderGenerator, metaGenerator, presetGenerator, resourceRouteGenerator, routerGenerator, styleGenerator, };
|
package/src/index.js
CHANGED
|
@@ -1 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.styleGenerator = exports.routerGenerator = exports.resourceRouteGenerator = exports.presetGenerator = exports.metaGenerator = exports.loaderGenerator = exports.libraryGenerator = exports.cypressGenerator = exports.applicationGenerator = exports.actionGenerator = void 0;
|
|
4
|
+
const action_impl_1 = require("./generators/action/action.impl");
|
|
5
|
+
exports.actionGenerator = action_impl_1.default;
|
|
6
|
+
const application_impl_1 = require("./generators/application/application.impl");
|
|
7
|
+
exports.applicationGenerator = application_impl_1.default;
|
|
8
|
+
const cypress_impl_1 = require("./generators/cypress/cypress.impl");
|
|
9
|
+
exports.cypressGenerator = cypress_impl_1.default;
|
|
10
|
+
const library_impl_1 = require("./generators/library/library.impl");
|
|
11
|
+
exports.libraryGenerator = library_impl_1.default;
|
|
12
|
+
const loader_impl_1 = require("./generators/loader/loader.impl");
|
|
13
|
+
exports.loaderGenerator = loader_impl_1.default;
|
|
14
|
+
const meta_impl_1 = require("./generators/meta/meta.impl");
|
|
15
|
+
exports.metaGenerator = meta_impl_1.default;
|
|
16
|
+
const preset_impl_1 = require("./generators/preset/preset.impl");
|
|
17
|
+
exports.presetGenerator = preset_impl_1.default;
|
|
18
|
+
const resource_route_impl_1 = require("./generators/resource-route/resource-route.impl");
|
|
19
|
+
exports.resourceRouteGenerator = resource_route_impl_1.default;
|
|
20
|
+
const route_impl_1 = require("./generators/route/route.impl");
|
|
21
|
+
exports.routerGenerator = route_impl_1.default;
|
|
22
|
+
const style_impl_1 = require("./generators/style/style.impl");
|
|
23
|
+
exports.styleGenerator = style_impl_1.default;
|
|
1
24
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/remix/src/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/remix/src/index.ts"],"names":[],"mappings":";;;AAAA,iEAA8D;AAY5D,0BAZK,qBAAe,CAYL;AAXjB,gFAA6E;AAY3E,+BAZK,0BAAoB,CAYL;AAXtB,oEAAiE;AAY/D,2BAZK,sBAAgB,CAYL;AAXlB,oEAAiE;AAY/D,2BAZK,sBAAgB,CAYL;AAXlB,iEAA8D;AAY5D,0BAZK,qBAAe,CAYL;AAXjB,2DAAwD;AAYtD,wBAZK,mBAAa,CAYL;AAXf,iEAA8D;AAY5D,0BAZK,qBAAe,CAYL;AAXjB,yFAAqF;AAYnF,iCAZK,6BAAsB,CAYL;AAXxB,8DAA4D;AAY1D,0BAZK,oBAAe,CAYL;AAXjB,8DAA2D;AAYzD,yBAZK,oBAAc,CAYL"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const replace_package_1 = require("@nx/devkit/src/utils/replace-package");
|
|
6
|
+
function replacePackage(tree) {
|
|
7
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
yield (0, replace_package_1.replaceNrwlPackageWithNxPackage)(tree, '@nrwl/remix', '@nx/remix');
|
|
9
|
+
yield (0, devkit_1.formatFiles)(tree);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
exports.default = replacePackage;
|
|
13
|
+
//# sourceMappingURL=update-16-0-0-add-nx-packages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-16-0-0-add-nx-packages.js","sourceRoot":"","sources":["../../../../../../packages/remix/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.ts"],"names":[],"mappings":";;;AAAA,uCAA+C;AAC/C,0EAAuF;AAEvF,SAA8B,cAAc,CAAC,IAAU;;QACrD,MAAM,IAAA,iDAA+B,EAAC,IAAI,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;QAExE,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AAJD,iCAIC"}
|