Skip to content

Commit 634da81

Browse files
committed
feat: generate type declarations
1 parent 325cc64 commit 634da81

File tree

4 files changed

+54
-2
lines changed

4 files changed

+54
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ bower_components/
3131

3232
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
3333
.grunt
34+
dist/src
3435

3536
# Grunt temporary storage
3637
temp/

.npmignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# OS or Editor folders
2+
._*
3+
.cache
4+
.DS_Store
5+
.idea
6+
.vs
7+
.vscode
8+
.project
9+
.projectile
10+
.settings
11+
.tmproj
12+
*.esproj
13+
*.sublime-project
14+
*.sublime-workspace
15+
nbproject
16+
Thumbs.db
17+
18+
# Node logs
19+
logs
20+
*.log
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
# grunt-contrib-sass cache
26+
.sass-cache/
27+
28+
# Dependency directories
29+
node_modules/
30+
bower_components/
31+
32+
# Grunt temporary storage
33+
temp/
34+
35+
# Jasmine SpecRunner
36+
_SpecRunner.html
37+
38+
# Ignore compiled files
39+
css/ghpages-materialize.css
40+
bin/
41+
42+
# Ignore lock
43+
yarn.lock
44+
45+
# Compiled docs
46+
/docs/*.html
47+
!/docs/fab-toolbar-demo.html

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"main": "dist/js/materialize.js",
88
"style": "dist/css/materialize.css",
99
"sass": "sass/materialize.scss",
10+
"typings": "dist/src/global.d.ts",
1011
"license": "MIT",
1112
"repository": {
1213
"type": "git",

tsconfig.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
//"outDir": "./bin/",
3+
"outDir": "./dist",
44
"emitDecoratorMetadata": true,
55
"experimentalDecorators": true,
66
"module": "CommonJS",
@@ -9,7 +9,10 @@
99
"target": "ES6",
1010
"esModuleInterop": true,
1111
"resolveJsonModule": true,
12-
"sourceMap": true
12+
"sourceMap": true,
13+
"composite": true,
14+
"declaration": true,
15+
"declarationMap": true,
1316
},
1417
"include": [
1518
"test",

0 commit comments

Comments
 (0)