@weave-apps/sdk 0.1.0 → 0.1.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/bin/init.js +17 -10
- package/package.json +1 -1
package/bin/init.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Weave App Initializer
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
6
|
* Creates a new Weave app project with TypeScript setup
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -62,15 +62,22 @@ fs.writeFileSync(
|
|
|
62
62
|
// Create minimal tsconfig.json that extends SDK's config
|
|
63
63
|
// This is needed for IDE support (IntelliSense, type checking, etc.)
|
|
64
64
|
const tsConfig = {
|
|
65
|
-
extends: '@weave/
|
|
66
|
-
compilerOptions: {
|
|
67
|
-
baseUrl: '.',
|
|
68
|
-
paths: {
|
|
69
|
-
'@weave/
|
|
65
|
+
'extends': '@weave-apps/sdk/tsconfig.app.json',
|
|
66
|
+
'compilerOptions': {
|
|
67
|
+
'baseUrl': '.',
|
|
68
|
+
'paths': {
|
|
69
|
+
'@weave-apps/sdk': [
|
|
70
|
+
'node_modules/@weave-apps/sdk/dist'
|
|
71
|
+
]
|
|
70
72
|
}
|
|
71
73
|
},
|
|
72
|
-
include: [
|
|
73
|
-
|
|
74
|
+
'include': [
|
|
75
|
+
'src/**/*'
|
|
76
|
+
],
|
|
77
|
+
'exclude': [
|
|
78
|
+
'node_modules',
|
|
79
|
+
'dist'
|
|
80
|
+
]
|
|
74
81
|
};
|
|
75
82
|
|
|
76
83
|
fs.writeFileSync(
|
|
@@ -236,14 +243,14 @@ console.log(' npm install');
|
|
|
236
243
|
console.log(' npm run build\n');
|
|
237
244
|
|
|
238
245
|
// Helper functions
|
|
239
|
-
function toPascalCase(str) {
|
|
246
|
+
function toPascalCase (str) {
|
|
240
247
|
return str
|
|
241
248
|
.split('-')
|
|
242
249
|
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
|
|
243
250
|
.join('');
|
|
244
251
|
}
|
|
245
252
|
|
|
246
|
-
function toTitleCase(str) {
|
|
253
|
+
function toTitleCase (str) {
|
|
247
254
|
return str
|
|
248
255
|
.split('-')
|
|
249
256
|
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
|