mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(build): rename ionic directory to src and update all references in the build process.
This commit is contained in:
@ -2,13 +2,13 @@
|
||||
module.exports = {
|
||||
dist: 'dist',
|
||||
src: {
|
||||
spec: ['ionic/**/test/*.spec.js'],
|
||||
js: ['ionic/**/*.js'],
|
||||
spec: ['src/**/test/*.spec.js'],
|
||||
js: ['src/**/*.js'],
|
||||
|
||||
// Get all the non-js files and main.js
|
||||
e2e: ['ionic/components/*/test/*/**/*'],
|
||||
html: 'ionic/**/*.html',
|
||||
scss: 'ionic/**/*.scss',
|
||||
e2e: ['src/components/*/test/*/**/*'],
|
||||
html: 'src/**/*.html',
|
||||
scss: 'src/**/*.scss',
|
||||
},
|
||||
|
||||
scripts: [
|
||||
|
@ -18,19 +18,5 @@
|
||||
</ion-app>
|
||||
|
||||
<script src="bundle.js"></script>
|
||||
<!-- <script src="../../js/ionic.bundle.js"></script>
|
||||
|
||||
<script>
|
||||
System.config({
|
||||
"paths": {
|
||||
"*": "*.js",
|
||||
"ionic/*": "ionic/*",
|
||||
"angular2/*": "angular2/*",
|
||||
"rx": "rx"
|
||||
}
|
||||
})
|
||||
System.import("index");
|
||||
</script> -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@ -94,13 +94,13 @@ module.exports = function(currentVersion) {
|
||||
docTypes: ['class', 'var', 'function', 'let'],
|
||||
getOutputPath: function(doc) {
|
||||
// strip ionic from path root
|
||||
var docPath = doc.fileInfo.relativePath.replace(/^ionic\//, '');
|
||||
var docPath = doc.fileInfo.relativePath.replace(/^src\//, '');
|
||||
// remove filename since we have multiple docTypes per file
|
||||
docPath = docPath.substring(0, docPath.lastIndexOf('/') + 1);
|
||||
docPath += doc.name + '/index.md';
|
||||
var path = config.v2DocsDir + '/' + (versionData.current.folder || '') +
|
||||
'/api/' + docPath;
|
||||
path = path.replace('/home/ubuntu/ionic/ionic', '')
|
||||
path = path.replace('/home/ubuntu/ionic/src', '')
|
||||
return path;
|
||||
}
|
||||
}];
|
||||
@ -115,7 +115,7 @@ module.exports = function(currentVersion) {
|
||||
|
||||
readTypeScriptModules.basePath = path.resolve(path.resolve(__dirname, '../..'));
|
||||
readTypeScriptModules.sourceFiles = [
|
||||
'ionic/index.ts'
|
||||
'src/index.ts'
|
||||
];
|
||||
})
|
||||
|
||||
|
@ -55,7 +55,7 @@ module.exports = function(gulp, flags) {
|
||||
});
|
||||
}
|
||||
|
||||
return gulp.src('ionic/**/*.scss')
|
||||
return gulp.src('src/**/*.scss')
|
||||
.pipe(es.map(function(file, callback) {
|
||||
var contents = file.contents.toString();
|
||||
var variableLine, variableName, defaultValue, multiline;
|
||||
|
@ -19,7 +19,7 @@ module.exports = function jekyll(renderDocsProcessor) {
|
||||
docs.forEach(function(doc, i) {
|
||||
docs[i].URL = doc.outputPath.replace('docs/v2//','docs/v2/')
|
||||
.replace('/index.md','')
|
||||
.replace('//home/ubuntu/ionic/ionic', '')
|
||||
.replace('//home/ubuntu/ionic/src', '')
|
||||
.replace('//', '/');
|
||||
if (docs[i].relativePath) {
|
||||
docs[i].relativePath = doc.relativePath
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
// For E2E dark theme tests
|
||||
|
||||
@import "../../ionic/themes/dark.ios.scss";
|
||||
@import "../../src/themes/dark.ios.scss";
|
||||
|
||||
@import "../../ionic/ionic.ios.scss";
|
||||
@import "../../src/ionic.ios.scss";
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
// For E2E dark theme tests
|
||||
|
||||
@import "../../ionic/themes/dark.md.scss";
|
||||
@import "../../src/themes/dark.md.scss";
|
||||
|
||||
@import "../../ionic/ionic.md.scss";
|
||||
@import "../../src/ionic.md.scss";
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
// For E2E dark theme tests
|
||||
|
||||
@import "../../ionic/themes/dark.wp.scss";
|
||||
@import "../../src/themes/dark.wp.scss";
|
||||
|
||||
@import "../../ionic/ionic.wp.scss";
|
||||
@import "../../src/ionic.wp.scss";
|
||||
|
@ -1,8 +1,8 @@
|
||||
module.exports = {
|
||||
externals: [
|
||||
{
|
||||
'ionic/ionic': {
|
||||
commonjs2: 'ionic/ionic'
|
||||
'src/ionic': {
|
||||
commonjs2: 'src/ionic'
|
||||
},
|
||||
'@angular/core': {
|
||||
commonjs2: ['angular2', 'core']
|
||||
|
@ -25,7 +25,7 @@ module.exports = function(config) {
|
||||
'scripts/karma/test-main.js'
|
||||
],
|
||||
|
||||
exclude: ['ionic/components/*/test/*/**/*'],
|
||||
exclude: ['src/components/*/test/*/**/*'],
|
||||
|
||||
logLevel: 'warn',
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
System.config({
|
||||
baseURL: '/base',
|
||||
map: {
|
||||
'ionic-angular': 'ionic',
|
||||
'ionic-angular': 'src',
|
||||
'@angular': 'node_modules/@angular',
|
||||
},
|
||||
packages: {
|
||||
|
Reference in New Issue
Block a user