Skip to content

Commit bf2279c

Browse files
committed
chore: formatting
1 parent 30aa859 commit bf2279c

File tree

19 files changed

+135
-137
lines changed

19 files changed

+135
-137
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
const webpack = require('@nativescript/webpack');
1+
const webpack = require('@nativescript/webpack')
22

33
module.exports = (env) => {
4-
webpack.init(env);
5-
4+
webpack.init(env)
5+
66
webpack.chainWebpack((config) => {
77
config.devServer.hotOnly(true)
88
config.devServer.hot(true)
9-
});
9+
})
1010

11-
return webpack.resolveConfig();
12-
};
11+
return webpack.resolveConfig()
12+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
@tailwind base;
22
@tailwind components;
3-
@tailwind utilities;
3+
@tailwind utilities;
Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
/** @type {import('tailwindcss').Config} */
22
module.exports = {
3-
content: ['./src/**/*.{css,xml,html,vue,svelte,ts,tsx}'],
4-
// use the .ns-dark class to control dark mode (applied by NativeScript) - since 'media' (default) is not supported.
5-
darkMode: ['class', '.ns-dark'],
6-
theme: {
7-
extend: {},
8-
},
9-
plugins: [],
10-
corePlugins: {
11-
preflight: false, // disables browser-specific resets
12-
},
13-
};
14-
15-
3+
content: ['./src/**/*.{css,xml,html,vue,svelte,ts,tsx}'],
4+
// use the .ns-dark class to control dark mode (applied by NativeScript) - since 'media' (default) is not supported.
5+
darkMode: ['class', '.ns-dark'],
6+
theme: {
7+
extend: {},
8+
},
9+
plugins: [],
10+
corePlugins: {
11+
preflight: false, // disables browser-specific resets
12+
},
13+
}

packages/template-blank-solid-vision/tsconfig.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616
"@/*": ["src/*"]
1717
},
1818
"allowJs": true,
19-
"types": [
20-
"node",
21-
"@nativescript-dom/core-types",
22-
"@nativescript-dom/solidjs-types"
23-
],
19+
"types": ["node", "@nativescript-dom/core-types", "@nativescript-dom/solidjs-types"],
2420
"allowSyntheticDefaultImports": true,
2521
"esModuleInterop": true,
2622
"experimentalDecorators": true,
@@ -32,4 +28,4 @@
3228
},
3329
"include": ["src"],
3430
"exclude": ["node_modules", "platforms"]
35-
}
31+
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
const webpack = require("@nativescript/webpack");
1+
const webpack = require('@nativescript/webpack')
22
module.exports = (env) => {
3-
webpack.init(env);
3+
webpack.init(env)
44
webpack.chainWebpack((config) => {
5-
config.devServer.hotOnly(true);
6-
config.devServer.hot(true);
7-
});
8-
return webpack.resolveConfig();
9-
};
5+
config.devServer.hotOnly(true)
6+
config.devServer.hot(true)
7+
})
8+
return webpack.resolveConfig()
9+
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
const webpack = require('@nativescript/webpack');
1+
const webpack = require('@nativescript/webpack')
22

33
module.exports = (env) => {
4-
webpack.init(env);
5-
4+
webpack.init(env)
5+
66
webpack.chainWebpack((config) => {
77
config.devServer.hotOnly(true)
88
config.devServer.hot(true)
9-
});
9+
})
1010

11-
return webpack.resolveConfig();
12-
};
11+
return webpack.resolveConfig()
12+
}

packages/template-blank-svelte-vision/src/app.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@
1212
font-family: 'Font Awesome 5 Free', 'fa-regular-400';
1313
font-weight: 400;
1414
}
15-

packages/template-blank-svelte-vision/svelte.config.js

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,30 @@ const svelteNativePreprocessor = require('@nativescript-community/svelte-native-
44
// this can be called either through svelte-loader where we want either __ANDROID__ or __IOS__ to be defined but not both
55
// or through svelte-check where we want both so everything is checked
66
const webpack_env = process.env['NATIVESCRIPT_WEBPACK_ENV']
7-
? JSON.parse(process.env['NATIVESCRIPT_WEBPACK_ENV'])
8-
: {
9-
android: true,
10-
ios: true
11-
};
7+
? JSON.parse(process.env['NATIVESCRIPT_WEBPACK_ENV'])
8+
: {
9+
android: true,
10+
ios: true,
11+
}
1212
module.exports = {
1313
compilerOptions: {
14-
namespace: "foreign"
14+
namespace: 'foreign',
1515
},
16-
preprocess: [ sveltePreprocess({
17-
replace: [
18-
[/__ANDROID__/g, !!webpack_env.android],
19-
[/__IOS__/g, !!webpack_env.ios]
20-
],
21-
typescript: {
22-
compilerOptions: {
23-
verbatimModuleSyntax: true,
24-
target: 'es2020'
25-
}
26-
}
27-
}),
28-
// if you want bind:text="{email}" to be transformed to text="{email}" on:textChanged="{e => email = e.value}"
29-
// enable svelteNativePreprocessor. Keep in mind that it is pretty slow
30-
/* svelteNativePreprocessor() */ ]
31-
}
16+
preprocess: [
17+
sveltePreprocess({
18+
replace: [
19+
[/__ANDROID__/g, !!webpack_env.android],
20+
[/__IOS__/g, !!webpack_env.ios],
21+
],
22+
typescript: {
23+
compilerOptions: {
24+
verbatimModuleSyntax: true,
25+
target: 'es2020',
26+
},
27+
},
28+
}),
29+
// if you want bind:text="{email}" to be transformed to text="{email}" on:textChanged="{e => email = e.value}"
30+
// enable svelteNativePreprocessor. Keep in mind that it is pretty slow
31+
/* svelteNativePreprocessor() */
32+
],
33+
}

packages/template-blank-svelte/app/app.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-

2-
.fab {
1+
.fab {
32
font-family: 'Font Awesome 5 Brands', 'fa-brands-400';
43
font-weight: 400;
54
}
@@ -13,4 +12,3 @@
1312
font-family: 'Font Awesome 5 Free', 'fa-regular-400';
1413
font-weight: 400;
1514
}
16-

packages/template-blank-svelte/svelte.config.js

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,30 @@ const svelteNativePreprocessor = require('@nativescript-community/svelte-native-
44
// this can be called either through svelte-loader where we want either __ANDROID__ or __IOS__ to be defined but not both
55
// or through svelte-check where we want both so everything is checked
66
const webpack_env = process.env['NATIVESCRIPT_WEBPACK_ENV']
7-
? JSON.parse(process.env['NATIVESCRIPT_WEBPACK_ENV'])
8-
: {
9-
android: true,
10-
ios: true
11-
};
7+
? JSON.parse(process.env['NATIVESCRIPT_WEBPACK_ENV'])
8+
: {
9+
android: true,
10+
ios: true,
11+
}
1212
module.exports = {
1313
compilerOptions: {
14-
namespace: "foreign"
14+
namespace: 'foreign',
1515
},
16-
preprocess: [ sveltePreprocess({
17-
replace: [
18-
[/__ANDROID__/g, !!webpack_env.android],
19-
[/__IOS__/g, !!webpack_env.ios]
20-
],
21-
typescript: {
22-
compilerOptions: {
23-
verbatimModuleSyntax: true,
24-
target: 'es2020'
25-
}
26-
}
27-
}),
28-
// if you want bind:text="{email}" to be transformed to text="{email}" on:textChanged="{e => email = e.value}"
29-
// enable svelteNativePreprocessor. Keep in mind that it is pretty slow
30-
/* svelteNativePreprocessor() */ ]
31-
}
16+
preprocess: [
17+
sveltePreprocess({
18+
replace: [
19+
[/__ANDROID__/g, !!webpack_env.android],
20+
[/__IOS__/g, !!webpack_env.ios],
21+
],
22+
typescript: {
23+
compilerOptions: {
24+
verbatimModuleSyntax: true,
25+
target: 'es2020',
26+
},
27+
},
28+
}),
29+
// if you want bind:text="{email}" to be transformed to text="{email}" on:textChanged="{e => email = e.value}"
30+
// enable svelteNativePreprocessor. Keep in mind that it is pretty slow
31+
/* svelteNativePreprocessor() */
32+
],
33+
}

0 commit comments

Comments
 (0)