Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added NS7 compatibility #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
# Logs
logs
*.log
Expand Down
21 changes: 11 additions & 10 deletions build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const baseConfig = {
typescript({
tsconfig: "tsconfig.json",
useTsconfigDeclarationDir: true,
objectHashIgnoreUnknownHack: true,
objectHashIgnoreUnknownHack: false,
clean: true
}),
vue({
Expand All @@ -40,20 +40,21 @@ const external = [
// list external dependencies, exactly the way it is written in the import statement.
// eg. 'jquery'
"nativescript-vue",
"tns-core-modules/color",
"tns-core-modules/platform",
"tns-core-modules/ui/page/page",
"tns-core-modules/ui/core/weak-event-listener",
"'tns-core-modules/ui/layouts/stack-layout"
"@nativescript/core",
// "@nativescript/core/color",
// "@nativescript/core/platform",
// "@nativescript/core/ui/page/page",
// "@nativescript/core/ui/core/weak-event-listener",
// "'@nativescript/core/ui/layouts/stack-layout"
];
const globals = {
// Provide global variable names to replace your external imports
// eg. jquery: '$'
"nativescript-vue": 'vue',
"tns-core-modules/color": 'color',
"tns-core-modules/platform": 'platform',
"tns-core-modules/ui/page/page": 'page',
"tns-core-modules/ui/core/weak-event-listener" : 'weakEventListener',
"@nativescript/core/color": 'color',
"@nativescript/core/platform": 'platform',
"@nativescript/core/ui/page/page": 'page',
"@nativescript/core/ui/core/weak-event-listener" : 'weakEventListener',
};

// Customize configs for individual targets
Expand Down
7 changes: 3 additions & 4 deletions demo/app/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@
</Page>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import { Component, Vue } from 'vue-property-decorator';
import { AndroidData, IOSData, Elevation, Shape, ShapeEnum } from '../../../';
import { ListPicker } from 'tns-core-modules/ui/list-picker';
import { isAndroid, isIOS } from 'tns-core-modules/platform';
import { ListPicker, isAndroid, isIOS } from '@nativescript/core';

@Component({
name: 'Home'
Expand Down Expand Up @@ -98,7 +97,7 @@ export default class Home extends Vue {
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss">
@import '~nativescript-theme-core/css/core.light.css';
@import '~@nativescript/theme/css/core.css';

.btn {
font-size: 18;
Expand Down
Loading