Skip to content

Commit 8ad37e6

Browse files
authored
Merge pull request #12 from CoderAjay/development
Development
2 parents 1b39d22 + b520d4d commit 8ad37e6

File tree

4 files changed

+89
-16
lines changed

4 files changed

+89
-16
lines changed

.gitignore

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
1-
node_modules/
2-
node_modules/*
3-
typings/
4-
typings/*
1+
# compiled output
2+
/bundles
3+
/dist
4+
/tmp
5+
/.tmp
56

6-
.DS_Store
7-
.idea/modules.xml
7+
# dependencies
8+
/node_modules
9+
/bower_components
810

9-
.idea/ng2Draggable.iml
11+
# IDEs and editors
12+
/.idea
13+
/.vscode
14+
.project
15+
.classpath
16+
.c9/
17+
*.launch
18+
.settings/
1019

11-
.idea/vcs.xml
20+
# misc
21+
/.sass-cache
22+
/connect.lock
23+
/coverage/*
24+
/libpeerconnection.log
25+
npm-debug.log
26+
testem.log
27+
/typings
1228

13-
.idea/workspace.xml
14-
.temp
15-
.vscode
29+
# e2e
30+
/e2e/*.js
31+
/e2e/*.map
1632

17-
dist/*
18-
**/*.js
19-
**/*.js.map
20-
**/*.d.ts
33+
#System Files
34+
.DS_Store
35+
Thumbs.db

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Ajay Singh
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

make.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
var path = require('path');
2+
var Builder = require('systemjs-builder');
3+
var name = 'draggable.module';
4+
5+
var builder = new Builder();
6+
var config = {
7+
baseURL: './dist',
8+
transpiler: 'typescript',
9+
typescriptOptions: {
10+
module: 'cjs'
11+
},
12+
map: {
13+
typescript: path.resolve('./node_modules/typescript/lib/typescript.js'),
14+
'@angular': path.resolve('./node_modules/@angular'),
15+
rxjs: path.resolve('./node_modules/rxjs')
16+
},
17+
paths:{
18+
'*':'*.js',
19+
'utils/*':'utils/*.js',
20+
'node_modules/*': './node_modules/*'
21+
},
22+
meta: {
23+
'./node_modules/@angular/*': { build: false },
24+
'./node_modules/rxjs/*': { build: false }
25+
},
26+
};
27+
28+
builder.config(config);
29+
30+
builder
31+
.bundle(name, path.resolve(__dirname, './bundles/', name + '.js'))
32+
.then(function() {
33+
console.log('Build complete.');
34+
})
35+
.catch(function(err) {
36+
console.log('Error', err);
37+
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng2-draggable",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Angular2 directive draggable.",
55
"main": "dist/draggable.module.js",
66
"typings": "dist/draggable.module.d.ts",

0 commit comments

Comments
 (0)