create-absolutejs 0.1.9 → 0.2.0

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.
@@ -1,9 +1,9 @@
1
1
  {
2
+ "endOfLine": "auto",
3
+ "printWidth": 80,
2
4
  "semi": true,
3
- "trailingComma": "none",
4
5
  "singleQuote": true,
5
- "printWidth": 80,
6
6
  "tabWidth": 4,
7
- "endOfLine": "auto",
7
+ "trailingComma": "none",
8
8
  "useTabs": true
9
9
  }
@@ -11,23 +11,6 @@
11
11
  // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
12
 
13
13
  /* Language and Environment */
14
- "target": "ESNext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
15
- // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
- "jsx": "react-jsx" /* Specify what JSX code is generated. */,
17
- // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
18
- // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19
- // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
20
- // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21
- // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
22
- // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
23
- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24
- // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
25
- // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
-
27
- /* Modules */
28
- "module": "ESNext" /* Specify what module code is generated. */,
29
- // "rootDir": "./", /* Specify the root folder within your source files. */
30
- "moduleResolution": "bundler" /* Specify how TypeScript looks up a file from a given module specifier. */,
31
14
  // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
15
  // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
16
  // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
@@ -36,12 +19,10 @@
36
19
  // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
37
20
  // "resolveJsonModule": true, /* Enable importing .json files. */
38
21
  // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
39
-
40
22
  /* JavaScript Support */
41
23
  // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
42
24
  // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
43
25
  // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
44
-
45
26
  /* Emit */
46
27
  // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
47
28
  // "declarationMap": true, /* Create sourcemaps for d.ts files. */
@@ -66,18 +47,24 @@
66
47
  // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
67
48
  // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
68
49
  // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
69
-
70
50
  /* Interop Constraints */
71
51
  // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
72
52
  // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
73
- "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
74
- // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
75
- "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
76
-
77
- /* Type Checking */
78
- "strict": true /* Enable all strict type-checking options. */,
79
- // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
80
- // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
53
+ "esModuleInterop": true, // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
54
+ /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ "forceConsistentCasingInFileNames": true, // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
55
+ /* Ensure that casing is correct in imports. */ "jsx": "react-jsx", // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
56
+ /* Specify what JSX code is generated. */ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
57
+ // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
58
+ // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
59
+ // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
60
+ // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
61
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
62
+ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
63
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
64
+ /* Modules */
65
+ "module": "ESNext", // "rootDir": "./", /* Specify the root folder within your source files. */
66
+ /* Specify what module code is generated. */ "moduleResolution": "bundler", // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
67
+ /* Specify how TypeScript looks up a file from a given module specifier. */ // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
81
68
  // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
82
69
  // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
83
70
  // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
@@ -89,14 +76,23 @@
89
76
  // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
90
77
  // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
91
78
  // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
92
- "noUncheckedIndexedAccess": true /* Add 'undefined' to a type when accessed using an index. */,
93
- // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
94
- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
79
+ "noUncheckedIndexedAccess": true, // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
80
+ /* Add 'undefined' to a type when accessed using an index. */ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
95
81
  // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
96
82
  // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
97
-
98
83
  /* Completeness */
99
84
  // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
100
- "skipLibCheck": true /* Skip type checking all .d.ts files. */
85
+ "skipLibCheck": true /* Type Checking */,
86
+ /* Skip type checking all .d.ts files. */ "strict": true /* Visit https://aka.ms/tsconfig to read more about this file */,
87
+ /* Enable all strict type-checking options. */ /* Projects */
88
+ // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
89
+ // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
90
+ // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
91
+ // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
92
+ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
93
+ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
94
+ /* Language and Environment */
95
+ "target": "ESNext"
96
+ /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ /* Skip type checking all .d.ts files. */
101
97
  }
102
98
  }
package/package.json CHANGED
@@ -1,27 +1,13 @@
1
1
  {
2
- "name": "create-absolutejs",
3
- "description": "A CLI tool to create a new AbsoluteJS project",
4
- "version": "0.1.9",
5
- "license": "CC BY-NC 4.0",
6
2
  "author": "Alex Kahn",
7
- "type": "module",
8
- "main": "dist/index.js",
9
3
  "bin": {
10
4
  "create-absolutejs": "dist/index.js"
11
5
  },
12
- "files": [
13
- "dist",
14
- "dist/templates"
15
- ],
16
- "scripts": {
17
- "build": "rm -rf dist && bun build src/index.ts --target node --outdir dist && cp -R src/templates dist/templates && tsc --emitDeclarationOnly --project tsconfig.json",
18
- "test": "cd absolutejs-project && bun dev",
19
- "format": "prettier --write \"./**/*.{js,jsx,ts,tsx,css,json,mjs,md}\"",
20
- "dev": "rm -rf absolutejs-project && bun run src/index.ts",
21
- "lint": "eslint ./",
22
- "typecheck": "bun run tsc --noEmit",
23
- "release": "bun run format && bun run build && bun publish"
6
+ "dependencies": {
7
+ "@clack/prompts": "0.10.1",
8
+ "picocolors": "1.1.1"
24
9
  },
10
+ "description": "A CLI tool to create a new AbsoluteJS project",
25
11
  "devDependencies": {
26
12
  "@absolutejs/auth": "0.8.0",
27
13
  "@stylistic/eslint-plugin-ts": "4.2.0",
@@ -31,19 +17,34 @@
31
17
  "drizzle-kit": "0.31.1",
32
18
  "drizzle-orm": "0.41.0",
33
19
  "eslint": "9.27.0",
34
- "eslint-plugin-absolute": "0.0.3",
20
+ "eslint-plugin-absolute": "0.1.4",
35
21
  "eslint-plugin-import": "2.31.0",
36
22
  "eslint-plugin-promise": "7.2.1",
37
23
  "eslint-plugin-security": "3.0.1",
38
24
  "prettier": "3.5.3",
25
+ "svelte": "5.34.7",
39
26
  "tailwindcss": "4.1.7",
40
27
  "typescript-eslint": "8.32.0"
41
28
  },
29
+ "files": [
30
+ "dist",
31
+ "dist/templates"
32
+ ],
33
+ "license": "CC BY-NC 4.0",
34
+ "main": "dist/index.js",
35
+ "name": "create-absolutejs",
42
36
  "peerDependencies": {
43
- "typescript": "^5"
37
+ "typescript": "5.8.3"
44
38
  },
45
- "dependencies": {
46
- "@clack/prompts": "0.10.1",
47
- "picocolors": "1.1.1"
48
- }
39
+ "scripts": {
40
+ "build": "rm -rf dist && bun build src/index.ts --target node --outdir dist && cp -R src/templates dist/templates && tsc --emitDeclarationOnly --project tsconfig.json",
41
+ "dev": "rm -rf absolutejs-project && bun run src/index.ts",
42
+ "format": "prettier --write \"./**/*.{js,jsx,ts,tsx,css,json,mjs,md}\"",
43
+ "lint": "eslint ./",
44
+ "release": "bun run format && bun run build && bun publish",
45
+ "test": "cd absolutejs-project && bun dev",
46
+ "typecheck": "bun run tsc --noEmit"
47
+ },
48
+ "type": "module",
49
+ "version": "0.2.0"
49
50
  }
@@ -1,32 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Html Home</title>
5
- <link rel="stylesheet" type="text/css" href="/assets/css/HtmlHome.css">
6
- <link rel="icon" href="/assets/ico/favicon.ico" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1" />
8
- </head>
9
- <body>
10
- <header>
11
- <img id="logo" src="/assets/svg/brand_logo.svg" alt="AbsoluteJS Logo">
12
- <h1 id="greeting"></h1>
13
- </header>
14
- <main>
15
- <p>Welcome to AbsoluteJS, the next generation JavaScript framework. We're glad you're here.</p>
16
- <button id="counter-button">Click me!</button>
17
- <p id="counter">0</p>
18
- <div id="links">
19
- <a href="/react" id="react-link">React</a>
20
- <a href="/vue" id="vue-link">Vue</a>
21
- <a href="/angular" id="angular-link">Angular</a>
22
- <a href="/svelte" id="svelte-link">Svelte</a>
23
- <a href="/ember" id="ember-link">Ember</a>
24
- <a href="/htmx" id="htmx-link">HTMX</a>
25
- </div>
26
- </main>
27
- <footer>
28
- <p id="footer-text"></p>
29
- </footer>
30
- <script src="/html/scripts/typescriptSSRExample.js"></script>
31
- </body>
32
- </html>