Skip to content

Commit 49a47fe

Browse files
committed
feat(webpack5): initial project files
1 parent 023be8c commit 49a47fe

19 files changed

Lines changed: 143 additions & 3 deletions

File tree

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
/out-tsc
77

88
# dependencies
9-
node_modules
10-
package-lock.json
11-
yarn-lock.json
9+
**/node_modules
10+
**/package-lock.json
11+
**/yarn.lock
1212

1313
# IDEs and editors
1414
/.idea

nx.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
},
4343
"webpack": {
4444
"tags": []
45+
},
46+
"webpack5": {
47+
"tags": []
4548
}
4649
}
4750
}

packages/webpack5/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#

packages/webpack5/package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "@nativescript/webpack",
3+
"version": "4.0.0-dev",
4+
"private": true,
5+
"main": "index.js",
6+
"license": "Apache-2.0",
7+
"scripts": {
8+
"build": "echo todo"
9+
},
10+
"devDependencies": {
11+
"webpack": "^5.4.0"
12+
}
13+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import base from './base';
2+
3+
// todo: add base configuration for angular
4+
export default function (env) {
5+
const config = base(env);
6+
7+
return {};
8+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { Configuration } from 'webpack';
2+
3+
// todo: add base configuration that's shared across all flavors
4+
export default function (env): Configuration {
5+
return {};
6+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export { default as angularConfig } from './angular';
2+
export { default as baseConfig } from './base';
3+
export { default as javascriptConfig } from './javascript';
4+
export { default as reactConfig } from './react';
5+
export { default as svelteConfig } from './svelte';
6+
export { default as typescriptConfig } from './typescript';
7+
export { default as vueConfig } from './vue';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import base from './base';
2+
3+
// todo: add base configuration for core
4+
export default function (env) {
5+
const config = base(env);
6+
7+
return {};
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import base from './base';
2+
3+
// todo: add base configuration for react
4+
export default function (env) {
5+
const config = base(env);
6+
7+
return {};
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import base from './base';
2+
3+
// todo: add base configuration for svelte
4+
export default function (env) {
5+
const config = base(env);
6+
7+
return {};
8+
}

0 commit comments

Comments
 (0)