mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 09:34:19 +08:00
refactor(ci): do not cache node modules (#26265)
This commit is contained in:
10
angular/scripts/build-core.js
vendored
10
angular/scripts/build-core.js
vendored
@ -2,17 +2,8 @@ const fs = require('fs-extra');
|
||||
const path = require('path');
|
||||
const spawn = require('child_process').spawn;
|
||||
|
||||
const stencilPath = path.join(__dirname, '..', '..', 'core', 'node_modules', '.bin');
|
||||
const typescriptPath = path.join(__dirname, '..', 'node_modules', '.bin');
|
||||
|
||||
function copyIonicons() {
|
||||
const src = path.join(__dirname, '..', '..', 'core', 'node_modules', 'ionicons');
|
||||
const dst = path.join(__dirname, '..', 'node_modules', 'ionicons');
|
||||
|
||||
fs.removeSync(dst);
|
||||
fs.copySync(src, dst);
|
||||
}
|
||||
|
||||
function copyCSS() {
|
||||
const src = path.join(__dirname, '..', '..', 'core', 'css');
|
||||
const dst = path.join(__dirname, '..','dist', 'css');
|
||||
@ -57,7 +48,6 @@ function copySchematicsJson(){
|
||||
|
||||
}
|
||||
|
||||
copyIonicons();
|
||||
copyCSS();
|
||||
buildSchematics();
|
||||
copySchematicsJson()
|
||||
|
Reference in New Issue
Block a user