Skip to content

Commit

Permalink
feat(module): update to latest build structure
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed Mar 9, 2017
1 parent 7832eb3 commit e8a9924
Show file tree
Hide file tree
Showing 119 changed files with 1,521 additions and 1,100 deletions.
60 changes: 60 additions & 0 deletions .angular-cli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"project": {
"name": "ng2-handsontable"
},
"apps": [
{
"root": "demo/src",
"outDir": "demo/dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"test": "../../scripts/test.ts",
"tsconfig": "tsconfig.json",
"prefix": "",
"mobile": false,
"styles": [
],
"scripts": [
"../../node_modules/handsontable/dist/handsontable.full.js",
"../../node_modules/chroma-js/chroma.js"
],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
}
],
"addons": [],
"packages": [],
"e2e": {
"protractor": {
"config": "protractor.conf.js"
}
},
"test": {
"karma": {
"config": "karma.conf.js"
}
},
"defaults": {
"styleExt": "css",
"prefixInterfaces": false,
"inline": {
"style": false,
"template": false
},
"spec": {
"class": false,
"component": true,
"directive": true,
"module": false,
"pipe": true,
"service": true
}
}
}
3 changes: 0 additions & 3 deletions .bowerrc

This file was deleted.

198 changes: 0 additions & 198 deletions .eslintrc

This file was deleted.

40 changes: 27 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
/node_modules
/demo/lib
npm-debug.log
/bower_components
yarn.lock

# IDEs
# IDEs and editors
/.idea
/.vscode
.project
.classpath
*.launch
.settings/

# misc
/.sass-cache
/connect.lock
/coverage/*
/libpeerconnection.log
npm-debug.log

# ignore build and dist for now
/build
/dist
/temp
/demo/dist
/demo/temp
/logs

/demo/**/*.js
/demo/**/*.js.map
!/demo/external/**/*.js
/components/**/*.js
/components/**/*.js.map
#System Files
.DS_Store
Thumbs.db

/logs

# AoT generated files
/**/*.metadata.json
/**/*.ngfactory.ts
/demo/e2e/*.js
/demo/e2e/*.map
src/**/*.js
src/**/*.map
scripts/**/*.js
scripts/**/*.map
23 changes: 14 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
language: node_js
node_js:
- "6"
node_js: "7"

#before_install:
# - export CHROME_BIN=chromium-browser
# - export DISPLAY=:99.0
# - sh -e /etc/init.d/xvfb start
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

script:
- npm run lint
- npm run build
- rm -rf node_modules/ng2-handsontable
- npm i ./dist
- npm run test-coverage
- npm run test

#after_success:
# - ./node_modules/.bin/codecov
after_success:
- ./node_modules/.bin/codecov
- npm run test-cross

addons:
# firefox: "latest"
firefox: "latest"
apt:
sources:
- ubuntu-toolchain-r-test
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Valor Software
Copyright (c) 2015-2017 Valor Software

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Native Angular2 directive for [Handsontable](https://github.com/handsontable/han
3. After Handsontable component is downloaded, embed the code into your project.

```html
<script src="bower_components/handsontable/dist/handsontable.full.js"></script>
<link rel="stylesheet" media="screen" href="bower_components/handsontable/dist/handsontable.full.css">
```

Expand Down
Empty file removed components/handsontable/title.md
Empty file.
2 changes: 0 additions & 2 deletions components/index.ts

This file was deleted.

2 changes: 2 additions & 0 deletions demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Created by .ignore support plugin (hsz.mobi)
src/api-doc.json
7 changes: 7 additions & 0 deletions demo/bs-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
"port": 4200,
"server": {
"baseDir": "./demo/dist",
middleware : { 1 : require('compression')()}
}
};
Loading

0 comments on commit e8a9924

Please sign in to comment.