-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support angular6, releases: 2.0.0
- Loading branch information
Showing
61 changed files
with
7,319 additions
and
12,394 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,43 @@ | ||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# compiled output | ||
/dist | ||
/tmp | ||
/out-tsc | ||
/__gen_lib | ||
/publish-es5 | ||
/publish-es2015 | ||
/publish | ||
|
||
# dependencies | ||
/node_modules | ||
npm-debug.log | ||
.tmp | ||
|
||
# WebStorm | ||
.idea | ||
.vscode | ||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# ignore build and dist for now | ||
/demo/dist | ||
/dist | ||
/coverage | ||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# ignore inline compiling | ||
/logs | ||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
npm-debug.log | ||
yarn-error.log | ||
testem.log | ||
/typings | ||
|
||
# AoT generated files | ||
factories | ||
# System Files | ||
.DS_Store | ||
Thumbs.db |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"printWidth": 80, | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"extends": { | ||
"stylelint-config-standard", | ||
"./node_modules/prettier-stylelint/config.js" | ||
}, | ||
"rules": { | ||
"comment-empty-line-before": null, | ||
"declaration-empty-line-before": null, | ||
"function-comma-newline-after": null, | ||
"function-name-case": null, | ||
"function-parentheses-newline-inside": null, | ||
"function-max-empty-lines": null, | ||
"function-whitespace-after": null, | ||
"indentation": null, | ||
"number-leading-zero": null, | ||
"number-no-trailing-zeros": null, | ||
"rule-empty-line-before": null, | ||
"selector-combinator-space-after": null, | ||
"selector-list-comma-newline-after": null, | ||
"selector-pseudo-element-colon-notation": null, | ||
"unit-no-unknown": null, | ||
"value-list-max-empty-lines": null, | ||
"selector-type-no-unknown": null, | ||
"selector-pseudo-element-no-unknown": [ | ||
true, | ||
{ | ||
"ignorePseudoElements": [ | ||
"ng-deep" | ||
] | ||
} | ||
], | ||
"no-descending-specificity": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,33 @@ | ||
sudo: required | ||
language: node_js | ||
node_js: | ||
- "8" | ||
- "8.11.0" | ||
|
||
env: | ||
- TASK=test | ||
- TASK=lint | ||
- TASK=build | ||
- TASK=site:build | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- google-chrome | ||
packages: | ||
- google-chrome-stable | ||
- google-chrome-beta | ||
|
||
git: | ||
depth: 1 | ||
|
||
before_install: | ||
- export CHROME_BIN=chromium-browser | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
|
||
script: | ||
- npm run pretest | ||
- npm run test | ||
- npm run $TASK | ||
- | | ||
if [ "$TASK" = "test" ]; then | ||
cat ./coverage/lcov.info | ./node_modules/.bin/codecov | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
MIT License | ||
|
||
Copyright (c) 2017-present 卡色 | ||
Copyright (c) 2018-present 卡色<[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
"version": 1, | ||
"newProjectRoot": "projects", | ||
"projects": { | ||
"ngx-filesaver": { | ||
"root": "", | ||
"sourceRoot": "src", | ||
"projectType": "application", | ||
"architect": { | ||
"build": { | ||
"builder": "@angular-devkit/build-angular:browser", | ||
"options": { | ||
"outputPath": "dist", | ||
"index": "src/index.html", | ||
"main": "src/main.ts", | ||
"tsConfig": "src/tsconfig.json", | ||
"polyfills": "src/polyfills.ts", | ||
"assets": ["src/assets"], | ||
"styles": [], | ||
"scripts": [] | ||
}, | ||
"configurations": { | ||
"production": { | ||
"optimization": true, | ||
"outputHashing": "all", | ||
"sourceMap": false, | ||
"extractCss": true, | ||
"namedChunks": false, | ||
"aot": true, | ||
"extractLicenses": true, | ||
"vendorChunk": false, | ||
"buildOptimizer": true, | ||
"fileReplacements": [ | ||
{ | ||
"replace": "src/environments/environment.ts", | ||
"with": "src/environments/environment.prod.ts" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"serve": { | ||
"builder": "@angular-devkit/build-angular:dev-server", | ||
"options": { | ||
"browserTarget": "ngx-filesaver:build" | ||
}, | ||
"configurations": { | ||
"prod": { | ||
"browserTarget": "ngx-filesaver:build:prod" | ||
} | ||
} | ||
}, | ||
"extract-i18n": { | ||
"builder": "@angular-devkit/build-angular:extract-i18n", | ||
"options": { | ||
"browserTarget": "ngx-filesaver:build" | ||
} | ||
}, | ||
"test": { | ||
"builder": "@angular-devkit/build-angular:karma", | ||
"options": { | ||
"main": "lib/test.ts", | ||
"tsConfig": "lib/tsconfig.spec.json", | ||
"karmaConfig": "karma.conf.js", | ||
"polyfills": "src/polyfills.ts", | ||
"scripts": [], | ||
"styles": [], | ||
"assets": ["src/assets"] | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": [], | ||
"exclude": [] | ||
} | ||
} | ||
} | ||
}, | ||
"ngx-filesaver-e2e": { | ||
"root": "", | ||
"sourceRoot": "", | ||
"projectType": "application", | ||
"architect": { | ||
"e2e": { | ||
"builder": "@angular-devkit/build-angular:protractor", | ||
"options": { | ||
"protractorConfig": "./protractor.conf.js", | ||
"devServerTarget": "ngx-filesaver:serve" | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": [], | ||
"exclude": [] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"defaultProject": "ngx-filesaver", | ||
"schematics": { | ||
"@schematics/angular:component": { | ||
"prefix": "", | ||
"styleext": "css" | ||
}, | ||
"@schematics/angular:directive": { | ||
"prefix": "" | ||
} | ||
} | ||
} |
Oops, something went wrong.