-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using returnPress event on html attribute (Angular) #31
- Loading branch information
1 parent
98b0bab
commit c821d41
Showing
41 changed files
with
211 additions
and
539 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
.vscode | ||
*.js | ||
*.log | ||
*.map | ||
*.tgz | ||
!src/angular/*.js | ||
!demo/karma.conf.js | ||
|
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import * as application from 'application'; | ||
application.start({ moduleName: "main-page" }); | ||
application.run({ moduleName: "main-page" }); |
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
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,9 @@ | ||
require("application"); | ||
if (!global["__snapshot"]) { | ||
// In case snapshot generation is enabled these modules will get into the bundle | ||
// but will not be required/evaluated. | ||
// The snapshot webpack plugin will add them to the tns-java-classes.js bundle file. | ||
// This way, they will be evaluated on app start as early as possible. | ||
require("ui/frame"); | ||
require("ui/frame/activity"); | ||
} |
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,3 @@ | ||
// There is a bug in angular: https://github.com/angular/angular-cli/pull/8589/files | ||
// Legendary stuff, its webpack plugin pretty much doesn't work with empty TypeScript files in v1.8.3 | ||
void 0; |
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,10 @@ | ||
// Snapshot the ~/app.css and the theme | ||
const application = require("application"); | ||
require("ui/styling/style-scope"); | ||
const appCssContext = require.context("~/", false, /^\.\/app\.(css|scss|less|sass)$/); | ||
global.registerWebpackModules(appCssContext); | ||
application.loadAppCss(); | ||
|
||
require("./vendor-platform"); | ||
|
||
require("bundle-entry-points"); |
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,108 @@ | ||
module.exports = function (config) { | ||
const options = { | ||
|
||
// base path that will be used to resolve all patterns (eg. files, exclude) | ||
basePath: '', | ||
|
||
|
||
// frameworks to use | ||
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter | ||
frameworks: ['jasmine'], | ||
|
||
|
||
// list of files / patterns to load in the browser | ||
files: ['app/tests/**/*.*'], | ||
|
||
|
||
// list of files to exclude | ||
exclude: [ | ||
], | ||
|
||
|
||
// preprocess matching files before serving them to the browser | ||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor | ||
preprocessors: { | ||
}, | ||
|
||
|
||
// test results reporter to use | ||
// possible values: 'dots', 'progress' | ||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter | ||
reporters: ['progress'], | ||
|
||
|
||
// web server port | ||
port: 9876, | ||
|
||
|
||
// enable / disable colors in the output (reporters and logs) | ||
colors: true, | ||
|
||
|
||
// level of logging | ||
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG | ||
logLevel: config.LOG_INFO, | ||
|
||
|
||
// enable / disable watching file and executing tests whenever any file changes | ||
autoWatch: true, | ||
|
||
|
||
// start these browsers | ||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher | ||
browsers: [], | ||
|
||
customLaunchers: { | ||
android: { | ||
base: 'NS', | ||
platform: 'android' | ||
}, | ||
ios: { | ||
base: 'NS', | ||
platform: 'ios' | ||
}, | ||
ios_simulator: { | ||
base: 'NS', | ||
platform: 'ios', | ||
arguments: ['--emulator'] | ||
} | ||
}, | ||
|
||
// Continuous Integration mode | ||
// if true, Karma captures browsers, runs the tests and exits | ||
singleRun: false | ||
}; | ||
|
||
setWebpackPreprocessor(config, options); | ||
setWebpack(config, options); | ||
|
||
config.set(options); | ||
} | ||
|
||
function setWebpackPreprocessor(config, options) { | ||
if (config && config.bundle) { | ||
if (!options.preprocessors) { | ||
options.preprocessors = {}; | ||
} | ||
|
||
options.files.forEach(file => { | ||
if (!options.preprocessors[file]) { | ||
options.preprocessors[file] = []; | ||
} | ||
options.preprocessors[file].push('webpack'); | ||
}); | ||
} | ||
} | ||
|
||
function setWebpack(config, options) { | ||
if (config && config.bundle) { | ||
const env = {}; | ||
env[config.platform] = true; | ||
env.sourceMap = config.debugBrk; | ||
options.webpack = require('./webpack.config')(env); | ||
delete options.webpack.entry; | ||
delete options.webpack.output.libraryTarget; | ||
const invalidPluginsForUnitTesting = ["GenerateBundleStarterPlugin", "GenerateNativeScriptEntryPointsPlugin"]; | ||
options.webpack.plugins = options.webpack.plugins.filter(p => !invalidPluginsForUnitTesting.includes(p.constructor.name)); | ||
} | ||
} |
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,3 @@ | ||
{ | ||
"useLegacyWorkflow": false | ||
} |
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,25 +1,27 @@ | ||
{ | ||
"nativescript": { | ||
"id": "org.nativescript.demo", | ||
"tns-ios": { | ||
"version": "5.2.0" | ||
}, | ||
"tns-android": { | ||
"version": "5.2.0" | ||
"version": "6.0.0" | ||
}, | ||
"tns-ios": { | ||
"version": "6.0.1" | ||
} | ||
}, | ||
"dependencies": { | ||
"nativescript-numeric-keyboard": "file:../src", | ||
"nativescript-unit-test-runner": "~0.3.0", | ||
"tns-core-modules": "~5.2.0" | ||
"nativescript-numeric-keyboard": "../src", | ||
"nativescript-unit-test-runner": "0.7.0", | ||
"tns-core-modules": "~6.0.1" | ||
}, | ||
"devDependencies": { | ||
"babel-traverse": "^6.24.1", | ||
"babel-types": "^6.24.1", | ||
"babylon": "^6.16.1", | ||
"babel-traverse": "6.26.0", | ||
"babel-types": "6.26.0", | ||
"babylon": "6.18.0", | ||
"lazy": "1.0.11", | ||
"nativescript-dev-typescript": "~0.6.0", | ||
"tns-platform-declarations": "~5.2.0", | ||
"typescript": "~2.8.0" | ||
"nativescript-dev-webpack": "~1.0.0", | ||
"tns-platform-declarations": "6.0.1", | ||
"tslint": "~5.4.3", | ||
"typescript": "~3.4.0", | ||
"karma-webpack": "3.0.5" | ||
} | ||
} |
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,7 @@ | ||
{ | ||
"extends": "./tsconfig", | ||
"compilerOptions": { | ||
"module": "es2015", | ||
"moduleResolution": "node" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.