mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Ignore gradle/wrapper folder
remove grunt file
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -35,6 +35,7 @@ local.properties
|
|||||||
|
|
||||||
# Gradle generated files
|
# Gradle generated files
|
||||||
.gradle/
|
.gradle/
|
||||||
|
gradle/
|
||||||
|
|
||||||
# Signing files
|
# Signing files
|
||||||
.signing/
|
.signing/
|
||||||
@@ -42,8 +43,3 @@ local.properties
|
|||||||
# OS-specific files
|
# OS-specific files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.DS_Store?
|
.DS_Store?
|
||||||
._*
|
|
||||||
.Spotlight-V100
|
|
||||||
.Trashes
|
|
||||||
ehthumbs.db
|
|
||||||
Thumbs.db
|
|
||||||
45
Gruntfile.js
45
Gruntfile.js
@@ -1,45 +0,0 @@
|
|||||||
module.exports = function(grunt) {
|
|
||||||
|
|
||||||
// Project configuration.
|
|
||||||
grunt.initConfig({
|
|
||||||
clean: {
|
|
||||||
build: ["build"]
|
|
||||||
},
|
|
||||||
exec: {
|
|
||||||
npm_pack: {
|
|
||||||
cmd: 'npm pack ./package',
|
|
||||||
cwd: 'build/'
|
|
||||||
},
|
|
||||||
gradle: 'gradle build'
|
|
||||||
},
|
|
||||||
copy: {
|
|
||||||
package: {
|
|
||||||
files: [
|
|
||||||
{ expand: true, src: 'package.json', dest: 'build/package' },
|
|
||||||
{ expand: true, cwd: 'widgets/build/outputs/aar', src: 'widgets-release.aar', dest: 'build/package/platforms/android' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mkdir: {
|
|
||||||
build: {
|
|
||||||
options: {
|
|
||||||
create: ["build/package"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
grunt.loadNpmTasks('grunt-exec');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
|
||||||
grunt.loadNpmTasks('grunt-mkdir');
|
|
||||||
|
|
||||||
// Default task(s).
|
|
||||||
grunt.registerTask('default', [
|
|
||||||
'clean:build',
|
|
||||||
'mkdir:build',
|
|
||||||
'exec:gradle',
|
|
||||||
'copy:package',
|
|
||||||
'exec:npm_pack'
|
|
||||||
]);
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user