Skip to content

Commit 280ef6f

Browse files
committed
chore: new repo template
1 parent 89b56b6 commit 280ef6f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+19486
-469
lines changed

Diff for: .eslintrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: './tools/.eslintrc.js'
3+
};

Diff for: .gitattributes

-17
This file was deleted.

Diff for: .github/FUNDING.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
github: [farfromrefug]
2-
liberapay: farfromrefuge
3-
patreon: farfromrefuge

Diff for: .github/workflows/release.yml

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
name: 'release'
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_type:
7+
type: choice
8+
default: auto
9+
description: What kind of version upgrade
10+
options:
11+
- auto
12+
- patch
13+
- minor
14+
- major
15+
16+
jobs:
17+
release:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: "0"
24+
submodules: true
25+
26+
- name: setup node
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: lts/*
30+
registry-url: 'https://registry.npmjs.org'
31+
32+
33+
- uses: oNaiPs/secrets-to-env-action@v1
34+
with:
35+
secrets: ${{ toJSON(secrets) }}
36+
37+
38+
- uses: oleksiyrudenko/gha-git-credentials@v2-latest
39+
with:
40+
token: '${{ secrets.GITHUB_TOKEN }}'
41+
name: Martin Guillon
42+
43+
44+
- name: install jq
45+
run: sudo apt install jq
46+
47+
- name: Enable CorePack
48+
run: |
49+
corepack enable
50+
yarn config get globalFolder # the yarn command will ensure the correct yarn version is downloaded and installed
51+
52+
- name: Get yarn cache directory path
53+
id: yarn-cache-dir-path
54+
run: echo "::set-output name=dir::$(yarn config get globalFolder)"
55+
56+
- name: Remove package.json resolutions
57+
run: echo "`jq 'delpaths([["resolutions"]])' package.json`" > package.json
58+
59+
- uses: actions/cache@v4
60+
name: Handle node_modules Cache
61+
id: yarn-node_modules # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
62+
with:
63+
path: node_modules
64+
key: ${{ runner.os }}-yarn-node_modules-${{ hashFiles('**/yarn.lock') }}
65+
restore-keys: |
66+
${{ runner.os }}-node_modules-
67+
68+
- uses: actions/cache@v4
69+
if: steps.yarn-node_modules.outputs.cache-hit != 'true'
70+
name: Handle Yarn cache
71+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
72+
with:
73+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
74+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock') }}
75+
restore-keys: |
76+
${{ runner.os }}-yarn-
77+
78+
- name: Install deps
79+
if: steps.yarn-node_modules.outputs.cache-hit != 'true'
80+
uses: bahmutov/npm-install@v1
81+
with:
82+
install-command: yarn install --silent
83+
env:
84+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
85+
86+
- name: run setup
87+
run: |
88+
npm run setup
89+
90+
- name: "NPM Identity"
91+
env:
92+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
93+
run: |
94+
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
95+
96+
- name: publish auto
97+
if: github.event.inputs.release_type == 'auto'
98+
run: |
99+
npm run publish -- --force-publish --no-verify-access --no-private --no-commit-hooks --yes
100+
env:
101+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
102+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
104+
105+
- name: publish
106+
if: github.event.inputs.release_type != 'auto'
107+
run: |
108+
npm run publish -- --force-publish --no-verify-access --no-private --no-commit-hooks --yes --bump ${{ github.event.inputs.release_type }}
109+
env:
110+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
111+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: .gitignore

+58-70
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,63 @@
1-
# Windows image file caches
2-
Thumbs.db
3-
ehthumbs.db
4-
5-
# Folder config file
6-
Desktop.ini
7-
8-
# Recycle Bin used on file shares
9-
$RECYCLE.BIN/
10-
11-
# Windows Installer files
12-
*.cab
13-
*.msi
14-
*.msm
15-
*.msp
16-
17-
# Windows shortcuts
18-
*.lnk
19-
20-
# =========================
21-
# Operating System Files
22-
# =========================
23-
24-
# OSX
25-
# =========================
1+
# NativeScript
2+
hooks/
3+
node_modules/
4+
platforms
5+
6+
# NativeScript Template
7+
*.js.map
8+
!ngcc.config.js
9+
!webpack.config.js
10+
11+
# Logs
12+
logs
13+
*.log
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*
2617

18+
# General
2719
.DS_Store
2820
.AppleDouble
2921
.LSOverride
30-
31-
# Thumbnails
32-
._*
33-
34-
# Files that might appear on external disk
35-
.Spotlight-V100
36-
.Trashes
37-
38-
# Directories potentially created on remote AFP share
39-
.AppleDB
40-
.AppleDesktop
41-
Network Trash Folder
42-
Temporary Items
43-
.apdisk
44-
45-
bin
46-
obj
47-
.vs
48-
.tscache
49-
*.user
50-
*.js
51-
*.map
52-
!gruntfile.js
53-
node_modules
54-
*.tmp.*
55-
demo/platforms
56-
demo/lib
57-
demo-ng/platforms
58-
demo-ng/lib
59-
demo-ng/**/*.css
60-
!webpack.*.js
61-
report
62-
*.log
63-
/platforms
64-
/package-lock.json
65-
plugin/*.d.ts
66-
/plugin/typings
67-
/plugin/README.md
68-
/pnpm-lock.yaml
69-
*.aar
70-
/demo-vue/platforms
71-
72-
plugin/**/*js.map
73-
plugin/**/*js
22+
.idea
23+
.cloud
7424
.gradle
75-
yarn.lock
25+
.project
26+
.yarn
27+
.cxx
28+
tmp/
29+
30+
!.eslintrc.js
31+
!.prettierrc.js
32+
33+
!e2e/*.js
34+
!detox.config.js
35+
devices.js
36+
37+
*.framework
38+
*.xcframework
39+
**/*.js.map
40+
src/**/*.js
41+
packages/**/*.js
42+
packages/**/*.d.ts
43+
bin
44+
build
45+
Pods
46+
!packages/*/platforms
47+
/packages/**/*.aar
48+
/packages/**/*.framework
49+
/packages/**/*.xcframework
50+
/demo-snippets/**/*.aar
51+
*.xcuserdatad
52+
/packages/README.md
53+
packages/**/*js.map
54+
packages/**/*js
55+
packages/angular
56+
packages/typings
57+
packages/**/angular/*.json
58+
packages/**/*.ngsummary.json
59+
packages/**/*.metadata.json
60+
61+
.vscode/settings.json
62+
63+
/blueprint.md

Diff for: .gitmodules

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[submodule "demo-vue"]
2+
path = demo-vue
3+
url = https://github.com/nativescript-community/plugin-seed-demo-vue.git
4+
[submodule "tools"]
5+
path = tools
6+
url = https://github.com/nativescript-community/plugin-seed-tools.git
7+
[submodule "demo-ng"]
8+
path = demo-ng
9+
url = https://github.com/nativescript-community/plugin-seed-demo-ng.git

Diff for: .npmrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
shamefully-hoist=true
2+
public-hoist-pattern[]=*eslint*
3+
public-hoist-pattern[]=source-map-support
4+
public-hoist-pattern[]=ts-patch
5+
public-hoist-pattern[]=typescript
6+
public-hoist-pattern[]=cpy-cli
7+
strict-peer-dependencies=false
8+
shell-emulator=true
9+
auto-install-peers=false
10+
loglevel=error
11+
engine-strict=true

Diff for: .prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package-lock.json
2+
node_modules/
3+
plugin/
4+
docs/

Diff for: .prettierrc

-7
This file was deleted.

Diff for: .prettierrc.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
printWidth: 200,
3+
semi: true,
4+
tabWidth: 4,
5+
trailingComma: 'none',
6+
singleQuote: true
7+
};

Diff for: .yarnrc.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
compressionLevel: mixed
2+
3+
nmHoistingLimits: workspaces
4+
5+
nodeLinker: node-modules
6+
7+
yarnPath: tools/.yarn/releases/yarn-4.0.1.cjs

Diff for: config.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"readme": true,
3+
"angular": true,
4+
"demos": [
5+
"vue",
6+
"ng"
7+
]
8+
}

Diff for: demo-ng

Submodule demo-ng added at 8258651

0 commit comments

Comments
 (0)