diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 6e87a00..0000000 --- a/.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Editor configuration, see http://editorconfig.org -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -insert_final_newline = true -trim_trailing_whitespace = true - -[*.md] -max_line_length = off -trim_trailing_whitespace = false diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index e4e4ed0..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "root": true, - "ignorePatterns": ["**/*"], - "plugins": ["@nx"], - "overrides": [ - { - "files": "*.json", - "parser": "jsonc-eslint-parser", - "rules": {} - }, - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": { - "@nx/enforce-module-boundaries": [ - "error", - { - "enforceBuildableLibDependency": true, - "allow": [], - "depConstraints": [ - { - "sourceTag": "*", - "onlyDependOnLibsWithTags": ["*"] - } - ] - } - ] - } - }, - { - "files": ["*.ts", "*.tsx"], - "extends": ["plugin:@nx/typescript"], - "rules": { - "@typescript-eslint/no-extra-semi": "error", - "no-extra-semi": "off" - } - }, - { - "files": ["*.js", "*.jsx"], - "extends": ["plugin:@nx/javascript"], - "rules": { - "@typescript-eslint/no-extra-semi": "error", - "no-extra-semi": "off" - } - } - ] -} diff --git a/.github/workflows/extract-templates.yml b/.github/workflows/extract-templates.yml deleted file mode 100644 index 148df3f..0000000 --- a/.github/workflows/extract-templates.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Extract Templates - -on: - push: - branches: [ main ] - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - starter: ['angular', 'javascript', 'react', 'solid', 'svelte', 'typescript', 'vue'] - - steps: - - uses: actions/checkout@v3 - - run: | - # create output directory - mkdir dist/ - - # copy template to output directory - cp -r apps/nativescript-starter-${{ matrix.starter }} dist/ - - # enter template directory - cd dist/nativescript-starter-${{ matrix.starter }} - - # copy gitignore from template - cp ../../tools/assets/dot.gitignore .gitignore - - # remove nx project config - rm project.json - - # replace App_Resources path in the config - sed -i 's/\.\.\/\.\.\/tools\/assets\/App_Resources/App_Resources/g' nativescript.config.ts - - # print all files - ls -al . - - - name: Deploy - uses: s0/git-publish-subdir-action@develop - env: - REPO: self - BRANCH: ${{ matrix.starter }} - MESSAGE: "chore(update): {target-branch} to {sha}" - FOLDER: dist/nativescript-starter-${{ matrix.starter }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 3a538db..1cb1231 100644 --- a/.gitignore +++ b/.gitignore @@ -1,51 +1,28 @@ -# See http://help.github.com/ignore-files/ for more about ignoring files. - -# App assets not part of the templates -apps/**/App_Resources -apps/**/node_modules -apps/**/platforms -apps/**/hooks -apps/**/package-lock.json -apps/**/yarn.lock - -# compiled output -/dist -/tmp -/out-tsc - -# dependencies -node_modules - -# IDEs and editors -/.idea +# NativeScript +hooks/ +node_modules/ +platforms/ + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# General +.DS_Store +.AppleDouble +.LSOverride +.idea +.cloud .project -.classpath -.c9/ -*.launch -.settings/ -*.sublime-workspace +tmp/ +typings/ -# IDE - VSCode +# Visual Studio Code .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json - -# misc -/.sass-cache -/connect.lock -/coverage -/libpeerconnection.log -npm-debug.log -yarn-error.log -testem.log -/typings -package-lock.json - -# System Files -.DS_Store -Thumbs.db - -.nx/cache -.nx/workspace-data \ No newline at end of file diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index daffe92..0000000 --- a/.prettierignore +++ /dev/null @@ -1,7 +0,0 @@ -# Add files here to ignore them from prettier formatting - -/dist -/coverage - -/.nx/cache -/.nx/workspace-data \ No newline at end of file diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 544138b..0000000 --- a/.prettierrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "singleQuote": true -} diff --git a/apps/nativescript-starter-angular/.stackblitzrc b/.stackblitzrc similarity index 100% rename from apps/nativescript-starter-angular/.stackblitzrc rename to .stackblitzrc diff --git a/.vscode/extensions.json b/.vscode/extensions.json deleted file mode 100644 index 97e81d4..0000000 --- a/.vscode/extensions.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "recommendations": [ - "nrwl.angular-console", - "esbenp.prettier-vscode", - "firsttris.vscode-jest-runner" - ] -} diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 1471fb9..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "eslint.validate": ["json"] -} diff --git a/README.md b/README.md deleted file mode 100644 index 8345c49..0000000 --- a/README.md +++ /dev/null @@ -1,43 +0,0 @@ - - -# StackBlitz Templates - -The templates are managed on the `main` branch only - the individual flavor branches are automatically updated when pushing to `main` - -> **Warning:** Do not edit the individual flavor branches manually!. - -# Templates - -- TypeScript: https://new.nativescript.org -- Angular: https://new.nativescript.org/angular -- JavaScript: https://new.nativescript.org/javascript -- React: https://new.nativescript.org/react -- Svelte: https://new.nativescript.org/svelte -- TypeScript: https://new.nativescript.org/typescript -- Vue: https://new.nativescript.org/vue - -- https://nativescript.new -- https://nativescript.new/angular -- https://nativescript.new/javascript -- https://nativescript.new/react -- https://nativescript.new/svelte -- https://nativescript.new/typescript -- https://nativescript.new/vue - -
- - -Full URLS (used in redirects) - - -``` -/ /typescript -/angular https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/angular?file=src%2Fapp%2Fitem%2Fitems.component.html&title=NativeScript%20Starter%20Angular -/javascript https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/javascript?file=app%2Fmain-page.xml&title=NativeScript%20Starter%20JavaScript -/react https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/react?file=src%2Fcomponents%2FHomeScreen.tsx&title=NativeScript%20Starter%20React -/svelte https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/svelte?file=app%2Fcomponents%2FHome.svelte&title=NativeScript%20Starter%20Svelte -/typescript https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/typescript?file=app%2Fmain-page.xml&title=NativeScript%20Starter%20TypeScript -/vue https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/vue?file=app%2Fcomponents%2FHome.vue&title=NativeScript%20Starter%20Vue -``` - -
diff --git a/apps/.gitkeep b/apps/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/apps/nativescript-starter-angular/nativescript.config.ts b/apps/nativescript-starter-angular/nativescript.config.ts deleted file mode 100644 index f2ac392..0000000 --- a/apps/nativescript-starter-angular/nativescript.config.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NativeScriptConfig } from '@nativescript/core'; - -export default { - id: 'org.nativescript.app', - appPath: 'src', - appResourcesPath: '../../tools/assets/App_Resources', - android: { - v8Flags: '--expose_gc', - markingMode: 'none', - }, -} as NativeScriptConfig; diff --git a/apps/nativescript-starter-angular/package.json b/apps/nativescript-starter-angular/package.json deleted file mode 100644 index 812eefd..0000000 --- a/apps/nativescript-starter-angular/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "stackblitz-nativescript-angular", - "main": "./src/main.ts", - "version": "1.0.0", - "private": true, - "dependencies": { - "@angular/animations": "~20.0.0", - "@angular/common": "~20.0.0", - "@angular/compiler": "~20.0.0", - "@angular/core": "~20.0.0", - "@angular/forms": "~20.0.0", - "@angular/platform-browser": "~20.0.0", - "@angular/platform-browser-dynamic": "~20.0.0", - "@angular/router": "~20.0.0", - "@nativescript/angular": "^20.0.0", - "@nativescript/core": "~8.9.0", - "rxjs": "~7.8.0", - "zone.js": "~0.15.0" - }, - "devDependencies": { - "@angular-devkit/build-angular": "~20.0.0", - "@angular/compiler-cli": "~20.0.0", - "@nativescript/preview-cli": "^1.0.14", - "@nativescript/stackblitz": "^0.0.8", - "@nativescript/tailwind": "^2.1.0", - "@nativescript/types": "~8.9.0", - "@nativescript/webpack": "~5.0.27", - "@ngtools/webpack": "~20.0.0", - "tailwindcss": "~3.4.0", - "typescript": "~5.8.0" - } -} diff --git a/apps/nativescript-starter-angular/project.json b/apps/nativescript-starter-angular/project.json deleted file mode 100644 index e5c849d..0000000 --- a/apps/nativescript-starter-angular/project.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "nativescript-starter-angular", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "apps/nativescript-starter-angular/src", - "projectType": "application", - "targets": { - "build": { - "executor": "@nativescript/nx:build", - "options": { - "noHmr": true, - "production": true, - "uglify": true, - "release": true, - "forDevice": true - }, - "configurations": {} - }, - "debug": { - "executor": "@nativescript/nx:debug", - "options": { - "noHmr": true, - "uglify": false, - "release": false, - "forDevice": false, - "prepare": false - }, - "configurations": {} - }, - "clean": { - "executor": "@nativescript/nx:clean", - "options": {} - }, - "lint": { - "executor": "@nx/eslint:lint" - } - } -} \ No newline at end of file diff --git a/apps/nativescript-starter-javascript/.stackblitzrc b/apps/nativescript-starter-javascript/.stackblitzrc deleted file mode 100644 index 0c7b450..0000000 --- a/apps/nativescript-starter-javascript/.stackblitzrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "installDependencies": true, - "compileTrigger": "save", - "startCommand": "setup-nativescript-stackblitz && ns preview" -} diff --git a/apps/nativescript-starter-javascript/app/app-root.xml b/apps/nativescript-starter-javascript/app/app-root.xml deleted file mode 100644 index 54e70d9..0000000 --- a/apps/nativescript-starter-javascript/app/app-root.xml +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/apps/nativescript-starter-javascript/app/app.css b/apps/nativescript-starter-javascript/app/app.css deleted file mode 100644 index bd6213e..0000000 --- a/apps/nativescript-starter-javascript/app/app.css +++ /dev/null @@ -1,3 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; \ No newline at end of file diff --git a/apps/nativescript-starter-javascript/app/app.js b/apps/nativescript-starter-javascript/app/app.js deleted file mode 100644 index a4c5c52..0000000 --- a/apps/nativescript-starter-javascript/app/app.js +++ /dev/null @@ -1,3 +0,0 @@ -import { Application } from '@nativescript/core'; - -Application.run({ moduleName: 'app-root' }); diff --git a/apps/nativescript-starter-javascript/app/main-page.js b/apps/nativescript-starter-javascript/app/main-page.js deleted file mode 100644 index 8624dce..0000000 --- a/apps/nativescript-starter-javascript/app/main-page.js +++ /dev/null @@ -1,6 +0,0 @@ -import { createViewModel } from './main-view-model'; - -export function onNavigatingTo(args) { - const page = args.object; - page.bindingContext = createViewModel(); -} diff --git a/apps/nativescript-starter-javascript/app/main-page.xml b/apps/nativescript-starter-javascript/app/main-page.xml deleted file mode 100644 index 1db3781..0000000 --- a/apps/nativescript-starter-javascript/app/main-page.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - -