fix(core): update
This commit is contained in:
28
assets/templates/npm/.package.json
Normal file
28
assets/templates/npm/.package.json
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
fileName: package.json
|
||||
---
|
||||
{
|
||||
"name": "{{module.npmPackagename}}",
|
||||
"version": "1.0.1",
|
||||
"private": false,
|
||||
"description": "{{module.description}}",
|
||||
"main": "dist_ts/index.js",
|
||||
"typings": "dist_ts/index.d.ts",
|
||||
"type": "module",
|
||||
"author": "{{module.author}}",
|
||||
"license": "{{module.license}}",
|
||||
"scripts": {
|
||||
"test": "(tstest test/ --web)",
|
||||
"build": "(tsbuild --web --allowimplicitany)",
|
||||
"buildDocs": "(tsdoc)"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@git.zone/tsbuild": "^2.1.25",
|
||||
"@git.zone/tsbundle": "^2.0.5",
|
||||
"@git.zone/tsrun": "^1.2.46",
|
||||
"@git.zone/tstest": "^1.0.44",
|
||||
"@push.rocks/tapbundle": "^5.0.15",
|
||||
"@types/node": "^20.8.7"
|
||||
},
|
||||
"dependencies": {}
|
||||
}
|
24
assets/templates/npm/.smartscaf.yml
Normal file
24
assets/templates/npm/.smartscaf.yml
Normal file
@ -0,0 +1,24 @@
|
||||
defaults:
|
||||
module.name: smartmodule
|
||||
module.description: a smart description
|
||||
module.author: Anonymous
|
||||
module.contact: anonymous
|
||||
module.license: UNLICENSED
|
||||
module.githost: gitlab.com
|
||||
module.npmAccessLevel: private
|
||||
projectType: npm
|
||||
usageInfo: Use TypeScript for best in class intellisense
|
||||
|
||||
dependencies:
|
||||
merge:
|
||||
- ../gitignore
|
||||
- ../ci_default
|
||||
- ../tsconfig_update
|
||||
- ../npmextra
|
||||
- ../vscode
|
||||
- ../readme
|
||||
|
||||
runafter:
|
||||
- pnpm install
|
||||
- gitzone format
|
||||
|
8
assets/templates/npm/test/test.ts
Normal file
8
assets/templates/npm/test/test.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
|
||||
import * as {{module.name}} from '../ts/index.js'
|
||||
|
||||
tap.test('first test', async () => {
|
||||
console.log({{module.name}})
|
||||
})
|
||||
|
||||
tap.start()
|
3
assets/templates/npm/ts/index.ts
Normal file
3
assets/templates/npm/ts/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import * as plugins from './{{module.name}}.plugins.js';
|
||||
|
||||
export let demoExport = 'Hi there! :) This is an exported string';
|
7
assets/templates/npm/ts/some.plugins.ts
Normal file
7
assets/templates/npm/ts/some.plugins.ts
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
fileName: {{module.name}}.plugins.ts
|
||||
---
|
||||
const removeme = {};
|
||||
export {
|
||||
removeme
|
||||
}
|
Reference in New Issue
Block a user